KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /usr/share/gtk-doc/html/gtk/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/share/gtk-doc/html/gtk/GtkWidget.html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkWidget</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="prev" href="GtkSeparator.html" title="GtkSeparator">
<link rel="next" href="GtkIMContext.html" title="GtkIMContext">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part&#160;I.&#160;GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part&#160;II.&#160;GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part&#160;III.&#160;GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part&#160;IV.&#160;Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and 
         GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part&#160;V.&#160;GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkSeparator.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="AbstractObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkIMContext.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id3683958" class="shortcut">Top</a>
                  &#160;|&#160;
                  <a href="#id3692183" class="shortcut">Description</a>
                  &#160;|&#160;
                  <a href="#id3688759" class="shortcut">Object Hierarchy</a>
                  &#160;|&#160;
                  <a href="#id3688924" class="shortcut">Implemented Interfaces</a>
                  &#160;|&#160;
                  <a href="#id3688894" class="shortcut">Known Derived Interfaces</a>
                  &#160;|&#160;
                  <a href="#id3688946" class="shortcut">Properties</a>
                  &#160;|&#160;
                  <a href="#id3689272" class="shortcut">Style Properties</a>
                  &#160;|&#160;
                  <a href="#id3689542" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkWidget"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3683958"></a><span class="refentrytitle">GtkWidget</span>
</h2>
<p>GtkWidget &#8212; Base class for all widgets</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">

#include &lt;gtk/gtk.h&gt;


            <a href="GtkWidget.html#GtkWidget-struct">GtkWidget</a>;
            <a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a>;
enum        <a href="GtkWidget.html#GtkWidgetFlags">GtkWidgetFlags</a>;
#define     <a href="GtkWidget.html#GTK-WIDGET-TYPE:CAPS">GTK_WIDGET_TYPE</a>                 (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-STATE:CAPS">GTK_WIDGET_STATE</a>                (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-SAVED-STATE:CAPS">GTK_WIDGET_SAVED_STATE</a>          (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-FLAGS:CAPS">GTK_WIDGET_FLAGS</a>                (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-TOPLEVEL:CAPS">GTK_WIDGET_TOPLEVEL</a>             (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-NO-WINDOW:CAPS">GTK_WIDGET_NO_WINDOW</a>            (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-REALIZED:CAPS">GTK_WIDGET_REALIZED</a>             (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-MAPPED:CAPS">GTK_WIDGET_MAPPED</a>               (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-VISIBLE:CAPS">GTK_WIDGET_VISIBLE</a>              (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-DRAWABLE:CAPS">GTK_WIDGET_DRAWABLE</a>             (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-SENSITIVE:CAPS">GTK_WIDGET_SENSITIVE</a>            (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-PARENT-SENSITIVE:CAPS">GTK_WIDGET_PARENT_SENSITIVE</a>     (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-IS-SENSITIVE:CAPS">GTK_WIDGET_IS_SENSITIVE</a>         (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-CAN-FOCUS:CAPS">GTK_WIDGET_CAN_FOCUS</a>            (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-HAS-FOCUS:CAPS">GTK_WIDGET_HAS_FOCUS</a>            (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-CAN-DEFAULT:CAPS">GTK_WIDGET_CAN_DEFAULT</a>          (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-RECEIVES-DEFAULT:CAPS">GTK_WIDGET_RECEIVES_DEFAULT</a>     (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-HAS-DEFAULT:CAPS">GTK_WIDGET_HAS_DEFAULT</a>          (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-HAS-GRAB:CAPS">GTK_WIDGET_HAS_GRAB</a>             (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-RC-STYLE:CAPS">GTK_WIDGET_RC_STYLE</a>             (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-COMPOSITE-CHILD:CAPS">GTK_WIDGET_COMPOSITE_CHILD</a>      (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-APP-PAINTABLE:CAPS">GTK_WIDGET_APP_PAINTABLE</a>        (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-DOUBLE-BUFFERED:CAPS">GTK_WIDGET_DOUBLE_BUFFERED</a>      (wid)
#define     <a href="GtkWidget.html#GTK-WIDGET-SET-FLAGS:CAPS">GTK_WIDGET_SET_FLAGS</a>            (wid,flag)
#define     <a href="GtkWidget.html#GTK-WIDGET-UNSET-FLAGS:CAPS">GTK_WIDGET_UNSET_FLAGS</a>          (wid,flag)
void        (<a href="GtkWidget.html#GtkCallback">*GtkCallback</a>)                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);
            <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a>;
struct      <a href="GtkWidget.html#GtkAllocation">GtkAllocation</a>;
            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a>;
            <a href="GtkWidget.html#GtkWidgetAuxInfo">GtkWidgetAuxInfo</a>;
            <a href="GtkWidget.html#GtkWidgetShapeInfo">GtkWidgetShapeInfo</a>;
enum        <a href="GtkWidget.html#GtkWidgetHelpType">GtkWidgetHelpType</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkWidget.html#gtk-widget-new">gtk_widget_new</a>                  (<a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> type,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkWidget.html#gtk-widget-ref">gtk_widget_ref</a>                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-unref">gtk_widget_unref</a>                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-destroy">gtk_widget_destroy</a>              (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-destroyed">gtk_widget_destroyed</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> **widget_pointer);
void        <a href="GtkWidget.html#gtk-widget-set">gtk_widget_set</a>                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);
void        <a href="GtkWidget.html#gtk-widget-unparent">gtk_widget_unparent</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-show">gtk_widget_show</a>                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-show-now">gtk_widget_show_now</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-hide">gtk_widget_hide</a>                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-show-all">gtk_widget_show_all</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-hide-all">gtk_widget_hide_all</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-map">gtk_widget_map</a>                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-unmap">gtk_widget_unmap</a>                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-realize">gtk_widget_realize</a>              (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-unrealize">gtk_widget_unrealize</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-queue-draw">gtk_widget_queue_draw</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-queue-resize">gtk_widget_queue_resize</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-queue-resize-no-redraw">gtk_widget_queue_resize_no_redraw</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-draw">gtk_widget_draw</a>                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *area);
void        <a href="GtkWidget.html#gtk-widget-size-request">gtk_widget_size_request</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);
void        <a href="GtkWidget.html#gtk-widget-get-child-requisition">gtk_widget_get_child_requisition</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);
void        <a href="GtkWidget.html#gtk-widget-size-allocate">gtk_widget_size_allocate</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkAllocation">GtkAllocation</a> *allocation);
void        <a href="GtkWidget.html#gtk-widget-add-accelerator">gtk_widget_add_accelerator</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_signal,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a href="gtk-Standard-Enumerations.html#GtkAccelFlags">GtkAccelFlags</a> accel_flags);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-remove-accelerator">gtk_widget_remove_accelerator</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods);
void        <a href="GtkWidget.html#gtk-widget-set-accel-path">gtk_widget_set_accel_path</a>       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      <a href="GtkWidget.html#gtk-widget-list-accel-closures">gtk_widget_list_accel_closures</a>  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-can-activate-accel">gtk_widget_can_activate_accel</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> signal_id);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-event">gtk_widget_event</a>                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a> *event);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-activate">gtk_widget_activate</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-reparent">gtk_widget_reparent</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *new_parent);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-intersect">gtk_widget_intersect</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *area,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *intersection);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-is-focus">gtk_widget_is_focus</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-grab-focus">gtk_widget_grab_focus</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-grab-default">gtk_widget_grab_default</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-name">gtk_widget_set_name</a>             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a href="GtkWidget.html#gtk-widget-get-name">gtk_widget_get_name</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-state">gtk_widget_set_state</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state);
void        <a href="GtkWidget.html#gtk-widget-set-sensitive">gtk_widget_set_sensitive</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> sensitive);
void        <a href="GtkWidget.html#gtk-widget-set-parent">gtk_widget_set_parent</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *parent);
void        <a href="GtkWidget.html#gtk-widget-set-parent-window">gtk_widget_set_parent_window</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a> *parent_window);
<a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>*  <a href="GtkWidget.html#gtk-widget-get-parent-window">gtk_widget_get_parent_window</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-uposition">gtk_widget_set_uposition</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);
void        <a href="GtkWidget.html#gtk-widget-set-usize">gtk_widget_set_usize</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);
void        <a href="GtkWidget.html#gtk-widget-set-events">gtk_widget_set_events</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> events);
void        <a href="GtkWidget.html#gtk-widget-add-events">gtk_widget_add_events</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> events);
void        <a href="GtkWidget.html#gtk-widget-set-extension-events">gtk_widget_set_extension_events</a> (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a> mode);
<a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a> <a href="GtkWidget.html#gtk-widget-get-extension-events">gtk_widget_get_extension_events</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkWidget.html#gtk-widget-get-toplevel">gtk_widget_get_toplevel</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkWidget.html#gtk-widget-get-ancestor">gtk_widget_get_ancestor</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> widget_type);
<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a>* <a href="GtkWidget.html#gtk-widget-get-colormap">gtk_widget_get_colormap</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-colormap">gtk_widget_set_colormap</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *colormap);
<a
href="../gdk/gdk-Visuals.html#GdkVisual"
>GdkVisual</a>*  <a href="GtkWidget.html#gtk-widget-get-visual">gtk_widget_get_visual</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        <a href="GtkWidget.html#gtk-widget-get-events">gtk_widget_get_events</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-get-pointer">gtk_widget_get_pointer</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *y);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-is-ancestor">gtk_widget_is_ancestor</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *ancestor);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-translate-coordinates">gtk_widget_translate_coordinates</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *src_widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *dest_widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> src_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> src_y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *dest_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *dest_y);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-hide-on-delete">gtk_widget_hide_on_delete</a>       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-style">gtk_widget_set_style</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkStyle.html" title="Styles">GtkStyle</a> *style);
#define     <a href="GtkWidget.html#gtk-widget-set-rc-style">gtk_widget_set_rc_style</a>         (widget)
void        <a href="GtkWidget.html#gtk-widget-ensure-style">gtk_widget_ensure_style</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="GtkStyle.html" title="Styles">GtkStyle</a>*   <a href="GtkWidget.html#gtk-widget-get-style">gtk_widget_get_style</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
#define     <a href="GtkWidget.html#gtk-widget-restore-default-style">gtk_widget_restore_default_style</a>(widget)
void        <a href="GtkWidget.html#gtk-widget-reset-rc-styles">gtk_widget_reset_rc_styles</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-push-colormap">gtk_widget_push_colormap</a>        (<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *cmap);
void        <a href="GtkWidget.html#gtk-widget-pop-colormap">gtk_widget_pop_colormap</a>         (void);
void        <a href="GtkWidget.html#gtk-widget-set-default-colormap">gtk_widget_set_default_colormap</a> (<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *colormap);
<a href="GtkStyle.html" title="Styles">GtkStyle</a>*   <a href="GtkWidget.html#gtk-widget-get-default-style">gtk_widget_get_default_style</a>    (void);
<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a>* <a href="GtkWidget.html#gtk-widget-get-default-colormap">gtk_widget_get_default_colormap</a>
                                            (void);
<a
href="../gdk/gdk-Visuals.html#GdkVisual"
>GdkVisual</a>*  <a href="GtkWidget.html#gtk-widget-get-default-visual">gtk_widget_get_default_visual</a>   (void);
void        <a href="GtkWidget.html#gtk-widget-set-direction">gtk_widget_set_direction</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> dir);
enum        <a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a>;
<a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> <a href="GtkWidget.html#gtk-widget-get-direction">gtk_widget_get_direction</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-default-direction">gtk_widget_set_default_direction</a>
                                            (<a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> dir);
<a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> <a href="GtkWidget.html#gtk-widget-get-default-direction">gtk_widget_get_default_direction</a>
                                            (void);
void        <a href="GtkWidget.html#gtk-widget-shape-combine-mask">gtk_widget_shape_combine_mask</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
>GdkBitmap</a> *shape_mask,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_y);
void        <a href="GtkWidget.html#gtk-widget-input-shape-combine-mask">gtk_widget_input_shape_combine_mask</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
>GdkBitmap</a> *shape_mask,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_y);
void        <a href="GtkWidget.html#gtk-widget-path">gtk_widget_path</a>                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *path_length,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path_reversed);
void        <a href="GtkWidget.html#gtk-widget-class-path">gtk_widget_class_path</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *path_length,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path_reversed);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>*      <a href="GtkWidget.html#gtk-widget-get-composite-name">gtk_widget_get_composite_name</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-modify-style">gtk_widget_modify_style</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Resource-Files.html#GtkRcStyle">GtkRcStyle</a> *style);
<a href="gtk-Resource-Files.html#GtkRcStyle">GtkRcStyle</a>* <a href="GtkWidget.html#gtk-widget-get-modifier-style">gtk_widget_get_modifier_style</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-modify-fg">gtk_widget_modify_fg</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkWidget.html#gtk-widget-modify-bg">gtk_widget_modify_bg</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkWidget.html#gtk-widget-modify-text">gtk_widget_modify_text</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkWidget.html#gtk-widget-modify-base">gtk_widget_modify_base</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);
void        <a href="GtkWidget.html#gtk-widget-modify-font">gtk_widget_modify_font</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../pango/pango-Fonts.html#PangoFontDescription"
>PangoFontDescription</a> *font_desc);
<a
href="../pango/pango-Text-Processing.html#PangoContext"
>PangoContext</a>* <a href="GtkWidget.html#gtk-widget-create-pango-context">gtk_widget_create_pango_context</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../pango/pango-Text-Processing.html#PangoContext"
>PangoContext</a>* <a href="GtkWidget.html#gtk-widget-get-pango-context">gtk_widget_get_pango_context</a>  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../pango/pango-Layout-Objects.html#PangoLayout"
>PangoLayout</a>* <a href="GtkWidget.html#gtk-widget-create-pango-layout">gtk_widget_create_pango_layout</a> (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text);
<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>*  <a href="GtkWidget.html#gtk-widget-render-icon">gtk_widget_render_icon</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *stock_id,
                                             <a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> size,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *detail);
void        <a href="GtkWidget.html#gtk-widget-pop-composite-child">gtk_widget_pop_composite_child</a>  (void);
void        <a href="GtkWidget.html#gtk-widget-push-composite-child">gtk_widget_push_composite_child</a> (void);
void        <a href="GtkWidget.html#gtk-widget-queue-clear">gtk_widget_queue_clear</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-queue-clear-area">gtk_widget_queue_clear_area</a>     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);
void        <a href="GtkWidget.html#gtk-widget-queue-draw-area">gtk_widget_queue_draw_area</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);
void        <a href="GtkWidget.html#gtk-widget-reset-shapes">gtk_widget_reset_shapes</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-app-paintable">gtk_widget_set_app_paintable</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> app_paintable);
void        <a href="GtkWidget.html#gtk-widget-set-double-buffered">gtk_widget_set_double_buffered</a>  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> double_buffered);
void        <a href="GtkWidget.html#gtk-widget-set-redraw-on-allocate">gtk_widget_set_redraw_on_allocate</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> redraw_on_allocate);
void        <a href="GtkWidget.html#gtk-widget-set-composite-name">gtk_widget_set_composite_name</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-set-scroll-adjustments">gtk_widget_set_scroll_adjustments</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment,
                                             <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-mnemonic-activate">gtk_widget_mnemonic_activate</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> group_cycling);
void        <a href="GtkWidget.html#gtk-widget-class-install-style-property">gtk_widget_class_install_style_property</a>
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);
void        <a href="GtkWidget.html#gtk-widget-class-install-style-property-parser">gtk_widget_class_install_style_property_parser</a>
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec,
                                             <a href="GtkStyle.html#GtkRcPropertyParser">GtkRcPropertyParser</a> parser);
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>* <a href="GtkWidget.html#gtk-widget-class-find-style-property">gtk_widget_class_find_style_property</a>
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name);
<a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>** <a href="GtkWidget.html#gtk-widget-class-list-style-properties">gtk_widget_class_list_style_properties</a>
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *n_properties);
<a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRegion"
>GdkRegion</a>*  <a href="GtkWidget.html#gtk-widget-region-intersect">gtk_widget_region_intersect</a>     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRegion"
>GdkRegion</a> *region);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        <a href="GtkWidget.html#gtk-widget-send-expose">gtk_widget_send_expose</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a> *event);
void        <a href="GtkWidget.html#gtk-widget-style-get">gtk_widget_style_get</a>            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);
void        <a href="GtkWidget.html#gtk-widget-style-get-property">gtk_widget_style_get_property</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);
void        <a href="GtkWidget.html#gtk-widget-style-get-valist">gtk_widget_style_get_valist</a>     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             va_list var_args);
<a
href="../atk/AtkObject.html"
>AtkObject</a>*  <a href="GtkWidget.html#gtk-widget-get-accessible">gtk_widget_get_accessible</a>       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-child-focus">gtk_widget_child_focus</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> direction);
void        <a href="GtkWidget.html#gtk-widget-child-notify">gtk_widget_child_notify</a>         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *child_property);
void        <a href="GtkWidget.html#gtk-widget-freeze-child-notify">gtk_widget_freeze_child_notify</a>  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-get-child-visible">gtk_widget_get_child_visible</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  <a href="GtkWidget.html#gtk-widget-get-parent">gtk_widget_get_parent</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="GtkSettings.html" title="Settings">GtkSettings</a>* <a href="GtkWidget.html#gtk-widget-get-settings">gtk_widget_get_settings</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a>* <a href="GtkWidget.html#gtk-widget-get-clipboard">gtk_widget_get_clipboard</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> selection);
<a
href="../gdk/GdkDisplay.html"
>GdkDisplay</a>* <a href="GtkWidget.html#gtk-widget-get-display">gtk_widget_get_display</a>          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>*  <a href="GtkWidget.html#gtk-widget-get-root-window">gtk_widget_get_root_window</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../gdk/GdkScreen.html"
>GdkScreen</a>*  <a href="GtkWidget.html#gtk-widget-get-screen">gtk_widget_get_screen</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-has-screen">gtk_widget_has_screen</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-get-size-request">gtk_widget_get_size_request</a>     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);
#define     <a href="GtkWidget.html#gtk-widget-pop-visual">gtk_widget_pop_visual</a>           ()
#define     <a href="GtkWidget.html#gtk-widget-push-visual">gtk_widget_push_visual</a>          (visual)
void        <a href="GtkWidget.html#gtk-widget-set-child-visible">gtk_widget_set_child_visible</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> is_visible);
#define     <a href="GtkWidget.html#gtk-widget-set-default-visual">gtk_widget_set_default_visual</a>   (visual)
void        <a href="GtkWidget.html#gtk-widget-set-size-request">gtk_widget_set_size_request</a>     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);
#define     <a href="GtkWidget.html#gtk-widget-set-visual">gtk_widget_set_visual</a>           (widget,visual)
void        <a href="GtkWidget.html#gtk-widget-thaw-child-notify">gtk_widget_thaw_child_notify</a>    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-set-no-show-all">gtk_widget_set_no_show_all</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> no_show_all);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-get-no-show-all">gtk_widget_get_no_show_all</a>      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      <a href="GtkWidget.html#gtk-widget-list-mnemonic-labels">gtk_widget_list_mnemonic_labels</a> (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
void        <a href="GtkWidget.html#gtk-widget-add-mnemonic-label">gtk_widget_add_mnemonic_label</a>   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *label);
void        <a href="GtkWidget.html#gtk-widget-remove-mnemonic-label">gtk_widget_remove_mnemonic_label</a>
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *label);
<a href="GtkAction.html" title="GtkAction">GtkAction</a>*  <a href="GtkWidget.html#gtk-widget-get-action">gtk_widget_get_action</a>           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    <a href="GtkWidget.html#gtk-widget-is-composited">gtk_widget_is_composited</a>        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);

<a href="GtkWidget.html#GtkRequisition">GtkRequisition</a>* <a href="GtkWidget.html#gtk-requisition-copy">gtk_requisition_copy</a>        (const <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);
void        <a href="GtkWidget.html#gtk-requisition-free">gtk_requisition_free</a>            (<a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);


</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3688759"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">

  <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
   +----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
         +----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----GtkWidget
                     +----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                     +----<a href="GtkMisc.html" title="GtkMisc">GtkMisc</a>
                     +----<a href="GtkCalendar.html" title="GtkCalendar">GtkCalendar</a>
                     +----<a href="GtkCellView.html" title="GtkCellView">GtkCellView</a>
                     +----<a href="GtkDrawingArea.html" title="GtkDrawingArea">GtkDrawingArea</a>
                     +----<a href="GtkEntry.html" title="GtkEntry">GtkEntry</a>
                     +----<a href="GtkRuler.html" title="GtkRuler">GtkRuler</a>
                     +----<a href="GtkRange.html" title="GtkRange">GtkRange</a>
                     +----<a href="GtkSeparator.html" title="GtkSeparator">GtkSeparator</a>
                     +----<a href="GtkInvisible.html" title="GtkInvisible">GtkInvisible</a>
                     +----<a href="GtkOldEditable.html" title="GtkOldEditable">GtkOldEditable</a>
                     +----<a href="GtkPreview.html" title="GtkPreview">GtkPreview</a>
                     +----<a href="GtkProgress.html" title="GtkProgress">GtkProgress</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3688894"></a><h2>Known Derived Interfaces</h2>
<p>
GtkWidget is required by
 <a href="GtkFileChooser.html" title="GtkFileChooser">GtkFileChooser</a> and  <a href="GtkCellEditable.html" title="GtkCellEditable">GtkCellEditable</a>.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3688924"></a><h2>Implemented Interfaces</h2>
<p>
GtkWidget implements
 AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3688946"></a><h2>Properties</h2>
<pre class="synopsis">

  "<a href="GtkWidget.html#GtkWidget--app-paintable">app-paintable</a>"        <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--can-default">can-default</a>"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--can-focus">can-focus</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--composite-child">composite-child</a>"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--events">events</a>"               <a
href="../gdk/gdk-Events.html#GdkEventMask"
>GdkEventMask</a>          : Read / Write
  "<a href="GtkWidget.html#GtkWidget--extension-events">extension-events</a>"     <a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a>      : Read / Write
  "<a href="GtkWidget.html#GtkWidget--has-default">has-default</a>"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--has-focus">has-focus</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--height-request">height-request</a>"       <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
  "<a href="GtkWidget.html#GtkWidget--is-focus">is-focus</a>"             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--name">name</a>"                 <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write
  "<a href="GtkWidget.html#GtkWidget--no-show-all">no-show-all</a>"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--parent">parent</a>"               <a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>          : Read / Write
  "<a href="GtkWidget.html#GtkWidget--receives-default">receives-default</a>"     <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--sensitive">sensitive</a>"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--style">style</a>"                <a href="GtkStyle.html" title="Styles">GtkStyle</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--visible">visible</a>"              <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write
  "<a href="GtkWidget.html#GtkWidget--width-request">width-request</a>"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3689272"></a><h2>Style Properties</h2>
<pre class="synopsis">

  "<a href="GtkWidget.html#GtkWidget--cursor-aspect-ratio">cursor-aspect-ratio</a>"  <a
href="../glib/glib-Basic-Types.html#gfloat"
>gfloat</a>                : Read
  "<a href="GtkWidget.html#GtkWidget--cursor-color">cursor-color</a>"         <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--draw-border">draw-border</a>"          <a href="GtkStyle.html#GtkBorder">GtkBorder</a>             : Read
  "<a href="GtkWidget.html#GtkWidget--focus-line-pattern">focus-line-pattern</a>"   <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read
  "<a href="GtkWidget.html#GtkWidget--focus-line-width">focus-line-width</a>"     <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--focus-padding">focus-padding</a>"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--interior-focus">interior-focus</a>"       <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--link-color">link-color</a>"           <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--scroll-arrow-hlength">scroll-arrow-hlength</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--scroll-arrow-vlength">scroll-arrow-vlength</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--secondary-cursor-color">secondary-cursor-color</a>" <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--separator-height">separator-height</a>"     <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--separator-width">separator-width</a>"      <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read
  "<a href="GtkWidget.html#GtkWidget--visited-link-color">visited-link-color</a>"   <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read
  "<a href="GtkWidget.html#GtkWidget--wide-separators">wide-separators</a>"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3689542"></a><h2>Signals</h2>
<pre class="synopsis">

"<a href="GtkWidget.html#GtkWidget-accel-closures-changed">accel-closures-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : 
"<a href="GtkWidget.html#GtkWidget-button-press-event">button-press-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventButton"
>GdkEventButton</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-button-release-event">button-release-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventButton"
>GdkEventButton</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-can-activate-accel">can-activate-accel</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>      signal_id,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-child-notify">child-notify</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>  *widget,
                                            <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>    user_data)      : Run first / No recursion / Has details / No hooks
"<a href="GtkWidget.html#GtkWidget-client-event">client-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventClient"
>GdkEventClient</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-composited-changed">composited-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action
"<a href="GtkWidget.html#GtkWidget-configure-event">configure-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventConfigure"
>GdkEventConfigure</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-delete-event">delete-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-destroy-event">destroy-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-direction-changed">direction-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-drag-begin">drag-begin</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-data-delete">drag-data-delete</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-data-get">drag-data-get</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a>   *drag_context,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-data-received">drag-data-received</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a>   *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>              x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>              y,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-drop">drag-drop</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            y,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-end">drag-end</a>"  void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-leave">drag-leave</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-drag-motion">drag-motion</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            y,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last
"<a href="GtkWidget.html#GtkWidget-enter-notify-event">enter-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventCrossing"
>GdkEventCrossing</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-event">event</a>"     <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-event-after">event-after</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : 
"<a href="GtkWidget.html#GtkWidget-expose-event">expose-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventExpose"
>GdkEventExpose</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-focus">focus</a>"     <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-focus-in-event">focus-in-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventFocus"
>GdkEventFocus</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-focus-out-event">focus-out-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventFocus"
>GdkEventFocus</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-grab-broken-event">grab-broken-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-grab-focus">grab-focus</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action
"<a href="GtkWidget.html#GtkWidget-grab-notify">grab-notify</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>   was_grabbed,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)        : Run first
"<a href="GtkWidget.html#GtkWidget-hide">hide</a>"      void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-hierarchy-changed">hierarchy-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget2,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-key-press-event">key-press-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-key-release-event">key-release-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-leave-notify-event">leave-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventCrossing"
>GdkEventCrossing</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-map">map</a>"       void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-map-event">map-event</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-mnemonic-activate">mnemonic-activate</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>   arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-motion-notify-event">motion-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventMotion"
>GdkEventMotion</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-no-expose-event">no-expose-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventNoExpose"
>GdkEventNoExpose</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-parent-set">parent-set</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkObject.html" title="GtkObject">GtkObject</a> *old_parent,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)       : Run first
"<a href="GtkWidget.html#GtkWidget-popup-menu">popup-menu</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action
"<a href="GtkWidget.html#GtkWidget-property-notify-event">property-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProperty"
>GdkEventProperty</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-proximity-in-event">proximity-in-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProximity"
>GdkEventProximity</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-proximity-out-event">proximity-out-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProximity"
>GdkEventProximity</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-realize">realize</a>"   void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-screen-changed">screen-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/GdkScreen.html"
>GdkScreen</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-scroll-event">scroll-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventScroll"
>GdkEventScroll</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-selection-clear-event">selection-clear-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-selection-get">selection-get</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-selection-notify-event">selection-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-selection-received">selection-received</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-selection-request-event">selection-request-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-show">show</a>"      void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-show-help">show-help</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a href="GtkWidget.html#GtkWidgetHelpType">GtkWidgetHelpType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last / Action
"<a href="GtkWidget.html#GtkWidget-size-allocate">size-allocate</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a href="GtkWidget.html#GtkAllocation">GtkAllocation</a> *allocation,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)       : Run first
"<a href="GtkWidget.html#GtkWidget-size-request">size-request</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)        : Run first
"<a href="GtkWidget.html#GtkWidget-state-changed">state-changed</a>"
            void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-style-set">style-set</a>" void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkStyle.html" title="Styles">GtkStyle</a>  *previous_style,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)           : Run first
"<a href="GtkWidget.html#GtkWidget-unmap">unmap</a>"     void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first
"<a href="GtkWidget.html#GtkWidget-unmap-event">unmap-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-unrealize">unrealize</a>" void        user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-visibility-notify-event">visibility-notify-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>          *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventVisibility"
>GdkEventVisibility</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            user_data)      : Run last
"<a href="GtkWidget.html#GtkWidget-window-state-event">window-state-event</a>"
            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>           *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventWindowState"
>GdkEventWindowState</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>             user_data)      : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3692183"></a><h2>Description</h2>
<p><a name="style-properties"></a>
<span class="structname">GtkWidget</span> introduces <em class="firstterm">style 
properties</em> - these are basically object properties that are stored
not on the object, but in the style object associated to the widget. Style
properties are set in <a href="gtk-Resource-Files.html" title="Resource Files">resource files</a>.
This mechanism is used for configuring such things as the location of the
scrollbar arrows through the theme, giving theme authors more control over the
look of applications without the need to write a theme engine in C.
</p>
<p>
Use <a href="GtkWidget.html#gtk-widget-class-install-style-property"><code class="function">gtk_widget_class_install_style_property()</code></a> to install style properties for 
a widget class, <a href="GtkWidget.html#gtk-widget-class-find-style-property"><code class="function">gtk_widget_class_find_style_property()</code></a> or
<a href="GtkWidget.html#gtk-widget-class-list-style-properties"><code class="function">gtk_widget_class_list_style_properties()</code></a> to get information about existing
style properties and <a href="GtkWidget.html#gtk-widget-style-get-property"><code class="function">gtk_widget_style_get_property()</code></a>, <a href="GtkWidget.html#gtk-widget-style-get"><code class="function">gtk_widget_style_get()</code></a> or
<a href="GtkWidget.html#gtk-widget-style-get-valist"><code class="function">gtk_widget_style_get_valist()</code></a> to obtain the value of a style property.
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3692297"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3692307"></a><h3>
<a name="GtkWidget-struct"></a>GtkWidget</h3>
<a class="indexterm" name="id3692320"></a><pre class="programlisting">typedef struct {
  /* The style for the widget. The style contains the
   *  colors the widget should be drawn in for each state
   *  along with graphics contexts used to draw with and
   *  the font to use for text.
   */
  GtkStyle *style;
  
  /* The widget's desired size.
   */
  GtkRequisition requisition;
  
  /* The widget's allocated size.
   */
  GtkAllocation allocation;
  
  /* The widget's window or its parent window if it does
   *  not have a window. (Which will be indicated by the
   *  GTK_NO_WINDOW flag being set).
   */
  GdkWindow *window;
  
  /* The widget's parent.
   */
  GtkWidget *parent;
} GtkWidget;
</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a href="GtkStyle.html" title="Styles">GtkStyle</a>&#160;*<em class="structfield"><code>style</code></em>;</span></td>
<td>The style for the widget. The style contains the colors the widget should be 
 drawn in for each state along with graphics contexts used to draw with and the font 
 to use for text.
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkWidget.html#GtkRequisition">GtkRequisition</a>&#160;<em class="structfield"><code>requisition</code></em>;</span></td>
<td>The widget's desired size.
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkWidget.html#GtkAllocation">GtkAllocation</a>&#160;<em class="structfield"><code>allocation</code></em>;</span></td>
<td>The widget's allocated size.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>&#160;*<em class="structfield"><code>window</code></em>;</span></td>
<td>The widget's window or its parent window if it does not have a window. (Which 
 will be indicated by the <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><span class="type">GTK_NO_WINDOW</span></a> flag being set).
</td>
</tr>
<tr>
<td>
<span class="term"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>&#160;*<em class="structfield"><code>parent</code></em>;</span></td>
<td>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3692465"></a><h3>
<a name="GtkWidgetClass"></a>GtkWidgetClass</h3>
<a class="indexterm" name="id3692478"></a><pre class="programlisting">typedef struct {
  /* The object class structure needs to be the first
   *  element in the widget class structure in order for
   *  the class mechanism to work correctly. This allows a
   *  GtkWidgetClass pointer to be cast to a GtkObjectClass
   *  pointer.
   */
  GtkObjectClass parent_class;

  
  guint activate_signal;

  guint set_scroll_adjustments_signal;
} GtkWidgetClass;
</pre>
<p>
<em class="structfield"><code>activate_signal</code></em>
The signal to emit when a widget of this class is activated,
<a href="GtkWidget.html#gtk-widget-activate"><code class="function">gtk_widget_activate()</code></a> handles the emission. Implementation of this
signal is optional. 
</p>
<p>
<em class="structfield"><code>set_scroll_adjustment_signal</code></em>
This signal is emitted  when a widget of this class is added
to a scrolling aware parent, <a href="GtkWidget.html#gtk-widget-set-scroll-adjustments"><code class="function">gtk_widget_set_scroll_adjustments()</code></a>
handles the emission.
Implementation of this signal is optional.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3692537"></a><h3>
<a name="GtkWidgetFlags"></a>enum GtkWidgetFlags</h3>
<a class="indexterm" name="id3692550"></a><pre class="programlisting">typedef enum
{
  GTK_TOPLEVEL         = 1 &lt;&lt; 4,
  GTK_NO_WINDOW        = 1 &lt;&lt; 5,
  GTK_REALIZED         = 1 &lt;&lt; 6,
  GTK_MAPPED           = 1 &lt;&lt; 7,
  GTK_VISIBLE          = 1 &lt;&lt; 8,
  GTK_SENSITIVE        = 1 &lt;&lt; 9,
  GTK_PARENT_SENSITIVE = 1 &lt;&lt; 10,
  GTK_CAN_FOCUS        = 1 &lt;&lt; 11,
  GTK_HAS_FOCUS        = 1 &lt;&lt; 12,

  /* widget is allowed to receive the default via gtk_widget_grab_default
   * and will reserve space to draw the default if possible
   */
  GTK_CAN_DEFAULT      = 1 &lt;&lt; 13,

  /* the widget currently is receiving the default action and should be drawn
   * appropriately if possible
   */
  GTK_HAS_DEFAULT      = 1 &lt;&lt; 14,

  GTK_HAS_GRAB	       = 1 &lt;&lt; 15,
  GTK_RC_STYLE	       = 1 &lt;&lt; 16,
  GTK_COMPOSITE_CHILD  = 1 &lt;&lt; 17,
  GTK_NO_REPARENT      = 1 &lt;&lt; 18,
  GTK_APP_PAINTABLE    = 1 &lt;&lt; 19,

  /* the widget when focused will receive the default action and have
   * HAS_DEFAULT set even if there is a different widget set as default
   */
  GTK_RECEIVES_DEFAULT = 1 &lt;&lt; 20,

  GTK_DOUBLE_BUFFERED  = 1 &lt;&lt; 21,
  GTK_NO_SHOW_ALL      = 1 &lt;&lt; 22
} GtkWidgetFlags;
</pre>
<p>
Tells about certain properties of the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a name="GTK-TOPLEVEL:CAPS"></a><code class="literal">GTK_TOPLEVEL</code></span></td>
<td>
        widgets without a real parent, as there are <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>s and
        <a href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>s have this flag set throughout their lifetime.
        Toplevel widgets always contain their own <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-NO-WINDOW:CAPS"></a><code class="literal">GTK_NO_WINDOW</code></span></td>
<td>
        Indicative for a widget that does not provide its own <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>. 
        Visible action (e.g. drawing) is performed on the parent's <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-REALIZED:CAPS"></a><code class="literal">GTK_REALIZED</code></span></td>
<td>
        Set by <a href="GtkWidget.html#gtk-widget-realize"><code class="function">gtk_widget_realize()</code></a>, unset by <a href="GtkWidget.html#gtk-widget-unrealize"><code class="function">gtk_widget_unrealize()</code></a>.
        A realized widget has an associated <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-MAPPED:CAPS"></a><code class="literal">GTK_MAPPED</code></span></td>
<td>
        Set by <a href="GtkWidget.html#gtk-widget-map"><code class="function">gtk_widget_map()</code></a>, unset by <a href="GtkWidget.html#gtk-widget-unmap"><code class="function">gtk_widget_unmap()</code></a>.
        Only realized widgets can be mapped. It means that <a
href="../gdk/gdk-Windows.html#gdk-window-show"
><code class="function">gdk_window_show()</code></a> 
        has been called on the widgets window(s).
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-VISIBLE:CAPS"></a><code class="literal">GTK_VISIBLE</code></span></td>
<td>
        Set by <a href="GtkWidget.html#gtk-widget-show"><code class="function">gtk_widget_show()</code></a>, unset by <a href="GtkWidget.html#gtk-widget-hide"><code class="function">gtk_widget_hide()</code></a>. Implies that a 
        widget will be mapped as soon as its parent is mapped.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-SENSITIVE:CAPS"></a><code class="literal">GTK_SENSITIVE</code></span></td>
<td>
        Set and unset by <a href="GtkWidget.html#gtk-widget-set-sensitive"><code class="function">gtk_widget_set_sensitive()</code></a>.
        The sensitivity of a widget determines whether it will receive
        certain events (e.g. button or key presses). One premise for
        the widget's sensitivity is to have this flag set.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-PARENT-SENSITIVE:CAPS"></a><code class="literal">GTK_PARENT_SENSITIVE</code></span></td>
<td>
        Set and unset by <a href="GtkWidget.html#gtk-widget-set-sensitive"><code class="function">gtk_widget_set_sensitive()</code></a> operations on the
        parents of the widget.
        This is the second premise for the widget's sensitivity. Once
        it has <a href="GtkWidget.html#GTK-SENSITIVE:CAPS"><code class="literal">GTK_SENSITIVE</code></a> and <a href="GtkWidget.html#GTK-PARENT-SENSITIVE:CAPS"><code class="literal">GTK_PARENT_SENSITIVE</code></a> set, its state is
        effectively sensitive. This is expressed (and can be examined) by
        the <a href="GtkWidget.html#GTK-WIDGET-IS-SENSITIVE:CAPS"><span class="type">GTK_WIDGET_IS_SENSITIVE</span></a> macro.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-CAN-FOCUS:CAPS"></a><code class="literal">GTK_CAN_FOCUS</code></span></td>
<td>
        Determines whether a widget is able to handle focus grabs.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-HAS-FOCUS:CAPS"></a><code class="literal">GTK_HAS_FOCUS</code></span></td>
<td>
        Set by <a href="GtkWidget.html#gtk-widget-grab-focus"><code class="function">gtk_widget_grab_focus()</code></a> for widgets that also
        have <a href="GtkWidget.html#GTK-CAN-FOCUS:CAPS"><code class="literal">GTK_CAN_FOCUS</code></a> set. The flag will be unset once another widget
        grabs the focus.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-CAN-DEFAULT:CAPS"></a><code class="literal">GTK_CAN_DEFAULT</code></span></td>
<td>
        The widget is allowed to receive the default action via 
        <a href="GtkWidget.html#gtk-widget-grab-default"><code class="function">gtk_widget_grab_default()</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-HAS-DEFAULT:CAPS"></a><code class="literal">GTK_HAS_DEFAULT</code></span></td>
<td>
        The widget currently is receiving the default action.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-HAS-GRAB:CAPS"></a><code class="literal">GTK_HAS_GRAB</code></span></td>
<td>
        Set by <a href="gtk-General.html#gtk-grab-add"><code class="function">gtk_grab_add()</code></a>, unset by <a href="gtk-General.html#gtk-grab-remove"><code class="function">gtk_grab_remove()</code></a>. It means that the 
        widget is in the grab_widgets stack, and will be the preferred one for 
        receiving events other than ones of cosmetic value.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-RC-STYLE:CAPS"></a><code class="literal">GTK_RC_STYLE</code></span></td>
<td>
        Indicates that the widget's style has been looked up through the rc 
        mechanism. It does not imply that the widget actually had a style 
        defined through the rc mechanism.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-COMPOSITE-CHILD:CAPS"></a><code class="literal">GTK_COMPOSITE_CHILD</code></span></td>
<td>
        Indicates that the widget is a composite child of its parent; see 
        <a href="GtkWidget.html#gtk-widget-push-composite-child"><code class="function">gtk_widget_push_composite_child()</code></a>, <a href="GtkWidget.html#gtk-widget-pop-composite-child"><code class="function">gtk_widget_pop_composite_child()</code></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-NO-REPARENT:CAPS"></a><code class="literal">GTK_NO_REPARENT</code></span></td>
<td>
	Unused since before GTK+ 1.2, will be removed in a future version.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-APP-PAINTABLE:CAPS"></a><code class="literal">GTK_APP_PAINTABLE</code></span></td>
<td>
        Set and unset by <a href="GtkWidget.html#gtk-widget-set-app-paintable"><code class="function">gtk_widget_set_app_paintable()</code></a>.
        Must be set on widgets whose window the application directly draws on, 
	in order to keep GTK+ from overwriting the drawn stuff.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-RECEIVES-DEFAULT:CAPS"></a><code class="literal">GTK_RECEIVES_DEFAULT</code></span></td>
<td>
        The widget when focused will receive the default action and have 
        <a href="GtkWidget.html#GTK-HAS-DEFAULT:CAPS"><code class="literal">GTK_HAS_DEFAULT</code></a> set even if there is a different widget set as default.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-DOUBLE-BUFFERED:CAPS"></a><code class="literal">GTK_DOUBLE_BUFFERED</code></span></td>
<td>
        Set and unset by <a href="GtkWidget.html#gtk-widget-set-double-buffered"><code class="function">gtk_widget_set_double_buffered()</code></a>.
        Indicates that exposes done on the widget should be double-buffered.
</td>
</tr>
<tr>
<td>
<span class="term"><a name="GTK-NO-SHOW-ALL:CAPS"></a><code class="literal">GTK_NO_SHOW_ALL</code></span></td>
<td>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693344"></a><h3>
<a name="GTK-WIDGET-TYPE:CAPS"></a>GTK_WIDGET_TYPE()</h3>
<a class="indexterm" name="id3693357"></a><pre class="programlisting">#define GTK_WIDGET_TYPE(wid)		  (GTK_OBJECT_TYPE (wid))
</pre>
<p>
Gets the type of a widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693399"></a><h3>
<a name="GTK-WIDGET-STATE:CAPS"></a>GTK_WIDGET_STATE()</h3>
<a class="indexterm" name="id3693412"></a><pre class="programlisting">#define GTK_WIDGET_STATE(wid)		  (GTK_WIDGET (wid)-&gt;state)
</pre>
<p>
Returns the current state of the widget, as a <a href="gtk-Standard-Enumerations.html#GtkStateType"><span class="type">GtkStateType</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693464"></a><h3>
<a name="GTK-WIDGET-SAVED-STATE:CAPS"></a>GTK_WIDGET_SAVED_STATE()</h3>
<a class="indexterm" name="id3693476"></a><pre class="programlisting">#define GTK_WIDGET_SAVED_STATE(wid)	  (GTK_WIDGET (wid)-&gt;saved_state)
</pre>
<p>
Returns the saved state of the widget, as a <a href="gtk-Standard-Enumerations.html#GtkStateType"><span class="type">GtkStateType</span></a>.
</p>
<p>
The saved state will be restored when a widget gets sensitive
again, after it has been made insensitive with <a href="GtkWidget.html#gtk-widget-set-state"><code class="function">gtk_widget_set_state()</code></a>
or <a href="GtkWidget.html#gtk-widget-set-sensitive"><code class="function">gtk_widget_set_sensitive()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693555"></a><h3>
<a name="GTK-WIDGET-FLAGS:CAPS"></a>GTK_WIDGET_FLAGS()</h3>
<a class="indexterm" name="id3693569"></a><pre class="programlisting">#define GTK_WIDGET_FLAGS(wid)		  (GTK_OBJECT_FLAGS (wid))
</pre>
<p>
Returns the widget flags from <em class="parameter"><code>wid</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693616"></a><h3>
<a name="GTK-WIDGET-TOPLEVEL:CAPS"></a>GTK_WIDGET_TOPLEVEL()</h3>
<a class="indexterm" name="id3693629"></a><pre class="programlisting">#define GTK_WIDGET_TOPLEVEL(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_TOPLEVEL) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is a toplevel widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693683"></a><h3>
<a name="GTK-WIDGET-NO-WINDOW:CAPS"></a>GTK_WIDGET_NO_WINDOW()</h3>
<a class="indexterm" name="id3693696"></a><pre class="programlisting">#define GTK_WIDGET_NO_WINDOW(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_NO_WINDOW) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget doesn't have an own <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693757"></a><h3>
<a name="GTK-WIDGET-REALIZED:CAPS"></a>GTK_WIDGET_REALIZED()</h3>
<a class="indexterm" name="id3693771"></a><pre class="programlisting">#define GTK_WIDGET_REALIZED(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_REALIZED) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is realized.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693824"></a><h3>
<a name="GTK-WIDGET-MAPPED:CAPS"></a>GTK_WIDGET_MAPPED()</h3>
<a class="indexterm" name="id3693838"></a><pre class="programlisting">#define GTK_WIDGET_MAPPED(wid)		  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_MAPPED) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is mapped.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693891"></a><h3>
<a name="GTK-WIDGET-VISIBLE:CAPS"></a>GTK_WIDGET_VISIBLE()</h3>
<a class="indexterm" name="id3693904"></a><pre class="programlisting">#define GTK_WIDGET_VISIBLE(wid)		  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_VISIBLE) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is visible.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3693957"></a><h3>
<a name="GTK-WIDGET-DRAWABLE:CAPS"></a>GTK_WIDGET_DRAWABLE()</h3>
<a class="indexterm" name="id3693970"></a><pre class="programlisting">#define GTK_WIDGET_DRAWABLE(wid)	  (GTK_WIDGET_VISIBLE (wid) &amp;&amp; GTK_WIDGET_MAPPED (wid))
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is mapped and visible.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694024"></a><h3>
<a name="GTK-WIDGET-SENSITIVE:CAPS"></a>GTK_WIDGET_SENSITIVE()</h3>
<a class="indexterm" name="id3694037"></a><pre class="programlisting">#define GTK_WIDGET_SENSITIVE(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_SENSITIVE) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the <a href="GtkWidget.html#GTK-SENSITIVE:CAPS"><span class="type">GTK_SENSITIVE</span></a> flag has be set on the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694099"></a><h3>
<a name="GTK-WIDGET-PARENT-SENSITIVE:CAPS"></a>GTK_WIDGET_PARENT_SENSITIVE()</h3>
<a class="indexterm" name="id3694113"></a><pre class="programlisting">#define GTK_WIDGET_PARENT_SENSITIVE(wid)  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_PARENT_SENSITIVE) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the <a href="GtkWidget.html#GTK-PARENT-SENSITIVE:CAPS"><span class="type">GTK_PARENT_SENSITIVE</span></a> flag has be set on the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694176"></a><h3>
<a name="GTK-WIDGET-IS-SENSITIVE:CAPS"></a>GTK_WIDGET_IS_SENSITIVE()</h3>
<a class="indexterm" name="id3694190"></a><pre class="programlisting">#define     GTK_WIDGET_IS_SENSITIVE(wid)</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is effectively sensitive.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694242"></a><h3>
<a name="GTK-WIDGET-CAN-FOCUS:CAPS"></a>GTK_WIDGET_CAN_FOCUS()</h3>
<a class="indexterm" name="id3694255"></a><pre class="programlisting">#define GTK_WIDGET_CAN_FOCUS(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_CAN_FOCUS) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is able to handle focus grabs.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694309"></a><h3>
<a name="GTK-WIDGET-HAS-FOCUS:CAPS"></a>GTK_WIDGET_HAS_FOCUS()</h3>
<a class="indexterm" name="id3694323"></a><pre class="programlisting">#define GTK_WIDGET_HAS_FOCUS(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_HAS_FOCUS) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget has grabbed the focus and no other
widget has done so more recently.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694377"></a><h3>
<a name="GTK-WIDGET-CAN-DEFAULT:CAPS"></a>GTK_WIDGET_CAN_DEFAULT()</h3>
<a class="indexterm" name="id3694391"></a><pre class="programlisting">#define GTK_WIDGET_CAN_DEFAULT(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_CAN_DEFAULT) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is allowed to receive the default action 
via <a href="GtkWidget.html#gtk-widget-grab-default"><code class="function">gtk_widget_grab_default()</code></a>. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694456"></a><h3>
<a name="GTK-WIDGET-RECEIVES-DEFAULT:CAPS"></a>GTK_WIDGET_RECEIVES_DEFAULT()</h3>
<a class="indexterm" name="id3694469"></a><pre class="programlisting">#define GTK_WIDGET_RECEIVES_DEFAULT(wid)  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_RECEIVES_DEFAULT) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget when focused will receive the default action 
even if there is a different widget set as default.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694524"></a><h3>
<a name="GTK-WIDGET-HAS-DEFAULT:CAPS"></a>GTK_WIDGET_HAS_DEFAULT()</h3>
<a class="indexterm" name="id3694537"></a><pre class="programlisting">#define GTK_WIDGET_HAS_DEFAULT(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_HAS_DEFAULT) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget currently is receiving the default action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694591"></a><h3>
<a name="GTK-WIDGET-HAS-GRAB:CAPS"></a>GTK_WIDGET_HAS_GRAB()</h3>
<a class="indexterm" name="id3694604"></a><pre class="programlisting">#define GTK_WIDGET_HAS_GRAB(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_HAS_GRAB) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is in the grab_widgets stack, and will be 
the preferred one for receiving events other than ones of cosmetic value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694659"></a><h3>
<a name="GTK-WIDGET-RC-STYLE:CAPS"></a>GTK_WIDGET_RC_STYLE()</h3>
<a class="indexterm" name="id3694673"></a><pre class="programlisting">#define GTK_WIDGET_RC_STYLE(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_RC_STYLE) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget's style has been looked up through the rc
mechanism.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694727"></a><h3>
<a name="GTK-WIDGET-COMPOSITE-CHILD:CAPS"></a>GTK_WIDGET_COMPOSITE_CHILD()</h3>
<a class="indexterm" name="id3694741"></a><pre class="programlisting">#define GTK_WIDGET_COMPOSITE_CHILD(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_COMPOSITE_CHILD) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is a composite child of its parent.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694795"></a><h3>
<a name="GTK-WIDGET-APP-PAINTABLE:CAPS"></a>GTK_WIDGET_APP_PAINTABLE()</h3>
<a class="indexterm" name="id3694809"></a><pre class="programlisting">#define GTK_WIDGET_APP_PAINTABLE(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_APP_PAINTABLE) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the <a href="GtkWidget.html#GTK-APP-PAINTABLE:CAPS"><span class="type">GTK_APP_PAINTABLE</span></a> flag has been set on the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694872"></a><h3>
<a name="GTK-WIDGET-DOUBLE-BUFFERED:CAPS"></a>GTK_WIDGET_DOUBLE_BUFFERED()</h3>
<a class="indexterm" name="id3694886"></a><pre class="programlisting">#define GTK_WIDGET_DOUBLE_BUFFERED(wid)	  ((GTK_WIDGET_FLAGS (wid) &amp; GTK_DOUBLE_BUFFERED) != 0)
</pre>
<p>
Evaluates to <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the <a href="GtkWidget.html#GTK-DOUBLE-BUFFERED:CAPS"><span class="type">GTK_DOUBLE_BUFFERED</span></a> flag has been set on the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3694950"></a><h3>
<a name="GTK-WIDGET-SET-FLAGS:CAPS"></a>GTK_WIDGET_SET_FLAGS()</h3>
<a class="indexterm" name="id3694963"></a><pre class="programlisting">#define GTK_WIDGET_SET_FLAGS(wid,flag)	  G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END
</pre>
<p>
Turns on certain widget flags.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>flag</code></em>&#160;:</span></td>
<td>the flags to set.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695019"></a><h3>
<a name="GTK-WIDGET-UNSET-FLAGS:CAPS"></a>GTK_WIDGET_UNSET_FLAGS()</h3>
<a class="indexterm" name="id3695032"></a><pre class="programlisting">#define GTK_WIDGET_UNSET_FLAGS(wid,flag)  G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &amp;= ~(flag)); }G_STMT_END
</pre>
<p>
Turns off certain widget flags.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>wid</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>flag</code></em>&#160;:</span></td>
<td>the flags to unset.


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695090"></a><h3>
<a name="GtkCallback"></a>GtkCallback ()</h3>
<a class="indexterm" name="id3695102"></a><pre class="programlisting">void        (*GtkCallback)                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> data);</pre>
<p>
The type of the callback functions used for e.g. iterating over
the children of a container, see <a href="GtkContainer.html#gtk-container-foreach"><code class="function">gtk_container_foreach()</code></a>. 
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the widget to operate on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>user-supplied data


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695183"></a><h3>
<a name="GtkRequisition"></a>GtkRequisition</h3>
<a class="indexterm" name="id3695196"></a><pre class="programlisting">typedef struct {
  gint width;
  gint height;
} GtkRequisition;
</pre>
<p>
A <span class="structname">GtkRequisition</span> represents the desired size of a widget. See 
<a href="GtkContainer.html#size-requisition" title="Size Requisition">the section called &#8220;Size Requisition&#8221;</a> for more information.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>width</code></em>;</span></td>
<td>the widget's desired width
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>height</code></em>;</span></td>
<td>the widget's desired height

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695269"></a><h3>
<a name="GtkAllocation"></a>struct GtkAllocation</h3>
<a class="indexterm" name="id3695282"></a><pre class="programlisting">struct GtkAllocation {
  gint x;
  gint y;
  gint width;
  gint height;
};
</pre>
<p>
A <span class="structname">GtkAllocation</span> of a widget represents region which has been allocated to the 
widget by its parent. It is a subregion of its parents allocation. See 
<a href="GtkContainer.html#size-allocation" title="Size Allocation">the section called &#8220;Size Allocation&#8221;</a> for more information.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>x</code></em>;</span></td>
<td>the X position of the widget's area relative to its parents allocation.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>y</code></em>;</span></td>
<td>the Y position of the widget's area relative to its parents allocation.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>width</code></em>;</span></td>
<td>the width of the widget's allocated area.
</td>
</tr>
<tr>
<td>
<span class="term"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>&#160;<em class="structfield"><code>height</code></em>;</span></td>
<td>the height of the widget's allocated area.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695400"></a><h3>
<a name="GtkSelectionData"></a>GtkSelectionData</h3>
<a class="indexterm" name="id3695412"></a><pre class="programlisting">typedef struct {
  GdkAtom	selection;
  GdkAtom	target;
  GdkAtom	type;
  gint		format;
  guchar       *data;  
  gint		length;
  GdkDisplay   *display;
} GtkSelectionData;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695430"></a><h3>
<a name="GtkWidgetAuxInfo"></a>GtkWidgetAuxInfo</h3>
<a class="indexterm" name="id3695443"></a><pre class="programlisting">typedef struct {
  gint x;
  gint y;
  gint width;
  gint height;
  guint x_set : 1;
  guint y_set : 1;
} GtkWidgetAuxInfo;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695460"></a><h3>
<a name="GtkWidgetShapeInfo"></a>GtkWidgetShapeInfo</h3>
<a class="indexterm" name="id3695473"></a><pre class="programlisting">typedef struct {
  gint16     offset_x;
  gint16     offset_y;
  GdkBitmap *shape_mask;
} GtkWidgetShapeInfo;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695490"></a><h3>
<a name="GtkWidgetHelpType"></a>enum GtkWidgetHelpType</h3>
<a class="indexterm" name="id3695503"></a><pre class="programlisting">typedef enum
{
  GTK_WIDGET_HELP_TOOLTIP,
  GTK_WIDGET_HELP_WHATS_THIS
} GtkWidgetHelpType;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695519"></a><h3>
<a name="gtk-widget-new"></a>gtk_widget_new ()</h3>
<a class="indexterm" name="id3695532"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_widget_new                  (<a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> type,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);</pre>
<p>
This is a convenience function for creating a widget and setting
its properties in one go. For example you might write:
<code class="literal">gtk_widget_new (GTK_TYPE_LABEL, "label", "Hello World", "xalign",
0.0, NULL)</code> to create a left-aligned label. Equivalent to
<a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-new"
><code class="function">g_object_new()</code></a>, but returns a widget so you don't have to
cast the object yourself.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em>&#160;:</span></td>
<td> type ID of the widget to create
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em>&#160;:</span></td>
<td> name of first property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> value of first property, followed by more properties, <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> of type <em class="parameter"><code>widget_type</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695675"></a><h3>
<a name="gtk-widget-ref"></a>gtk_widget_ref ()</h3>
<a class="indexterm" name="id3695688"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_widget_ref                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Adds a reference to a widget. This function is exactly the same
as calling <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a>, and exists mostly for historical
reasons. It can still be convenient to avoid casting a widget
to a <a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
><span class="type">GObject</span></a>, it saves a small amount of typing.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the widget that was referenced
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695778"></a><h3>
<a name="gtk-widget-unref"></a>gtk_widget_unref ()</h3>
<a class="indexterm" name="id3695791"></a><pre class="programlisting">void        gtk_widget_unref                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Inverse of <a href="GtkWidget.html#gtk-widget-ref"><code class="function">gtk_widget_ref()</code></a>. Equivalent to <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695870"></a><h3>
<a name="gtk-widget-destroy"></a>gtk_widget_destroy ()</h3>
<a class="indexterm" name="id3695882"></a><pre class="programlisting">void        gtk_widget_destroy              (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Destroys a widget. Equivalent to <a href="GtkObject.html#gtk-object-destroy"><code class="function">gtk_object_destroy()</code></a>, except that
you don't have to cast the widget to <a href="GtkObject.html" title="GtkObject"><span class="type">GtkObject</span></a>. When a widget is
destroyed, it will break any references it holds to other objects.
If the widget is inside a container, the widget will be removed
from the container. If the widget is a toplevel (derived from
<a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>), it will be removed from the list of toplevels, and the
reference GTK+ holds to it will be removed. Removing a
widget from its container or the list of toplevels results in the
widget being finalized, unless you've added additional references
to the widget with <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a>.
</p>
<p>
In most cases, only toplevel widgets (windows) require explicit
destruction, because when you destroy a toplevel its children will
be destroyed as well.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3695991"></a><h3>
<a name="gtk-widget-destroyed"></a>gtk_widget_destroyed ()</h3>
<a class="indexterm" name="id3696004"></a><pre class="programlisting">void        gtk_widget_destroyed            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> **widget_pointer);</pre>
<p>
This function sets *<em class="parameter"><code>widget_pointer</code></em> to <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>widget_pointer</code></em> !=
<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.  It's intended to be used as a callback connected to the
"destroy" signal of a widget. You connect <a href="GtkWidget.html#gtk-widget-destroyed"><code class="function">gtk_widget_destroyed()</code></a>
as a signal handler, and pass the address of your widget variable
as user data. Then when the widget is destroyed, the variable will
be set to <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>. Useful for example to avoid multiple copies
of the same dialog.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget_pointer</code></em>&#160;:</span></td>
<td> address of a variable that contains <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696149"></a><h3>
<a name="gtk-widget-set"></a>gtk_widget_set ()</h3>
<a class="indexterm" name="id3696164"></a><pre class="programlisting">void        gtk_widget_set                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Like <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-set"
><code class="function">g_object_set()</code></a> - there's no reason to use this instead of
<a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-set"
><code class="function">g_object_set()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em>&#160;:</span></td>
<td> name of first property to set
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> value of first property, followed by more properties, <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696303"></a><h3>
<a name="gtk-widget-unparent"></a>gtk_widget_unparent ()</h3>
<a class="indexterm" name="id3696317"></a><pre class="programlisting">void        gtk_widget_unparent             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function is only for use in widget implementations.
Should be called by implementations of the remove method
on <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>, to dissociate a child from the container.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696384"></a><h3>
<a name="gtk-widget-show"></a>gtk_widget_show ()</h3>
<a class="indexterm" name="id3696397"></a><pre class="programlisting">void        gtk_widget_show                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Flags a widget to be displayed. Any widget that isn't shown will
not appear on the screen. If you want to show all the widgets in a
container, it's easier to call <a href="GtkWidget.html#gtk-widget-show-all"><code class="function">gtk_widget_show_all()</code></a> on the
container, instead of individually showing the widgets.
</p>
<p>
Remember that you have to show the containers containing a widget,
in addition to the widget itself, before it will appear onscreen.
</p>
<p>
When a toplevel container is shown, it is immediately realized and
mapped; other shown widgets are realized and mapped when their
toplevel container is realized and mapped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696480"></a><h3>
<a name="gtk-widget-show-now"></a>gtk_widget_show_now ()</h3>
<a class="indexterm" name="id3696494"></a><pre class="programlisting">void        gtk_widget_show_now             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Shows a widget. If the widget is an unmapped toplevel widget
(i.e. a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> that has not yet been shown), enter the main
loop and wait for the window to actually be mapped. Be careful;
because the main loop is running, anything can happen during
this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696562"></a><h3>
<a name="gtk-widget-hide"></a>gtk_widget_hide ()</h3>
<a class="indexterm" name="id3696575"></a><pre class="programlisting">void        gtk_widget_hide                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Reverses the effects of <a href="GtkWidget.html#gtk-widget-show"><code class="function">gtk_widget_show()</code></a>, causing the widget to be
hidden (invisible to the user).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696644"></a><h3>
<a name="gtk-widget-show-all"></a>gtk_widget_show_all ()</h3>
<a class="indexterm" name="id3696658"></a><pre class="programlisting">void        gtk_widget_show_all             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Recursively shows a widget, and any child widgets (if the widget is
a container).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696716"></a><h3>
<a name="gtk-widget-hide-all"></a>gtk_widget_hide_all ()</h3>
<a class="indexterm" name="id3696728"></a><pre class="programlisting">void        gtk_widget_hide_all             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Recursively hides a widget and any child widgets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696786"></a><h3>
<a name="gtk-widget-map"></a>gtk_widget_map ()</h3>
<a class="indexterm" name="id3696799"></a><pre class="programlisting">void        gtk_widget_map                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function is only for use in widget implementations. Causes
a widget to be mapped if it isn't already.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696857"></a><h3>
<a name="gtk-widget-unmap"></a>gtk_widget_unmap ()</h3>
<a class="indexterm" name="id3696870"></a><pre class="programlisting">void        gtk_widget_unmap                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function is only for use in widget implementations. Causes
a widget to be unmapped if it's currently mapped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3696929"></a><h3>
<a name="gtk-widget-realize"></a>gtk_widget_realize ()</h3>
<a class="indexterm" name="id3696943"></a><pre class="programlisting">void        gtk_widget_realize              (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Creates the GDK (windowing system) resources associated with a
widget.  For example, <em class="parameter"><code>widget-&gt;window</code></em> will be created when a widget
is realized.  Normally realization happens implicitly; if you show
a widget and all its parent containers, then the widget will be
realized and mapped automatically.
</p>
<p>
Realizing a widget requires all
the widget's parent widgets to be realized; calling
<a href="GtkWidget.html#gtk-widget-realize"><code class="function">gtk_widget_realize()</code></a> realizes the widget's parents in addition to
<em class="parameter"><code>widget</code></em> itself. If a widget is not yet inside a toplevel window
when you realize it, bad things will happen.
</p>
<p>
This function is primarily used in widget implementations, and
isn't very useful otherwise. Many times when you think you might
need it, a better approach is to connect to a signal that will be
called after the widget is realized automatically, such as
"expose_event". Or simply <a
href="../gobject/gobject-Signals.html#g-signal-connect-after"
><code class="function">g_signal_connect_after()</code></a> to the
"realize" signal.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697053"></a><h3>
<a name="gtk-widget-unrealize"></a>gtk_widget_unrealize ()</h3>
<a class="indexterm" name="id3697066"></a><pre class="programlisting">void        gtk_widget_unrealize            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function is only useful in widget implementations.
Causes a widget to be unrealized (frees all GDK resources
associated with the widget, such as <em class="parameter"><code>widget-&gt;window</code></em>).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697132"></a><h3>
<a name="gtk-widget-queue-draw"></a>gtk_widget_queue_draw ()</h3>
<a class="indexterm" name="id3697145"></a><pre class="programlisting">void        gtk_widget_queue_draw           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Equivalent to calling <a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a> for the
entire area of a widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697215"></a><h3>
<a name="gtk-widget-queue-resize"></a>gtk_widget_queue_resize ()</h3>
<a class="indexterm" name="id3697228"></a><pre class="programlisting">void        gtk_widget_queue_resize         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function is only for use in widget implementations.
Flags a widget to have its size renegotiated; should
be called when a widget for some reason has a new size request.
For example, when you change the text in a <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>, <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>
queues a resize to ensure there's enough space for the new text.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697305"></a><h3>
<a name="gtk-widget-queue-resize-no-redraw"></a>gtk_widget_queue_resize_no_redraw ()</h3>
<a class="indexterm" name="id3697322"></a><pre class="programlisting">void        gtk_widget_queue_resize_no_redraw
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function works like <a href="GtkWidget.html#gtk-widget-queue-resize"><code class="function">gtk_widget_queue_resize()</code></a>, except that the
widget is not invalidated.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697396"></a><h3>
<a name="gtk-widget-draw"></a>gtk_widget_draw ()</h3>
<a class="indexterm" name="id3697411"></a><pre class="programlisting">void        gtk_widget_draw                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *area);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_draw</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
In GTK+ 1.2, this function would immediately render the
region <em class="parameter"><code>area</code></em> of a widget, by invoking the virtual draw method of a
widget. In GTK+ 2.0, the draw method is gone, and instead
<a href="GtkWidget.html#gtk-widget-draw"><code class="function">gtk_widget_draw()</code></a> simply invalidates the specified region of the
widget, then updates the invalid region of the widget immediately.
Usually you don't want to update the region immediately for
performance reasons, so in general <a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a> is
a better choice if you want to draw a region of a widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>area</code></em>&#160;:</span></td>
<td> area to draw
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697538"></a><h3>
<a name="gtk-widget-size-request"></a>gtk_widget_size_request ()</h3>
<a class="indexterm" name="id3697551"></a><pre class="programlisting">void        gtk_widget_size_request         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);</pre>
<p>
This function is typically used when implementing a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>
subclass.  Obtains the preferred size of a widget. The container
uses this information to arrange its child widgets and decide what
size allocations to give them with <a href="GtkWidget.html#gtk-widget-size-allocate"><code class="function">gtk_widget_size_allocate()</code></a>.
</p>
<p>
You can also call this function from an application, with some
caveats. Most notably, getting a size request requires the widget
to be associated with a screen, because font information may be
needed. Multihead-aware applications should keep this in mind.
</p>
<p>
Also remember that the size request is not necessarily the size
a widget will actually be allocated.
</p>
<p>
See also <a href="GtkWidget.html#gtk-widget-get-child-requisition"><code class="function">gtk_widget_get_child_requisition()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>requisition</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a> to be filled in
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697688"></a><h3>
<a name="gtk-widget-get-child-requisition"></a>gtk_widget_get_child_requisition ()</h3>
<a class="indexterm" name="id3697702"></a><pre class="programlisting">void        gtk_widget_get_child_requisition
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);</pre>
<p>
This function is only for use in widget implementations. Obtains
<em class="parameter"><code>widget-&gt;requisition</code></em>, unless someone has forced a particular
geometry on the widget (e.g. with <a href="GtkWidget.html#gtk-widget-set-usize"><code class="function">gtk_widget_set_usize()</code></a>), in which
case it returns that geometry instead of the widget's requisition.
</p>
<p>
This function differs from <a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a> in that
it retrieves the last size request value from <em class="parameter"><code>widget-&gt;requisition</code></em>,
while <a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a> actually calls the "size_request" method
on <em class="parameter"><code>widget</code></em> to compute the size request and fill in <em class="parameter"><code>widget-&gt;requisition</code></em>,
and only then returns <em class="parameter"><code>widget-&gt;requisition</code></em>.
</p>
<p>
Because this function does not call the "size_request" method, it
can only be used when you know that <em class="parameter"><code>widget-&gt;requisition</code></em> is
up-to-date, that is, <a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a> has been called
since the last time a resize was queued. In general, only container
implementations have this information; applications should use
<a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>requisition</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a> to be filled in
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3697899"></a><h3>
<a name="gtk-widget-size-allocate"></a>gtk_widget_size_allocate ()</h3>
<a class="indexterm" name="id3697912"></a><pre class="programlisting">void        gtk_widget_size_allocate        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkAllocation">GtkAllocation</a> *allocation);</pre>
<p>
This function is only used by <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> subclasses, to assign a size
and position to their child widgets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>allocation</code></em>&#160;:</span></td>
<td> position and size to be allocated to <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698007"></a><h3>
<a name="gtk-widget-add-accelerator"></a>gtk_widget_add_accelerator ()</h3>
<a class="indexterm" name="id3698021"></a><pre class="programlisting">void        gtk_widget_add_accelerator      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_signal,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods,
                                             <a href="gtk-Standard-Enumerations.html#GtkAccelFlags">GtkAccelFlags</a> accel_flags);</pre>
<p>
Installs an accelerator for this <em class="parameter"><code>widget</code></em> in <em class="parameter"><code>accel_group</code></em> that causes
<em class="parameter"><code>accel_signal</code></em> to be emitted if the accelerator is activated.
The <em class="parameter"><code>accel_group</code></em> needs to be added to the widget's toplevel via
<a href="GtkWindow.html#gtk-window-add-accel-group"><code class="function">gtk_window_add_accel_group()</code></a>, and the signal must be of type <code class="literal">G_RUN_ACTION</code>.
Accelerators added through this function are not user changeable during
runtime. If you want to support accelerators that can be changed by the
user, use <a href="gtk-Accelerator-Maps.html#gtk-accel-map-add-entry"><code class="function">gtk_accel_map_add_entry()</code></a> and <a href="GtkWidget.html#gtk-widget-set-accel-path"><code class="function">gtk_widget_set_accel_path()</code></a> or
<a href="GtkMenuItem.html#gtk-menu-item-set-accel-path"><code class="function">gtk_menu_item_set_accel_path()</code></a> instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>       widget to install an accelerator on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_signal</code></em>&#160;:</span></td>
<td> widget signal to emit on accelerator activation
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
<td>  accel group for this widget, added to its toplevel
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td>    GDK keyval of the accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td>   modifier key combination of the accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_flags</code></em>&#160;:</span></td>
<td>  flag accelerators, e.g. <code class="literal">GTK_ACCEL_VISIBLE</code>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698280"></a><h3>
<a name="gtk-widget-remove-accelerator"></a>gtk_widget_remove_accelerator ()</h3>
<a class="indexterm" name="id3698293"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_remove_accelerator   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> accel_key,
                                             <a
href="../gdk/gdk-Windows.html#GdkModifierType"
>GdkModifierType</a> accel_mods);</pre>
<p>
Removes an accelerator from <em class="parameter"><code>widget</code></em>, previously installed with
<a href="GtkWidget.html#gtk-widget-add-accelerator"><code class="function">gtk_widget_add_accelerator()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>       widget to install an accelerator on
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
<td>  accel group for this widget
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_key</code></em>&#160;:</span></td>
<td>    GDK keyval of the accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_mods</code></em>&#160;:</span></td>
<td>   modifier key combination of the accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>      whether an accelerator was installed and could be removed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698440"></a><h3>
<a name="gtk-widget-set-accel-path"></a>gtk_widget_set_accel_path ()</h3>
<a class="indexterm" name="id3698453"></a><pre class="programlisting">void        gtk_widget_set_accel_path       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *accel_path,
                                             <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup">GtkAccelGroup</a> *accel_group);</pre>
<p>
Given an accelerator group, <em class="parameter"><code>accel_group</code></em>, and an accelerator path,
<em class="parameter"><code>accel_path</code></em>, sets up an accelerator in <em class="parameter"><code>accel_group</code></em> so whenever the
key binding that is defined for <em class="parameter"><code>accel_path</code></em> is pressed, <em class="parameter"><code>widget</code></em>
will be activated.  This removes any accelerators (for any
accelerator group) installed by previous calls to
<a href="GtkWidget.html#gtk-widget-set-accel-path"><code class="function">gtk_widget_set_accel_path()</code></a>. Associating accelerators with
paths allows them to be modified by the user and the modifications
to be saved for future use. (See <a href="gtk-Accelerator-Maps.html#gtk-accel-map-save"><code class="function">gtk_accel_map_save()</code></a>.)
</p>
<p>
This function is a low level function that would most likely
be used by a menu creation system like <a href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a>. If you
use <a href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a>, setting up accelerator paths will be done
automatically.
</p>
<p>
Even when you you aren't using <a href="GtkItemFactory.html" title="GtkItemFactory"><span class="type">GtkItemFactory</span></a>, if you only want to
set up accelerators on menu items <a href="GtkMenuItem.html#gtk-menu-item-set-accel-path"><code class="function">gtk_menu_item_set_accel_path()</code></a>
provides a somewhat more convenient interface.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_path</code></em>&#160;:</span></td>
<td> path used to look up the accelerator
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accel_group</code></em>&#160;:</span></td>
<td> a <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698667"></a><h3>
<a name="gtk-widget-list-accel-closures"></a>gtk_widget_list_accel_closures ()</h3>
<a class="indexterm" name="id3698681"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_widget_list_accel_closures  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Lists the closures used by <em class="parameter"><code>widget</code></em> for accelerator group connections
with <a href="gtk-Keyboard-Accelerators.html#gtk-accel-group-connect-by-path"><code class="function">gtk_accel_group_connect_by_path()</code></a> or <a href="gtk-Keyboard-Accelerators.html#gtk-accel-group-connect"><code class="function">gtk_accel_group_connect()</code></a>.
The closures can be used to monitor accelerator changes on <em class="parameter"><code>widget</code></em>,
by connecting to the ::accel_changed signal of the <a href="gtk-Keyboard-Accelerators.html#GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> of a 
closure which can be found out with <a href="gtk-Keyboard-Accelerators.html#gtk-accel-group-from-accel-closure"><code class="function">gtk_accel_group_from_accel_closure()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>  widget to list accelerator closures for
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a newly allocated <a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
><span class="type">GList</span></a> of closures
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698808"></a><h3>
<a name="gtk-widget-can-activate-accel"></a>gtk_widget_can_activate_accel ()</h3>
<a class="indexterm" name="id3698824"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_can_activate_accel   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> signal_id);</pre>
<p>
Determines whether an accelerator that activates the signal
identified by <em class="parameter"><code>signal_id</code></em> can currently be activated.
This is done by emitting the GtkWidget::can-activate-accel
signal on <em class="parameter"><code>widget</code></em>; if the signal isn't overridden by a
handler or in a derived widget, then the default check is
that the widget must be sensitive, and the widget and all
its ancestors mapped.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></td>
<td> the ID of a signal installed on <em class="parameter"><code>widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the accelerator can be activated.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3698951"></a><h3>
<a name="gtk-widget-event"></a>gtk_widget_event ()</h3>
<a class="indexterm" name="id3698964"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_event                (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a> *event);</pre>
<p>
Rarely-used function. This function is used to emit
the event signals on a widget (those signals should never
be emitted without using this function to do so).
If you want to synthesize an event though, don't use this function;
instead, use <a href="gtk-General.html#gtk-main-do-event"><code class="function">gtk_main_do_event()</code></a> so the event will behave as if
it were in the event queue. Don't synthesize expose events; instead,
use <a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-rect"
><code class="function">gdk_window_invalidate_rect()</code></a> to invalidate a region of the
window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
><span class="type">GdkEvent</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> return from the event signal emission (<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the event was handled)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699100"></a><h3>
<a name="gtk-widget-activate"></a>gtk_widget_activate ()</h3>
<a class="indexterm" name="id3699113"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_activate             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
For widgets that can be "activated" (buttons, menu items, etc.)
this function activates them. Activation is what happens when you
press Enter on a widget during key navigation. If <em class="parameter"><code>widget</code></em> isn't 
activatable, the function returns <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> that's activatable
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget was activatable
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699210"></a><h3>
<a name="gtk-widget-reparent"></a>gtk_widget_reparent ()</h3>
<a class="indexterm" name="id3699224"></a><pre class="programlisting">void        gtk_widget_reparent             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *new_parent);</pre>
<p>
Moves a widget from one <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> to another, handling reference
count issues to avoid destroying the widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>new_parent</code></em>&#160;:</span></td>
<td> a <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a> to move the widget into
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699320"></a><h3>
<a name="gtk-widget-intersect"></a>gtk_widget_intersect ()</h3>
<a class="indexterm" name="id3699334"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_intersect            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *area,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *intersection);</pre>
<p>
Computes the intersection of a <em class="parameter"><code>widget</code></em>'s area and <em class="parameter"><code>area</code></em>, storing
the intersection in <em class="parameter"><code>intersection</code></em>, and returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if there was
an intersection.  <em class="parameter"><code>intersection</code></em> may be <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if you're only
interested in whether there was an intersection.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>area</code></em>&#160;:</span></td>
<td> a rectangle
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>intersection</code></em>&#160;:</span></td>
<td> rectangle to store intersection of <em class="parameter"><code>widget</code></em> and <em class="parameter"><code>area</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if there was an intersection
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699515"></a><h3>
<a name="gtk-widget-is-focus"></a>gtk_widget_is_focus ()</h3>
<a class="indexterm" name="id3699529"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_is_focus             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Determines if the widget is the focus widget within its
toplevel. (This does not mean that the <code class="literal">HAS_FOCUS</code> flag is
necessarily set; <code class="literal">HAS_FOCUS</code> will only be set if the
toplevel widget additionally has the global input focus.)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is the focus widget.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699632"></a><h3>
<a name="gtk-widget-grab-focus"></a>gtk_widget_grab_focus ()</h3>
<a class="indexterm" name="id3699645"></a><pre class="programlisting">void        gtk_widget_grab_focus           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Causes <em class="parameter"><code>widget</code></em> to have the keyboard focus for the <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> it's
inside. <em class="parameter"><code>widget</code></em> must be a focusable widget, such as a <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>;
something like <a href="GtkFrame.html" title="GtkFrame"><span class="type">GtkFrame</span></a> won't work. (More precisely, it must have the
<a href="GtkWidget.html#GTK-CAN-FOCUS:CAPS"><code class="literal">GTK_CAN_FOCUS</code></a> flag set.)</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699751"></a><h3>
<a name="gtk-widget-grab-default"></a>gtk_widget_grab_default ()</h3>
<a class="indexterm" name="id3699764"></a><pre class="programlisting">void        gtk_widget_grab_default         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Causes <em class="parameter"><code>widget</code></em> to become the default widget. <em class="parameter"><code>widget</code></em> must have the
<a href="GtkWidget.html#GTK-CAN-DEFAULT:CAPS"><code class="literal">GTK_CAN_DEFAULT</code></a> flag set; typically you have to set this flag
yourself by calling <code class="literal">GTK_WIDGET_SET_FLAGS (<em class="parameter"><code>widget</code></em>,
GTK_CAN_DEFAULT)</code>.  The default widget is activated when the user
presses Enter in a window.  Default widgets must be activatable,
that is, <a href="GtkWidget.html#gtk-widget-activate"><code class="function">gtk_widget_activate()</code></a> should affect them.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699871"></a><h3>
<a name="gtk-widget-set-name"></a>gtk_widget_set_name ()</h3>
<a class="indexterm" name="id3699884"></a><pre class="programlisting">void        gtk_widget_set_name             (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Widgets can be named, which allows you to refer to them from a
gtkrc file. You can apply a style to widgets with a particular name
in the gtkrc file. See the documentation for gtkrc files (on the
same page as the docs for <a href="gtk-Resource-Files.html#GtkRcStyle"><span class="type">GtkRcStyle</span></a>).
</p>
<p>
Note that widget names are separated by periods in paths (see 
<a href="GtkWidget.html#gtk-widget-path"><code class="function">gtk_widget_path()</code></a>), so names with embedded periods may cause confusion.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
<td> name for the widget
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3699990"></a><h3>
<a name="gtk-widget-get-name"></a>gtk_widget_get_name ()</h3>
<a class="indexterm" name="id3700004"></a><pre class="programlisting">const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gtk_widget_get_name            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Retrieves the name of a widget. See <a href="GtkWidget.html#gtk-widget-set-name"><code class="function">gtk_widget_set_name()</code></a> for the
significance of widget names.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> name of the widget. This string is owned by GTK+ and
should not be modified or freed
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700085"></a><h3>
<a name="gtk-widget-set-state"></a>gtk_widget_set_state ()</h3>
<a class="indexterm" name="id3700098"></a><pre class="programlisting">void        gtk_widget_set_state            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state);</pre>
<p>
This function is for use in widget implementations. Sets the state
of a widget (insensitive, prelighted, etc.) Usually you should set
the state using wrapper functions such as <a href="GtkWidget.html#gtk-widget-set-sensitive"><code class="function">gtk_widget_set_sensitive()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td> new state for <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700197"></a><h3>
<a name="gtk-widget-set-sensitive"></a>gtk_widget_set_sensitive ()</h3>
<a class="indexterm" name="id3700210"></a><pre class="programlisting">void        gtk_widget_set_sensitive        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> sensitive);</pre>
<p>
Sets the sensitivity of a widget. A widget is sensitive if the user
can interact with it. Insensitive widgets are "grayed out" and the
user can't interact with them. Insensitive widgets are known as
"inactive", "disabled", or "ghosted" in some other toolkits.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>sensitive</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to make the widget sensitive
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700304"></a><h3>
<a name="gtk-widget-set-parent"></a>gtk_widget_set_parent ()</h3>
<a class="indexterm" name="id3700317"></a><pre class="programlisting">void        gtk_widget_set_parent           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *parent);</pre>
<p>
This function is useful only when implementing subclasses of <a href="GtkContainer.html" title="GtkContainer"><span class="type">GtkContainer</span></a>.
Sets the container as the parent of <em class="parameter"><code>widget</code></em>, and takes care of
some details such as updating the state and style of the child
to reflect its new location. The opposite function is
<a href="GtkWidget.html#gtk-widget-unparent"><code class="function">gtk_widget_unparent()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent</code></em>&#160;:</span></td>
<td> parent container
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700424"></a><h3>
<a name="gtk-widget-set-parent-window"></a>gtk_widget_set_parent_window ()</h3>
<a class="indexterm" name="id3700438"></a><pre class="programlisting">void        gtk_widget_set_parent_window    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a> *parent_window);</pre>
<p>
Sets a non default parent window for <em class="parameter"><code>widget</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parent_window</code></em>&#160;:</span></td>
<td> the new parent window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700523"></a><h3>
<a name="gtk-widget-get-parent-window"></a>gtk_widget_get_parent_window ()</h3>
<a class="indexterm" name="id3700537"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>*  gtk_widget_get_parent_window    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets <em class="parameter"><code>widget</code></em>'s parent window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the parent window of <em class="parameter"><code>widget</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700617"></a><h3>
<a name="gtk-widget-set-uposition"></a>gtk_widget_set_uposition ()</h3>
<a class="indexterm" name="id3700632"></a><pre class="programlisting">void        gtk_widget_set_uposition        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set_uposition</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the position of a widget. The funny "u" in the name comes from
the "user position" hint specified by the X Window System, and
exists for legacy reasons. This function doesn't work if a widget
is inside a container; it's only really useful on <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>.
</p>
<p>
Don't use this function to center dialogs over the main application
window; most window managers will do the centering on your behalf
if you call <a href="GtkWindow.html#gtk-window-set-transient-for"><code class="function">gtk_window_set_transient_for()</code></a>, and it's really not
possible to get the centering to work correctly in all cases from
application code. But if you insist, use <a href="GtkWindow.html#gtk-window-set-position"><code class="function">gtk_window_set_position()</code></a>
to set <a href="gtk-Standard-Enumerations.html#GTK-WIN-POS-CENTER-ON-PARENT:CAPS"><span class="type">GTK_WIN_POS_CENTER_ON_PARENT</span></a>, don't do the centering
manually.
</p>
<p>
Note that although <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> can be individually unset, the position
is not honoured unless both <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> are set.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> x position; -1 to unset x; -2 to leave x unchanged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> y position; -1 to unset y; -2 to leave y unchanged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3700826"></a><h3>
<a name="gtk-widget-set-usize"></a>gtk_widget_set_usize ()</h3>
<a class="indexterm" name="id3700842"></a><pre class="programlisting">void        gtk_widget_set_usize            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set_usize</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Sets the minimum size of a widget; that is, the widget's size
request will be <em class="parameter"><code>width</code></em> by <em class="parameter"><code>height</code></em>. You can use this function to
force a widget to be either larger or smaller than it is. The
strange "usize" name dates from the early days of GTK+, and derives
from X Window System terminology. In many cases,
<a href="GtkWindow.html#gtk-window-set-default-size"><code class="function">gtk_window_set_default_size()</code></a> is a better choice for toplevel
windows than this function; setting the default size will still
allow users to shrink the window. Setting the usize will force them
to leave the window at least as large as the usize. When dealing
with window sizes, <a href="GtkWindow.html#gtk-window-set-geometry-hints"><code class="function">gtk_window_set_geometry_hints()</code></a> can be a useful
function as well.
</p>
<p>
Note the inherent danger of setting any fixed size - themes,
translations into other languages, different fonts, and user action
can all change the appropriate size for a given widget. So, it's
basically impossible to hardcode a size that will always be
correct.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a> instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> minimum width, or -1 to unset
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> minimum height, or -1 to unset
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701028"></a><h3>
<a name="gtk-widget-set-events"></a>gtk_widget_set_events ()</h3>
<a class="indexterm" name="id3701041"></a><pre class="programlisting">void        gtk_widget_set_events           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> events);</pre>
<p>
Sets the event mask (see <a
href="../gdk/gdk-Events.html#GdkEventMask"
><span class="type">GdkEventMask</span></a>) for a widget. The event
mask determines which events a widget will receive. Keep in mind
that different widgets have different default event masks, and by
changing the event mask you may disrupt a widget's functionality,
so be careful. This function must be called while a widget is
unrealized. Consider <a href="GtkWidget.html#gtk-widget-add-events"><code class="function">gtk_widget_add_events()</code></a> for widgets that are
already realized, or if you want to preserve the existing event
mask. This function can't be used with <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><span class="type">GTK_NO_WINDOW</span></a> widgets;
to get events on those widgets, place them inside a <a href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a>
and receive events on the event box.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>events</code></em>&#160;:</span></td>
<td> event mask
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701164"></a><h3>
<a name="gtk-widget-add-events"></a>gtk_widget_add_events ()</h3>
<a class="indexterm" name="id3701177"></a><pre class="programlisting">void        gtk_widget_add_events           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> events);</pre>
<p>
Adds the events in the bitfield <em class="parameter"><code>events</code></em> to the event mask for
<em class="parameter"><code>widget</code></em>. See <a href="GtkWidget.html#gtk-widget-set-events"><code class="function">gtk_widget_set_events()</code></a> for details.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>events</code></em>&#160;:</span></td>
<td> an event mask, see <a
href="../gdk/gdk-Events.html#GdkEventMask"
><span class="type">GdkEventMask</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701288"></a><h3>
<a name="gtk-widget-set-extension-events"></a>gtk_widget_set_extension_events ()</h3>
<a class="indexterm" name="id3701302"></a><pre class="programlisting">void        gtk_widget_set_extension_events (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a> mode);</pre>
<p>
Sets the extension events mask to <em class="parameter"><code>mode</code></em>. See <a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
><span class="type">GdkExtensionMode</span></a>
and <a
href="../gdk/gdk-Input-Devices.html#gdk-input-set-extension-events"
><code class="function">gdk_input_set_extension_events()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mode</code></em>&#160;:</span></td>
<td> bitfield of extension events to receive
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701409"></a><h3>
<a name="gtk-widget-get-extension-events"></a>gtk_widget_get_extension_events ()</h3>
<a class="indexterm" name="id3701422"></a><pre class="programlisting"><a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a> gtk_widget_get_extension_events
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Retrieves the extension events the widget will receive; see
<a
href="../gdk/gdk-Input-Devices.html#gdk-input-set-extension-events"
><code class="function">gdk_input_set_extension_events()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> extension events for <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701509"></a><h3>
<a name="gtk-widget-get-toplevel"></a>gtk_widget_get_toplevel ()</h3>
<a class="indexterm" name="id3701523"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_widget_get_toplevel         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
This function returns the topmost widget in the container hierarchy
<em class="parameter"><code>widget</code></em> is a part of. If <em class="parameter"><code>widget</code></em> has no parent widgets, it will be
returned as the topmost widget. No reference will be added to the
returned widget; it should not be unreferenced.
</p>
<p>
Note the difference in behavior vs. <a href="GtkWidget.html#gtk-widget-get-ancestor"><code class="function">gtk_widget_get_ancestor()</code></a>;
<code class="literal">gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW)</code> 
would return
<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>widget</code></em> wasn't inside a toplevel window, and if the
window was inside a <span class="type">GtkWindow-derived</span> widget which was in turn
inside the toplevel <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. While the second case may
seem unlikely, it actually happens when a <a href="GtkPlug.html" title="GtkPlug"><span class="type">GtkPlug</span></a> is embedded
inside a <a href="GtkSocket.html" title="GtkSocket"><span class="type">GtkSocket</span></a> within the same application.
</p>
<p>
To reliably find the toplevel <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, use
<a href="GtkWidget.html#gtk-widget-get-toplevel"><code class="function">gtk_widget_get_toplevel()</code></a> and check if the <code class="literal">TOPLEVEL</code> flags
is set on the result.
</p>
<div class="informalexample"><pre class="programlisting">
 GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
 if (GTK_WIDGET_TOPLEVEL (toplevel))
   {
     [ Perform action on toplevel. ]
   }
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the topmost ancestor of <em class="parameter"><code>widget</code></em>, or <em class="parameter"><code>widget</code></em> itself if there's no ancestor.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701737"></a><h3>
<a name="gtk-widget-get-ancestor"></a>gtk_widget_get_ancestor ()</h3>
<a class="indexterm" name="id3701750"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_widget_get_ancestor         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gobject/gobject-Type-Information.html#GType"
>GType</a> widget_type);</pre>
<p>
Gets the first ancestor of <em class="parameter"><code>widget</code></em> with type <em class="parameter"><code>widget_type</code></em>. For example,
<code class="literal">gtk_widget_get_ancestor (widget, GTK_TYPE_BOX)</code> gets the 
first <a href="GtkBox.html" title="GtkBox"><span class="type">GtkBox</span></a> that's
an ancestor of <em class="parameter"><code>widget</code></em>. No reference will be added to the returned widget;
it should not be unreferenced. See note about checking for a toplevel
<a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> in the docs for <a href="GtkWidget.html#gtk-widget-get-toplevel"><code class="function">gtk_widget_get_toplevel()</code></a>.
</p>
<p>
Note that unlike <a href="GtkWidget.html#gtk-widget-is-ancestor"><code class="function">gtk_widget_is_ancestor()</code></a>, <a href="GtkWidget.html#gtk-widget-get-ancestor"><code class="function">gtk_widget_get_ancestor()</code></a> 
considers <em class="parameter"><code>widget</code></em> to be an ancestor of itself.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget_type</code></em>&#160;:</span></td>
<td> ancestor type
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the ancestor widget, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if not found
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3701937"></a><h3>
<a name="gtk-widget-get-colormap"></a>gtk_widget_get_colormap ()</h3>
<a class="indexterm" name="id3701950"></a><pre class="programlisting"><a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a>* gtk_widget_get_colormap        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets the colormap that will be used to render <em class="parameter"><code>widget</code></em>. No reference will
be added to the returned colormap; it should not be unreferenced.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the colormap used by <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702031"></a><h3>
<a name="gtk-widget-set-colormap"></a>gtk_widget_set_colormap ()</h3>
<a class="indexterm" name="id3702045"></a><pre class="programlisting">void        gtk_widget_set_colormap         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *colormap);</pre>
<p>
Sets the colormap for the widget to the given value. Widget must not
have been previously realized. This probably should only be used
from an <code class="function"><code class="function">init()</code></code> function (i.e. from the constructor 
for the widget).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>colormap</code></em>&#160;:</span></td>
<td> a colormap
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702141"></a><h3>
<a name="gtk-widget-get-visual"></a>gtk_widget_get_visual ()</h3>
<a class="indexterm" name="id3702154"></a><pre class="programlisting"><a
href="../gdk/gdk-Visuals.html#GdkVisual"
>GdkVisual</a>*  gtk_widget_get_visual           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets the visual that will be used to render <em class="parameter"><code>widget</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the visual for <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702234"></a><h3>
<a name="gtk-widget-get-events"></a>gtk_widget_get_events ()</h3>
<a class="indexterm" name="id3702247"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        gtk_widget_get_events           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the event mask for the widget (a bitfield containing flags
from the <a
href="../gdk/gdk-Events.html#GdkEventMask"
><span class="type">GdkEventMask</span></a> enumeration). These are the events that the widget
will receive.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> event mask for <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702331"></a><h3>
<a name="gtk-widget-get-pointer"></a>gtk_widget_get_pointer ()</h3>
<a class="indexterm" name="id3702344"></a><pre class="programlisting">void        gtk_widget_get_pointer          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *y);</pre>
<p>
Obtains the location of the mouse pointer in widget coordinates.
Widget coordinates are a bit odd; for historical reasons, they are
defined as <em class="parameter"><code>widget-&gt;window</code></em> coordinates for widgets that are not
<a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><span class="type">GTK_NO_WINDOW</span></a> widgets, and are relative to <em class="parameter"><code>widget-&gt;allocation.x</code></em>,
<em class="parameter"><code>widget-&gt;allocation.y</code></em> for widgets that are <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><span class="type">GTK_NO_WINDOW</span></a> widgets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> return location for the X coordinate, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> return location for the Y coordinate, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702503"></a><h3>
<a name="gtk-widget-is-ancestor"></a>gtk_widget_is_ancestor ()</h3>
<a class="indexterm" name="id3702517"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_is_ancestor          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *ancestor);</pre>
<p>
Determines whether <em class="parameter"><code>widget</code></em> is somewhere inside <em class="parameter"><code>ancestor</code></em>, possibly with
intermediate containers.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>ancestor</code></em>&#160;:</span></td>
<td> another <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if <em class="parameter"><code>ancestor</code></em> contains <em class="parameter"><code>widget</code></em> as a child, grandchild, great grandchild, etc.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702649"></a><h3>
<a name="gtk-widget-translate-coordinates"></a>gtk_widget_translate_coordinates ()</h3>
<a class="indexterm" name="id3702663"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_translate_coordinates
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *src_widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *dest_widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> src_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> src_y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *dest_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *dest_y);</pre>
<p>
Translate coordinates relative to <em class="parameter"><code>src_widget</code></em>'s allocation to coordinates
relative to <em class="parameter"><code>dest_widget</code></em>'s allocations. In order to perform this
operation, both widgets must be realized, and must share a common
toplevel.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>src_widget</code></em>&#160;:</span></td>
<td>  a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>dest_widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>src_x</code></em>&#160;:</span></td>
<td> X position relative to <em class="parameter"><code>src_widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>src_y</code></em>&#160;:</span></td>
<td> Y position relative to <em class="parameter"><code>src_widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>dest_x</code></em>&#160;:</span></td>
<td> location to store X position relative to <em class="parameter"><code>dest_widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>dest_y</code></em>&#160;:</span></td>
<td> location to store Y position relative to <em class="parameter"><code>dest_widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if either widget was not realized, or there
  was no common ancestor. In this case, nothing is stored in
  *<em class="parameter"><code>dest_x</code></em> and *<em class="parameter"><code>dest_y</code></em>. Otherwise <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3702920"></a><h3>
<a name="gtk-widget-hide-on-delete"></a>gtk_widget_hide_on_delete ()</h3>
<a class="indexterm" name="id3702934"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_hide_on_delete       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Utility function; intended to be connected to the "delete_event"
signal on a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. The function calls <a href="GtkWidget.html#gtk-widget-hide"><code class="function">gtk_widget_hide()</code></a> on its
argument, then returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>. If connected to "delete_event", the
result is that clicking the close button for a window (on the
window frame, top right corner usually) will hide but not destroy
the window. By default, GTK+ destroys windows when "delete_event"
is received.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703045"></a><h3>
<a name="gtk-widget-set-style"></a>gtk_widget_set_style ()</h3>
<a class="indexterm" name="id3703059"></a><pre class="programlisting">void        gtk_widget_set_style            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkStyle.html" title="Styles">GtkStyle</a> *style);</pre>
<p>
Sets the <a href="GtkStyle.html" title="Styles"><span class="type">GtkStyle</span></a> for a widget (<em class="parameter"><code>widget-&gt;style</code></em>). You probably don't
want to use this function; it interacts badly with themes, because
themes work by replacing the <a href="GtkStyle.html" title="Styles"><span class="type">GtkStyle</span></a>. Instead, use
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>style</code></em>&#160;:</span></td>
<td> a <a href="GtkStyle.html" title="Styles"><span class="type">GtkStyle</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to remove the effect of a previous
        <a href="GtkWidget.html#gtk-widget-set-style"><code class="function">gtk_widget_set_style()</code></a> and go back to the default style
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703203"></a><h3>
<a name="gtk-widget-set-rc-style"></a>gtk_widget_set_rc_style()</h3>
<a class="indexterm" name="id3703218"></a><pre class="programlisting">#define gtk_widget_set_rc_style(widget)          (gtk_widget_set_style (widget, NULL))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set_rc_style</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Equivalent to <code class="literal">gtk_widget_set_style (widget, NULL)</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703280"></a><h3>
<a name="gtk-widget-ensure-style"></a>gtk_widget_ensure_style ()</h3>
<a class="indexterm" name="id3703293"></a><pre class="programlisting">void        gtk_widget_ensure_style         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Ensures that <em class="parameter"><code>widget</code></em> has a style (<em class="parameter"><code>widget-&gt;style</code></em>). Not a very useful
function; most of the time, if you want the style, the widget is
realized, and realized widgets are guaranteed to have a style
already.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703365"></a><h3>
<a name="gtk-widget-get-style"></a>gtk_widget_get_style ()</h3>
<a class="indexterm" name="id3703378"></a><pre class="programlisting"><a href="GtkStyle.html" title="Styles">GtkStyle</a>*   gtk_widget_get_style            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Simply an accessor function that returns <em class="parameter"><code>widget-&gt;style</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the widget's <a href="GtkStyle.html" title="Styles"><span class="type">GtkStyle</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703460"></a><h3>
<a name="gtk-widget-restore-default-style"></a>gtk_widget_restore_default_style()</h3>
<a class="indexterm" name="id3703476"></a><pre class="programlisting">#define gtk_widget_restore_default_style(widget) (gtk_widget_set_style (widget, NULL))
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_restore_default_style</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
Equivalent to <code class="literal">gtk_widget_set_style (widget, NULL)</code>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703538"></a><h3>
<a name="gtk-widget-reset-rc-styles"></a>gtk_widget_reset_rc_styles ()</h3>
<a class="indexterm" name="id3703552"></a><pre class="programlisting">void        gtk_widget_reset_rc_styles      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Reset the styles of <em class="parameter"><code>widget</code></em> and all descendents, so when 
they are looked up again, they get the correct values 
for the currently loaded RC file settings. 
</p>
<p>
This function is not useful for applications.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703618"></a><h3>
<a name="gtk-widget-push-colormap"></a>gtk_widget_push_colormap ()</h3>
<a class="indexterm" name="id3703632"></a><pre class="programlisting">void        gtk_widget_push_colormap        (<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *cmap);</pre>
<p>
Pushes <em class="parameter"><code>cmap</code></em> onto a global stack of colormaps; the topmost
colormap on the stack will be used to create all widgets.
Remove <em class="parameter"><code>cmap</code></em> with <a href="GtkWidget.html#gtk-widget-pop-colormap"><code class="function">gtk_widget_pop_colormap()</code></a>. There's little
reason to use this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>cmap</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
><span class="type">GdkColormap</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703714"></a><h3>
<a name="gtk-widget-pop-colormap"></a>gtk_widget_pop_colormap ()</h3>
<a class="indexterm" name="id3703728"></a><pre class="programlisting">void        gtk_widget_pop_colormap         (void);</pre>
<p>
Removes a colormap pushed with <a href="GtkWidget.html#gtk-widget-push-colormap"><code class="function">gtk_widget_push_colormap()</code></a>.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703764"></a><h3>
<a name="gtk-widget-set-default-colormap"></a>gtk_widget_set_default_colormap ()</h3>
<a class="indexterm" name="id3703777"></a><pre class="programlisting">void        gtk_widget_set_default_colormap (<a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a> *colormap);</pre>
<p>
Sets the default colormap to use when creating widgets.
<a href="GtkWidget.html#gtk-widget-push-colormap"><code class="function">gtk_widget_push_colormap()</code></a> is a better function to use if
you only want to affect a few widgets, rather than all widgets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>colormap</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
><span class="type">GdkColormap</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703848"></a><h3>
<a name="gtk-widget-get-default-style"></a>gtk_widget_get_default_style ()</h3>
<a class="indexterm" name="id3703862"></a><pre class="programlisting"><a href="GtkStyle.html" title="Styles">GtkStyle</a>*   gtk_widget_get_default_style    (void);</pre>
<p>
Returns the default style used by all widgets initially.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the default style. This <a href="GtkStyle.html" title="Styles"><span class="type">GtkStyle</span></a> object is owned by GTK+ and
should not be modified or freed.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703911"></a><h3>
<a name="gtk-widget-get-default-colormap"></a>gtk_widget_get_default_colormap ()</h3>
<a class="indexterm" name="id3703925"></a><pre class="programlisting"><a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColormap"
>GdkColormap</a>* gtk_widget_get_default_colormap
                                            (void);</pre>
<p>
Obtains the default colormap used to create widgets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> default widget colormap
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3703967"></a><h3>
<a name="gtk-widget-get-default-visual"></a>gtk_widget_get_default_visual ()</h3>
<a class="indexterm" name="id3703980"></a><pre class="programlisting"><a
href="../gdk/gdk-Visuals.html#GdkVisual"
>GdkVisual</a>*  gtk_widget_get_default_visual   (void);</pre>
<p>
Obtains the visual of the default colormap. Not really useful;
used to be useful before <a
href="../gdk/gdk-Colormaps-and-Colors.html#gdk-colormap-get-visual"
><code class="function">gdk_colormap_get_visual()</code></a> existed.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> visual of the default colormap
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704034"></a><h3>
<a name="gtk-widget-set-direction"></a>gtk_widget_set_direction ()</h3>
<a class="indexterm" name="id3704047"></a><pre class="programlisting">void        gtk_widget_set_direction        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> dir);</pre>
<p>
Sets the reading direction on a particular widget. This direction
controls the primary direction for widgets containing text,
and also the direction in which the children of a container are
packed. The ability to set the direction is present in order
so that correct localization into languages with right-to-left
reading directions can be done. Generally, applications will
let the default reading direction present, except for containers
where the containers are arranged in an order that is explicitely
visual rather than logical (such as buttons for text justification).
</p>
<p>
If the direction is set to <code class="literal">GTK_TEXT_DIR_NONE</code>, then the value
set by <a href="GtkWidget.html#gtk-widget-set-default-direction"><code class="function">gtk_widget_set_default_direction()</code></a> will be used.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>dir</code></em>&#160;:</span></td>
<td>    the new direction
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704162"></a><h3>
<a name="GtkTextDirection"></a>enum GtkTextDirection</h3>
<a class="indexterm" name="id3704176"></a><pre class="programlisting">typedef enum
{
  GTK_TEXT_DIR_NONE,
  GTK_TEXT_DIR_LTR,
  GTK_TEXT_DIR_RTL
} GtkTextDirection;
</pre>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704192"></a><h3>
<a name="gtk-widget-get-direction"></a>gtk_widget_get_direction ()</h3>
<a class="indexterm" name="id3704205"></a><pre class="programlisting"><a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> gtk_widget_get_direction   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets the reading direction for a particular widget. See
<a href="GtkWidget.html#gtk-widget-set-direction"><code class="function">gtk_widget_set_direction()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the reading direction for the widget.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704285"></a><h3>
<a name="gtk-widget-set-default-direction"></a>gtk_widget_set_default_direction ()</h3>
<a class="indexterm" name="id3704299"></a><pre class="programlisting">void        gtk_widget_set_default_direction
                                            (<a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> dir);</pre>
<p>
Sets the default reading direction for widgets where the
direction has not been explicitly set by <a href="GtkWidget.html#gtk-widget-set-direction"><code class="function">gtk_widget_set_direction()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>dir</code></em>&#160;:</span></td>
<td> the new default direction. This cannot be
       <code class="literal">GTK_TEXT_DIR_NONE</code>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704374"></a><h3>
<a name="gtk-widget-get-default-direction"></a>gtk_widget_get_default_direction ()</h3>
<a class="indexterm" name="id3704387"></a><pre class="programlisting"><a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> gtk_widget_get_default_direction
                                            (void);</pre>
<p>
Obtains the current default reading direction. See
<a href="GtkWidget.html#gtk-widget-set-default-direction"><code class="function">gtk_widget_set_default_direction()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the current default direction. 
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704440"></a><h3>
<a name="gtk-widget-shape-combine-mask"></a>gtk_widget_shape_combine_mask ()</h3>
<a class="indexterm" name="id3704454"></a><pre class="programlisting">void        gtk_widget_shape_combine_mask   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
>GdkBitmap</a> *shape_mask,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_y);</pre>
<p>
Sets a shape for this widget's GDK window. This allows for
transparent windows etc., see <a
href="../gdk/gdk-Windows.html#gdk-window-shape-combine-mask"
><code class="function">gdk_window_shape_combine_mask()</code></a>
for more information.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>shape_mask</code></em>&#160;:</span></td>
<td> shape to be added, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to remove an existing shape. 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>offset_x</code></em>&#160;:</span></td>
<td> X position of shape mask with respect to <em class="parameter"><code>window</code></em>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>offset_y</code></em>&#160;:</span></td>
<td> Y position of shape mask with respect to <em class="parameter"><code>window</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704614"></a><h3>
<a name="gtk-widget-input-shape-combine-mask"></a>gtk_widget_input_shape_combine_mask ()</h3>
<a class="indexterm" name="id3704630"></a><pre class="programlisting">void        gtk_widget_input_shape_combine_mask
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Bitmaps-and-Pixmaps.html#GdkBitmap"
>GdkBitmap</a> *shape_mask,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> offset_y);</pre>
<p>
Sets an input shape for this widget's GDK window. This allows for
windows which react to mouse click in a nonrectangular region, see 
<a
href="../gdk/gdk-Windows.html#gdk-window-input-shape-combine-mask"
><code class="function">gdk_window_input_shape_combine_mask()</code></a> for more information.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>shape_mask</code></em>&#160;:</span></td>
<td> shape to be added, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to remove an existing shape. 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>offset_x</code></em>&#160;:</span></td>
<td> X position of shape mask with respect to <em class="parameter"><code>window</code></em>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>offset_y</code></em>&#160;:</span></td>
<td> Y position of shape mask with respect to <em class="parameter"><code>window</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3704796"></a><h3>
<a name="gtk-widget-path"></a>gtk_widget_path ()</h3>
<a class="indexterm" name="id3704809"></a><pre class="programlisting">void        gtk_widget_path                 (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *path_length,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path_reversed);</pre>
<p>
Obtains the full path to <em class="parameter"><code>widget</code></em>. The path is simply the name of a
widget and all its parents in the container hierarchy, separated by
periods. The name of a widget comes from
<a href="GtkWidget.html#gtk-widget-get-name"><code class="function">gtk_widget_get_name()</code></a>. Paths are used to apply styles to a widget
in gtkrc configuration files.  Widget names are the type of the
widget by default (e.g. "GtkButton") or can be set to an
application-specific value with <a href="GtkWidget.html#gtk-widget-set-name"><code class="function">gtk_widget_set_name()</code></a>.  By setting
the name of a widget, you allow users or theme authors to apply
styles to that specific widget in their gtkrc
file. <em class="parameter"><code>path_reversed_p</code></em> fills in the path in reverse order,
i.e. starting with <em class="parameter"><code>widget</code></em>'s name instead of starting with the name
of <em class="parameter"><code>widget</code></em>'s outermost ancestor.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path_length</code></em>&#160;:</span></td>
<td> location to store length of the path, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td> location to store allocated path string, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path_reversed</code></em>&#160;:</span></td>
<td> location to store allocated reverse path string, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705018"></a><h3>
<a name="gtk-widget-class-path"></a>gtk_widget_class_path ()</h3>
<a class="indexterm" name="id3705031"></a><pre class="programlisting">void        gtk_widget_class_path           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *path_length,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path,
                                             <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> **path_reversed);</pre>
<p>
Same as <a href="GtkWidget.html#gtk-widget-path"><code class="function">gtk_widget_path()</code></a>, but always uses the name of a widget's type,
never uses a custom name set with <a href="GtkWidget.html#gtk-widget-set-name"><code class="function">gtk_widget_set_name()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path_length</code></em>&#160;:</span></td>
<td> location to store the length of the class path, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></td>
<td> location to store the class path as an allocated string, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>path_reversed</code></em>&#160;:</span></td>
<td> location to store the reverse class path as an allocated string, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705208"></a><h3>
<a name="gtk-widget-get-composite-name"></a>gtk_widget_get_composite_name ()</h3>
<a class="indexterm" name="id3705222"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>*      gtk_widget_get_composite_name   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Obtains the composite name of a widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the composite name of <em class="parameter"><code>widget</code></em>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>widget</code></em> is not
  a composite child. The string should not be freed when it is no 
  longer needed.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705314"></a><h3>
<a name="gtk-widget-modify-style"></a>gtk_widget_modify_style ()</h3>
<a class="indexterm" name="id3705327"></a><pre class="programlisting">void        gtk_widget_modify_style         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Resource-Files.html#GtkRcStyle">GtkRcStyle</a> *style);</pre>
<p>
Modifies style values on the widget. Modifications made using this
technique take precedence over style values set via an RC file,
however, they will be overriden if a style is explicitely set on
the widget using <a href="GtkWidget.html#gtk-widget-set-style"><code class="function">gtk_widget_set_style()</code></a>. The <a href="gtk-Resource-Files.html#GtkRcStyle"><span class="type">GtkRcStyle</span></a> structure
is designed so each field can either be set or unset, so it is
possible, using this function, to modify some style values and
leave the others unchanged.
</p>
<p>
Note that modifications made with this function are not cumulative
with previous calls to <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a> or with such
functions as <a href="GtkWidget.html#gtk-widget-modify-fg"><code class="function">gtk_widget_modify_fg()</code></a>. If you wish to retain
previous values, you must first call <a href="GtkWidget.html#gtk-widget-get-modifier-style"><code class="function">gtk_widget_get_modifier_style()</code></a>,
make your modifications to the returned style, then call
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a> with that style. On the other hand,
if you first call <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>, subsequent calls
to such functions <a href="GtkWidget.html#gtk-widget-modify-fg"><code class="function">gtk_widget_modify_fg()</code></a> will have a cumulative
effect with the initial modifications.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>style</code></em>&#160;:</span></td>
<td> the <a href="gtk-Resource-Files.html#GtkRcStyle"><span class="type">GtkRcStyle</span></a> holding the style modifications
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705515"></a><h3>
<a name="gtk-widget-get-modifier-style"></a>gtk_widget_get_modifier_style ()</h3>
<a class="indexterm" name="id3705529"></a><pre class="programlisting"><a href="gtk-Resource-Files.html#GtkRcStyle">GtkRcStyle</a>* gtk_widget_get_modifier_style   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the current modifier style for the widget. (As set by
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.) If no style has previously set, a new
<a href="gtk-Resource-Files.html#GtkRcStyle"><span class="type">GtkRcStyle</span></a> will be created with all values unset, and set as the
modifier style for the widget. If you make changes to this rc
style, you must call <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>, passing in the
returned rc style, to make sure that your changes take effect.
</p>
<p>
Caution: passing the style back to <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a> will
normally end up destroying it, because <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a> copies
the passed-in style and sets the copy as the new modifier style,
thus dropping any reference to the old modifier style. Add a reference
to the modifier style if you want to keep it alive.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the modifier style for the widget. This rc style is
  owned by the widget. If you want to keep a pointer to value this
  around, you must add a refcount using <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705674"></a><h3>
<a name="gtk-widget-modify-fg"></a>gtk_widget_modify_fg ()</h3>
<a class="indexterm" name="id3705688"></a><pre class="programlisting">void        gtk_widget_modify_fg            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the foreground color for a widget in a particular state.  All
other style values are left untouched. See also
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td> the state for which to set the foreground color.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> the color to assign (does not need to be allocated),
        or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to undo the effect of previous calls to
        of <a href="GtkWidget.html#gtk-widget-modify-fg"><code class="function">gtk_widget_modify_fg()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3705824"></a><h3>
<a name="gtk-widget-modify-bg"></a>gtk_widget_modify_bg ()</h3>
<a class="indexterm" name="id3705837"></a><pre class="programlisting">void        gtk_widget_modify_bg            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the background color for a widget in a particular state.  All
other style values are left untouched. See also
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>. 
</p>
<p>
Note that "no window" widgets (which have the <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><code class="literal">GTK_NO_WINDOW</code></a> flag set)
draw on their parent container's window and thus may not draw any background
themselves. This is the case for e.g. <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>. To modify the background
of such widgets, you have to set the background color on their parent; if you want 
to set the background of a rectangular area around a label, try placing the 
label in a <a href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a> widget and setting the background color on that.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td> the state for which to set the background color.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> the color to assign (does not need to be allocated),
        or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to undo the effect of previous calls to
        of <a href="GtkWidget.html#gtk-widget-modify-bg"><code class="function">gtk_widget_modify_bg()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706011"></a><h3>
<a name="gtk-widget-modify-text"></a>gtk_widget_modify_text ()</h3>
<a class="indexterm" name="id3706023"></a><pre class="programlisting">void        gtk_widget_modify_text          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the text color for a widget in a particular state.  All other
style values are left untouched. The text color is the foreground
color used along with the base color (see <a href="GtkWidget.html#gtk-widget-modify-base"><code class="function">gtk_widget_modify_base()</code></a>)
for widgets such as <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> and <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. See also
<a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td> the state for which to set the text color.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> the color to assign (does not need to be allocated),
        or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to undo the effect of previous calls to
        of <a href="GtkWidget.html#gtk-widget-modify-text"><code class="function">gtk_widget_modify_text()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706188"></a><h3>
<a name="gtk-widget-modify-base"></a>gtk_widget_modify_base ()</h3>
<a class="indexterm" name="id3706202"></a><pre class="programlisting">void        gtk_widget_modify_base          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                             const <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> *color);</pre>
<p>
Sets the base color for a widget in a particular state.
All other style values are left untouched. The base color
is the background color used along with the text color
(see <a href="GtkWidget.html#gtk-widget-modify-text"><code class="function">gtk_widget_modify_text()</code></a>) for widgets such as <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a>
and <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. See also <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.
</p>
<p>
Note that "no window" widgets (which have the <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><code class="literal">GTK_NO_WINDOW</code></a> flag set)
draw on their parent container's window and thus may not draw any background
themselves. This is the case for e.g. <a href="GtkLabel.html" title="GtkLabel"><span class="type">GtkLabel</span></a>. To modify the background
of such widgets, you have to set the base color on their parent; if you want 
to set the background of a rectangular area around a label, try placing the 
label in a <a href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a> widget and setting the base color on that.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td> the state for which to set the base color.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>color</code></em>&#160;:</span></td>
<td> the color to assign (does not need to be allocated),
        or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to undo the effect of previous calls to
        of <a href="GtkWidget.html#gtk-widget-modify-base"><code class="function">gtk_widget_modify_base()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706403"></a><h3>
<a name="gtk-widget-modify-font"></a>gtk_widget_modify_font ()</h3>
<a class="indexterm" name="id3706416"></a><pre class="programlisting">void        gtk_widget_modify_font          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../pango/pango-Fonts.html#PangoFontDescription"
>PangoFontDescription</a> *font_desc);</pre>
<p>
Sets the font to use for a widget.  All other style values are left
untouched. See also <a href="GtkWidget.html#gtk-widget-modify-style"><code class="function">gtk_widget_modify_style()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>font_desc</code></em>&#160;:</span></td>
<td> the font description to use, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> to undo
  the effect of previous calls to <a href="GtkWidget.html#gtk-widget-modify-font"><code class="function">gtk_widget_modify_font()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706530"></a><h3>
<a name="gtk-widget-create-pango-context"></a>gtk_widget_create_pango_context ()</h3>
<a class="indexterm" name="id3706543"></a><pre class="programlisting"><a
href="../pango/pango-Text-Processing.html#PangoContext"
>PangoContext</a>* gtk_widget_create_pango_context
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Creates a new <a
href="../pango/pango-Text-Processing.html#PangoContext"
><span class="type">PangoContext</span></a> with the appropriate font map,
font description, and base direction for drawing text for
this widget. See also <a href="GtkWidget.html#gtk-widget-get-pango-context"><code class="function">gtk_widget_get_pango_context()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the new <a
href="../pango/pango-Text-Processing.html#PangoContext"
><span class="type">PangoContext</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706642"></a><h3>
<a name="gtk-widget-get-pango-context"></a>gtk_widget_get_pango_context ()</h3>
<a class="indexterm" name="id3706655"></a><pre class="programlisting"><a
href="../pango/pango-Text-Processing.html#PangoContext"
>PangoContext</a>* gtk_widget_get_pango_context  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets a <a
href="../pango/pango-Text-Processing.html#PangoContext"
><span class="type">PangoContext</span></a> with the appropriate font map, font description,
and base direction for this widget. Unlike the context returned
by <a href="GtkWidget.html#gtk-widget-create-pango-context"><code class="function">gtk_widget_create_pango_context()</code></a>, this context is owned by
the widget (it can be used until the screen for the widget changes
or the widget is removed from its toplevel), and will be updated to
match any changes to the widget's attributes.
</p>
<p>
If you create and keep a <a
href="../pango/pango-Layout-Objects.html#PangoLayout"
><span class="type">PangoLayout</span></a> using this context, you must
deal with changes to the context by calling <a
href="../pango/pango-Layout-Objects.html#pango-layout-context-changed"
><code class="function">pango_layout_context_changed()</code></a>
on the layout in response to the ::style-set and ::direction-changed signals
for the widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../pango/pango-Text-Processing.html#PangoContext"
><span class="type">PangoContext</span></a> for the widget.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706784"></a><h3>
<a name="gtk-widget-create-pango-layout"></a>gtk_widget_create_pango_layout ()</h3>
<a class="indexterm" name="id3706798"></a><pre class="programlisting"><a
href="../pango/pango-Layout-Objects.html#PangoLayout"
>PangoLayout</a>* gtk_widget_create_pango_layout (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text);</pre>
<p>
Creates a new <a
href="../pango/pango-Layout-Objects.html#PangoLayout"
><span class="type">PangoLayout</span></a> with the appropriate font map,
font description, and base direction for drawing text for
this widget.
</p>
<p>
If you keep a <a
href="../pango/pango-Layout-Objects.html#PangoLayout"
><span class="type">PangoLayout</span></a> created in this way around, in order to
notify the layout of changes to the base direction or font of this
widget, you must call <a
href="../pango/pango-Layout-Objects.html#pango-layout-context-changed"
><code class="function">pango_layout_context_changed()</code></a> in response to
the ::style-set and ::direction-changed signals for the widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em>&#160;:</span></td>
<td>   text to set on the layout (can be <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>)
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the new <a
href="../pango/pango-Layout-Objects.html#PangoLayout"
><span class="type">PangoLayout</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3706941"></a><h3>
<a name="gtk-widget-render-icon"></a>gtk_widget_render_icon ()</h3>
<a class="indexterm" name="id3706955"></a><pre class="programlisting"><a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a>*  gtk_widget_render_icon          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *stock_id,
                                             <a href="gtk-Themeable-Stock-Images.html#GtkIconSize">GtkIconSize</a> size,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *detail);</pre>
<p>
A convenience function that uses the theme engine and RC file
settings for <em class="parameter"><code>widget</code></em> to look up <em class="parameter"><code>stock_id</code></em> and render it to
a pixbuf. <em class="parameter"><code>stock_id</code></em> should be a stock icon ID such as
<a href="gtk-Stock-Items.html#GTK-STOCK-OPEN:CAPS"><span class="type">GTK_STOCK_OPEN</span></a> or <a href="gtk-Stock-Items.html#GTK-STOCK-OK:CAPS"><span class="type">GTK_STOCK_OK</span></a>. <em class="parameter"><code>size</code></em> should be a size
such as <span class="type">GTK_ICON_SIZE_MENU</span>. <em class="parameter"><code>detail</code></em> should be a string that
identifies the widget or code doing the rendering, so that
theme engines can special-case rendering for that widget or code.
</p>
<p>
The pixels in the returned <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
><span class="type">GdkPixbuf</span></a> are shared with the rest of
the application and should not be modified. The pixbuf should be freed
after use with <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-unref"
><code class="function">g_object_unref()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>stock_id</code></em>&#160;:</span></td>
<td> a stock ID
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>size</code></em>&#160;:</span></td>
<td> a stock size. A size of (GtkIconSize)-1 means render at 
    the size of the source and don't scale (if there are multiple 
    source sizes, GTK+ picks one of the available sizes).
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>detail</code></em>&#160;:</span></td>
<td> render detail to pass to theme engine
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a new pixbuf, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the stock ID wasn't known
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707186"></a><h3>
<a name="gtk-widget-pop-composite-child"></a>gtk_widget_pop_composite_child ()</h3>
<a class="indexterm" name="id3707199"></a><pre class="programlisting">void        gtk_widget_pop_composite_child  (void);</pre>
<p>
Cancels the effect of a previous call to <a href="GtkWidget.html#gtk-widget-push-composite-child"><code class="function">gtk_widget_push_composite_child()</code></a>.</p>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707235"></a><h3>
<a name="gtk-widget-push-composite-child"></a>gtk_widget_push_composite_child ()</h3>
<a class="indexterm" name="id3707249"></a><pre class="programlisting">void        gtk_widget_push_composite_child (void);</pre>
<p>
Makes all newly-created widgets as composite children until
the corresponding <a href="GtkWidget.html#gtk-widget-pop-composite-child"><code class="function">gtk_widget_pop_composite_child()</code></a> call.
</p>
<p>
A composite child is a child that's an implementation detail of the
container it's inside and should not be visible to people using the
container. Composite children aren't treated differently by GTK (but
see <a href="GtkContainer.html#gtk-container-foreach"><code class="function">gtk_container_foreach()</code></a> vs. <a href="GtkContainer.html#gtk-container-forall"><code class="function">gtk_container_forall()</code></a>), but e.g. GUI 
builders might want to treat them in a different way.
</p>
<p>
Here is a simple example:
</p>
<div class="informalexample"><pre class="programlisting">
  gtk_widget_push_composite_child ();
  scrolled_window-&gt;hscrollbar = gtk_hscrollbar_new (hadjustment);
  gtk_widget_set_composite_name (scrolled_window-&gt;hscrollbar, "hscrollbar");
  gtk_widget_pop_composite_child ();
  gtk_widget_set_parent (scrolled_window-&gt;hscrollbar, 
                         GTK_WIDGET (scrolled_window));
  g_object_ref (scrolled_window-&gt;hscrollbar);
</pre></div>
<p>

</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707338"></a><h3>
<a name="gtk-widget-queue-clear"></a>gtk_widget_queue_clear ()</h3>
<a class="indexterm" name="id3707353"></a><pre class="programlisting">void        gtk_widget_queue_clear          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_queue_clear</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function does the same as <a href="GtkWidget.html#gtk-widget-queue-draw"><code class="function">gtk_widget_queue_draw()</code></a>.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a href="GtkWidget.html#gtk-widget-queue-draw"><code class="function">gtk_widget_queue_draw()</code></a> instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707455"></a><h3>
<a name="gtk-widget-queue-clear-area"></a>gtk_widget_queue_clear_area ()</h3>
<a class="indexterm" name="id3707471"></a><pre class="programlisting">void        gtk_widget_queue_clear_area     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_queue_clear_area</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is no longer different from
<a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a>, though it once was. Now it just calls
<a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a>. Originally
<a href="GtkWidget.html#gtk-widget-queue-clear-area"><code class="function">gtk_widget_queue_clear_area()</code></a> would force a redraw of the
background for <a href="GtkWidget.html#GTK-NO-WINDOW:CAPS"><code class="literal">GTK_NO_WINDOW</code></a> widgets, and
<a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a> would not. Now both functions ensure
the background will be redrawn.
</p>
<p>
<em class="parameter"><code>Deprecated</code></em>: Use <a href="GtkWidget.html#gtk-widget-queue-draw-area"><code class="function">gtk_widget_queue_draw_area()</code></a> instead.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> x coordinate of upper-left corner of rectangle to redraw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> y coordinate of upper-left corner of rectangle to redraw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width of region to draw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height of region to draw
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707706"></a><h3>
<a name="gtk-widget-queue-draw-area"></a>gtk_widget_queue_draw_area ()</h3>
<a class="indexterm" name="id3707720"></a><pre class="programlisting">void        gtk_widget_queue_draw_area      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<p>
Invalidates the rectangular area of <em class="parameter"><code>widget</code></em> defined by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>,
<em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em> by calling <a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-rect"
><code class="function">gdk_window_invalidate_rect()</code></a> on the
widget's window and all its child windows.  Once the main loop
becomes idle (after the current batch of events has been processed,
roughly), the window will receive expose events for the union of
all regions that have been invalidated.
</p>
<p>
Normally you would only use this function in widget
implementations. You might also use it, or
<a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-rect"
><code class="function">gdk_window_invalidate_rect()</code></a> directly, to schedule a redraw of a
<a href="GtkDrawingArea.html" title="GtkDrawingArea"><span class="type">GtkDrawingArea</span></a> or some portion thereof.
</p>
<p>
Frequently you can just call <a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-rect"
><code class="function">gdk_window_invalidate_rect()</code></a> or
<a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-region"
><code class="function">gdk_window_invalidate_region()</code></a> instead of this function. Those
functions will invalidate only a single window, instead of the
widget and all its children.
</p>
<p>
The advantage of adding to the invalidated region compared to
simply drawing immediately is efficiency; using an invalid region
ensures that you only have to redraw one time.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> x coordinate of upper-left corner of rectangle to redraw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> y coordinate of upper-left corner of rectangle to redraw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width of region to draw
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height of region to draw
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3707971"></a><h3>
<a name="gtk-widget-reset-shapes"></a>gtk_widget_reset_shapes ()</h3>
<a class="indexterm" name="id3707984"></a><pre class="programlisting">void        gtk_widget_reset_shapes         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Recursively resets the shape on this widget and its descendants.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708042"></a><h3>
<a name="gtk-widget-set-app-paintable"></a>gtk_widget_set_app_paintable ()</h3>
<a class="indexterm" name="id3708056"></a><pre class="programlisting">void        gtk_widget_set_app_paintable    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> app_paintable);</pre>
<p>
Sets whether the application intends to draw on the widget in
an ::expose-event handler. 
</p>
<p>
This is a hint to the widget and does not affect the behavior of 
the GTK+ core; many widgets ignore this flag entirely. For widgets 
that do pay attention to the flag, such as <a href="GtkEventBox.html" title="GtkEventBox"><span class="type">GtkEventBox</span></a> and <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>, 
the effect is to suppress default themed drawing of the widget's 
background. (Children of the widget will still be drawn.) The application 
is then entirely responsible for drawing the widget background.
</p>
<p>
Note that the background is still drawn when the widget is mapped.
If this is not suitable (e.g. because you want to make a transparent
window using an RGBA visual), you can work around this by doing:
</p>
<div class="informalexample"><pre class="programlisting">
 gtk_widget_realize (window);
 gdk_window_set_back_pixmap (window-&gt;window, NULL, FALSE);
 gtk_widget_show (window);
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>app_paintable</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the application will paint on the widget
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708187"></a><h3>
<a name="gtk-widget-set-double-buffered"></a>gtk_widget_set_double_buffered ()</h3>
<a class="indexterm" name="id3708201"></a><pre class="programlisting">void        gtk_widget_set_double_buffered  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> double_buffered);</pre>
<p>
Widgets are double buffered by default; you can use this function
to turn off the buffering. "Double buffered" simply means that
<a
href="../gdk/gdk-Windows.html#gdk-window-begin-paint-region"
><code class="function">gdk_window_begin_paint_region()</code></a> and <a
href="../gdk/gdk-Windows.html#gdk-window-end-paint"
><code class="function">gdk_window_end_paint()</code></a> are called
automatically around expose events sent to the
widget. <code class="function">gdk_window_begin_paint()</code> diverts all drawing to a widget's
window to an offscreen buffer, and <a
href="../gdk/gdk-Windows.html#gdk-window-end-paint"
><code class="function">gdk_window_end_paint()</code></a> draws the
buffer to the screen. The result is that users see the window
update in one smooth step, and don't see individual graphics
primitives being rendered.
</p>
<p>
In very simple terms, double buffered widgets don't flicker,
so you would only use this function to turn off double buffering
if you had special needs and really knew what you were doing.
</p>
<p>
Note: if you turn off double-buffering, you have to handle
expose events, since even the clearing to the background color or 
pixmap will not happen automatically (as it is done in 
<code class="function">gdk_window_begin_paint()</code>).</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>double_buffered</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to double-buffer a widget
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708368"></a><h3>
<a name="gtk-widget-set-redraw-on-allocate"></a>gtk_widget_set_redraw_on_allocate ()</h3>
<a class="indexterm" name="id3708382"></a><pre class="programlisting">void        gtk_widget_set_redraw_on_allocate
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> redraw_on_allocate);</pre>
<p>
Sets whether the entire widget is queued for drawing when its size 
allocation changes. By default, this setting is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> and
the entire widget is redrawn on every size change. If your widget
leaves the upper left unchanged when made bigger, turning this
setting on will improve performance.
</p>
<p>
Note that for <code class="literal">NO_WINDOW</code> widgets setting this flag to <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> turns
off all allocation on resizing: the widget will not even redraw if
its position changes; this is to allow containers that don't draw
anything to avoid excess invalidations. If you set this flag on a
<code class="literal">NO_WINDOW</code> widget that <span class="emphasis"><em>does</em></span> draw on <em class="parameter"><code>widget-&gt;window</code></em>, 
you are responsible for invalidating both the old and new allocation 
of the widget when the widget is moved and responsible for invalidating
regions newly when the widget increases size.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>redraw_on_allocate</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, the entire widget will be redrawn
  when it is allocated to a new size. Otherwise, only the
  new portion of the widget will be redrawn.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708542"></a><h3>
<a name="gtk-widget-set-composite-name"></a>gtk_widget_set_composite_name ()</h3>
<a class="indexterm" name="id3708556"></a><pre class="programlisting">void        gtk_widget_set_composite_name   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Sets a widgets composite name. The widget must be
a composite child of its parent; see <a href="GtkWidget.html#gtk-widget-push-composite-child"><code class="function">gtk_widget_push_composite_child()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em>&#160;:</span></td>
<td> the name to set.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708647"></a><h3>
<a name="gtk-widget-set-scroll-adjustments"></a>gtk_widget_set_scroll_adjustments ()</h3>
<a class="indexterm" name="id3708662"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_set_scroll_adjustments
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *hadjustment,
                                             <a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *vadjustment);</pre>
<p>
For widgets that support scrolling, sets the scroll adjustments and
returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.  For widgets that don't support scrolling, does
nothing and returns <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. Widgets that don't support scrolling
can be scrolled by placing them in a <a href="GtkViewport.html" title="GtkViewport"><span class="type">GtkViewport</span></a>, which does
support scrolling.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>hadjustment</code></em>&#160;:</span></td>
<td> an adjustment for horizontal scrolling, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>vadjustment</code></em>&#160;:</span></td>
<td> an adjustment for vertical scrolling, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget supports scrolling
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708838"></a><h3>
<a name="gtk-widget-mnemonic-activate"></a>gtk_widget_mnemonic_activate ()</h3>
<a class="indexterm" name="id3708851"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_mnemonic_activate    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> group_cycling);</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>group_cycling</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3708929"></a><h3>
<a name="gtk-widget-class-install-style-property"></a>gtk_widget_class_install_style_property ()</h3>
<a class="indexterm" name="id3708943"></a><pre class="programlisting">void        gtk_widget_class_install_style_property
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec);</pre>
<p>
Installs a style property on a widget class. The parser for the
style property is determined by the value type of <em class="parameter"><code>pspec</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>klass</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> for the property
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709040"></a><h3>
<a name="gtk-widget-class-install-style-property-parser"></a>gtk_widget_class_install_style_property_parser ()</h3>
<a class="indexterm" name="id3709054"></a><pre class="programlisting">void        gtk_widget_class_install_style_property_parser
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec,
                                             <a href="GtkStyle.html#GtkRcPropertyParser">GtkRcPropertyParser</a> parser);</pre>
<p>
Installs a style property on a widget class.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>klass</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> for the style property
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>parser</code></em>&#160;:</span></td>
<td> the parser for the style property
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709166"></a><h3>
<a name="gtk-widget-class-find-style-property"></a>gtk_widget_class_find_style_property ()</h3>
<a class="indexterm" name="id3709183"></a><pre class="programlisting"><a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>* gtk_widget_class_find_style_property
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name);</pre>
<p>
Finds a style property of a widget class by name.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>klass</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
<td> the name of the style property to find
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> of the style property or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if <em class="parameter"><code>class</code></em> has no
  style property with that name.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709305"></a><h3>
<a name="gtk-widget-class-list-style-properties"></a>gtk_widget_class_list_style_properties ()</h3>
<a class="indexterm" name="id3709321"></a><pre class="programlisting"><a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a>** gtk_widget_class_list_style_properties
                                            (<a href="GtkWidget.html#GtkWidgetClass">GtkWidgetClass</a> *klass,
                                             <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a> *n_properties);</pre>
<p>
Returns all style properties of a widget class.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>klass</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkWidgetClass"><span class="type">GtkWidgetClass</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_properties</code></em>&#160;:</span></td>
<td> location to return the number of style properties found
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> an newly allocated array of <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a>*. The array must be freed with <a
href="../glib/glib-Memory-Allocation.html#g-free"
><code class="function">g_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709437"></a><h3>
<a name="gtk-widget-region-intersect"></a>gtk_widget_region_intersect ()</h3>
<a class="indexterm" name="id3709451"></a><pre class="programlisting"><a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRegion"
>GdkRegion</a>*  gtk_widget_region_intersect     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRegion"
>GdkRegion</a> *region);</pre>
<p>
Computes the intersection of a <em class="parameter"><code>widget</code></em>'s area and <em class="parameter"><code>region</code></em>, returning
the intersection. The result may be empty, use <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#gdk-region-empty"
><code class="function">gdk_region_empty()</code></a> to
check.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>region</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRegion"
><span class="type">GdkRegion</span></a>, in the same coordinate system as 
         <em class="parameter"><code>widget-&gt;allocation</code></em>. That is, relative to <em class="parameter"><code>widget-&gt;window</code></em>
         for <code class="literal">NO_WINDOW</code> widgets; relative to the parent window
         of <em class="parameter"><code>widget-&gt;window</code></em> for widgets with their own window.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> A newly allocated region holding the intersection of <em class="parameter"><code>widget</code></em>
          and <em class="parameter"><code>region</code></em>. The coordinates of the return value are
          relative to <em class="parameter"><code>widget-&gt;window</code></em> for <code class="literal">NO_WINDOW</code> widgets, and
          relative to the parent window of <em class="parameter"><code>widget-&gt;window</code></em> for
          widgets with their own window.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709642"></a><h3>
<a name="gtk-widget-send-expose"></a>gtk_widget_send_expose ()</h3>
<a class="indexterm" name="id3709655"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>        gtk_widget_send_expose          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a> *event);</pre>
<p>
Very rarely-used function. This function is used to emit
an expose event signals on a widget. This function is not
normally used directly. The only time it is used is when
propagating an expose event to a child <code class="literal">NO_WINDOW</code> widget, and
that is normally done using <a href="GtkContainer.html#gtk-container-propagate-expose"><code class="function">gtk_container_propagate_expose()</code></a>.
</p>
<p>
If you want to force an area of a window to be redrawn, 
use <a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-rect"
><code class="function">gdk_window_invalidate_rect()</code></a> or <a
href="../gdk/gdk-Windows.html#gdk-window-invalidate-region"
><code class="function">gdk_window_invalidate_region()</code></a>.
To cause the redraw to be done immediately, follow that call
with a call to <a
href="../gdk/gdk-Windows.html#gdk-window-process-updates"
><code class="function">gdk_window_process_updates()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td> a expose <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
><span class="type">GdkEvent</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> return from the event signal emission (<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the event was handled)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709830"></a><h3>
<a name="gtk-widget-style-get"></a>gtk_widget_style_get ()</h3>
<a class="indexterm" name="id3709843"></a><pre class="programlisting">void        gtk_widget_style_get            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             ...);</pre>
<p>
Gets the values of a multiple style properties of <em class="parameter"><code>widget</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em>&#160;:</span></td>
<td> the name of the first property to get
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em>&#160;:</span></td>
<td> pairs of property names and locations to 
  return the property values, starting with the location for 
  <em class="parameter"><code>first_property_name</code></em>, terminated by <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3709961"></a><h3>
<a name="gtk-widget-style-get-property"></a>gtk_widget_style_get_property ()</h3>
<a class="indexterm" name="id3709975"></a><pre class="programlisting">void        gtk_widget_style_get_property   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *property_name,
                                             <a
href="../gobject/gobject-Generic-values.html#GValue"
>GValue</a> *value);</pre>
<p>
Gets the value of a style property of <em class="parameter"><code>widget</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>property_name</code></em>&#160;:</span></td>
<td> the name of a style property
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>value</code></em>&#160;:</span></td>
<td> location to return the property value 
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710083"></a><h3>
<a name="gtk-widget-style-get-valist"></a>gtk_widget_style_get_valist ()</h3>
<a class="indexterm" name="id3710097"></a><pre class="programlisting">void        gtk_widget_style_get_valist     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
                                             va_list var_args);</pre>
<p>
Non-vararg variant of <a href="GtkWidget.html#gtk-widget-style-get"><code class="function">gtk_widget_style_get()</code></a>. Used primarily by language 
bindings.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em>&#160;:</span></td>
<td> the name of the first property to get
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>var_args</code></em>&#160;:</span></td>
<td> a <span class="type">va_list</span> of pairs of property names and
    locations to return the property values, starting with the location
    for <em class="parameter"><code>first_property_name</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710220"></a><h3>
<a name="gtk-widget-get-accessible"></a>gtk_widget_get_accessible ()</h3>
<a class="indexterm" name="id3710234"></a><pre class="programlisting"><a
href="../atk/AtkObject.html"
>AtkObject</a>*  gtk_widget_get_accessible       (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the accessible object that describes the widget to an
assistive technology. 
</p>
<p>
If no accessibility library is loaded (i.e. no ATK implementation library is 
loaded via <code class="envar">GTK_MODULES</code> or via another application library, 
such as libgnome), then this <a
href="../atk/AtkObject.html"
><span class="type">AtkObject</span></a> instance may be a no-op. Likewise, 
if no class-specific <a
href="../atk/AtkObject.html"
><span class="type">AtkObject</span></a> implementation is available for the widget 
instance in question, it will inherit an <a
href="../atk/AtkObject.html"
><span class="type">AtkObject</span></a> implementation from the 
first ancestor class for which such an implementation is defined.
</p>
<p>
The documentation of the <a href="http://developer.gnome.org/doc/API/2.0/atk/index.html" target="_top">ATK</a>
library contains more information about accessible objects and their uses.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../atk/AtkObject.html"
><span class="type">AtkObject</span></a> associated with <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710365"></a><h3>
<a name="gtk-widget-child-focus"></a>gtk_widget_child_focus ()</h3>
<a class="indexterm" name="id3710378"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_child_focus          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> direction);</pre>
<p>
This function is used by custom widget implementations; if you're
writing an app, you'd use <a href="GtkWidget.html#gtk-widget-grab-focus"><code class="function">gtk_widget_grab_focus()</code></a> to move the focus
to a particular widget, and <a href="GtkContainer.html#gtk-container-set-focus-chain"><code class="function">gtk_container_set_focus_chain()</code></a> to
change the focus tab order. So you may want to investigate those
functions instead.
</p>
<p>
<a href="GtkWidget.html#gtk-widget-child-focus"><code class="function">gtk_widget_child_focus()</code></a> is called by containers as the user moves
around the window using keyboard shortcuts. <em class="parameter"><code>direction</code></em> indicates
what kind of motion is taking place (up, down, left, right, tab
forward, tab backward).  <a href="GtkWidget.html#gtk-widget-child-focus"><code class="function">gtk_widget_child_focus()</code></a> invokes the
"focus" signal on <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>; widgets override the default handler
for this signal in order to implement appropriate focus behavior.
</p>
<p>
The "focus" default handler for a widget should return <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if
moving in <em class="parameter"><code>direction</code></em> left the focus on a focusable location inside
that widget, and <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if moving in <em class="parameter"><code>direction</code></em> moved the focus
outside the widget. If returning <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, widgets normally
call <a href="GtkWidget.html#gtk-widget-grab-focus"><code class="function">gtk_widget_grab_focus()</code></a> to place the focus accordingly;
if returning <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, they don't modify the current focus location.
</p>
<p>
This function replaces <code class="function">gtk_container_focus()</code> from GTK+ 1.2.  It was
necessary to check that the child was visible, sensitive, and
focusable before calling
<code class="function">gtk_container_focus()</code>. <a href="GtkWidget.html#gtk-widget-child-focus"><code class="function">gtk_widget_child_focus()</code></a> returns <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if
the widget is not currently in a focusable state, so there's no
need for those checks.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>direction</code></em>&#160;:</span></td>
<td> direction of focus movement
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if focus ended up inside <em class="parameter"><code>widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710678"></a><h3>
<a name="gtk-widget-child-notify"></a>gtk_widget_child_notify ()</h3>
<a class="indexterm" name="id3710691"></a><pre class="programlisting">void        gtk_widget_child_notify         (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *child_property);</pre>
<p>
Emits a "child-notify" signal for the 
<a href="GtkContainer.html#child-properties" title="Child properties">child property</a> <em class="parameter"><code>child_property</code></em> 
on <em class="parameter"><code>widget</code></em>.
</p>
<p>
This is the analogue of <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-notify"
><code class="function">g_object_notify()</code></a> for child properties.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child_property</code></em>&#160;:</span></td>
<td> the name of a child property installed on the 
                 class of <em class="parameter"><code>widget</code></em>'s parent.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710814"></a><h3>
<a name="gtk-widget-freeze-child-notify"></a>gtk_widget_freeze_child_notify ()</h3>
<a class="indexterm" name="id3710828"></a><pre class="programlisting">void        gtk_widget_freeze_child_notify  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Stops emission of "child-notify" signals on <em class="parameter"><code>widget</code></em>. The signals are
queued until <a href="GtkWidget.html#gtk-widget-thaw-child-notify"><code class="function">gtk_widget_thaw_child_notify()</code></a> is called on <em class="parameter"><code>widget</code></em>. 
</p>
<p>
This is the analogue of <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-freeze-notify"
><code class="function">g_object_freeze_notify()</code></a> for child properties.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3710926"></a><h3>
<a name="gtk-widget-get-child-visible"></a>gtk_widget_get_child_visible ()</h3>
<a class="indexterm" name="id3710940"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_get_child_visible    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets the value set with <a href="GtkWidget.html#gtk-widget-set-child-visible"><code class="function">gtk_widget_set_child_visible()</code></a>.
If you feel a need to use this function, your code probably
needs reorganization. 
</p>
<p>
This function is only useful for container implementations and
never should be called by an application.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget is mapped with the parent.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711037"></a><h3>
<a name="gtk-widget-get-parent"></a>gtk_widget_get_parent ()</h3>
<a class="indexterm" name="id3711050"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>*  gtk_widget_get_parent           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the parent container of <em class="parameter"><code>widget</code></em>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the parent container of <em class="parameter"><code>widget</code></em>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711140"></a><h3>
<a name="gtk-widget-get-settings"></a>gtk_widget_get_settings ()</h3>
<a class="indexterm" name="id3711153"></a><pre class="programlisting"><a href="GtkSettings.html" title="Settings">GtkSettings</a>* gtk_widget_get_settings        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Gets the settings object holding the settings (global property
settings, RC file information, etc) used for this widget.
</p>
<p>
Note that this function can only be called when the <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
is attached to a toplevel, since the settings object is specific
to a particular <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the relevant <a href="GtkSettings.html" title="Settings"><span class="type">GtkSettings</span></a> object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711252"></a><h3>
<a name="gtk-widget-get-clipboard"></a>gtk_widget_get_clipboard ()</h3>
<a class="indexterm" name="id3711267"></a><pre class="programlisting"><a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a>* gtk_widget_get_clipboard      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> selection);</pre>
<p>
Returns the clipboard object for the given selection to
be used with <em class="parameter"><code>widget</code></em>. <em class="parameter"><code>widget</code></em> must have a <a
href="../gdk/GdkDisplay.html"
><span class="type">GdkDisplay</span></a>
associated with it, so must be attached to a toplevel
window.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>selection</code></em>&#160;:</span></td>
<td> a <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> which identifies the clipboard
            to use. <a
href="../gdk/gdk-Selections.html#GDK-SELECTION-CLIPBOARD:CAPS"
><code class="literal">GDK_SELECTION_CLIPBOARD</code></a> gives the
            default clipboard. Another common value
            is <a
href="../gdk/gdk-Selections.html#GDK-SELECTION-PRIMARY:CAPS"
><code class="literal">GDK_SELECTION_PRIMARY</code></a>, which gives
            the primary X selection. 
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the appropriate clipboard object. If no
            clipboard already exists, a new one will
            be created. Once a clipboard object has
            been created, it is persistent for all time.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711420"></a><h3>
<a name="gtk-widget-get-display"></a>gtk_widget_get_display ()</h3>
<a class="indexterm" name="id3711435"></a><pre class="programlisting"><a
href="../gdk/GdkDisplay.html"
>GdkDisplay</a>* gtk_widget_get_display          (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Get the <a
href="../gdk/GdkDisplay.html"
><span class="type">GdkDisplay</span></a> for the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> at the top.
</p>
<p>
In general, you should only create display specific
resources when a widget has been realized, and you should
free those resources when the widget is unrealized.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../gdk/GdkDisplay.html"
><span class="type">GdkDisplay</span></a> for the toplevel for this widget.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711540"></a><h3>
<a name="gtk-widget-get-root-window"></a>gtk_widget_get_root_window ()</h3>
<a class="indexterm" name="id3711556"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>*  gtk_widget_get_root_window      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Get the root window where this widget is located. This function can
only be called after the widget has been added to a widget
heirarchy with <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> at the top.
</p>
<p>
The root window is useful for such purposes as creating a popup
<a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a> associated with the window. In general, you should only
create display specific resources when a widget has been realized,
and you should free those resources when the widget is unrealized.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a> root window for the toplevel for this widget.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711662"></a><h3>
<a name="gtk-widget-get-screen"></a>gtk_widget_get_screen ()</h3>
<a class="indexterm" name="id3711678"></a><pre class="programlisting"><a
href="../gdk/GdkScreen.html"
>GdkScreen</a>*  gtk_widget_get_screen           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Get the <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> from the toplevel window associated with
this widget. This function can only be called after the widget
has been added to a widget hierarchy with a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>
at the top.
</p>
<p>
In general, you should only create screen specific
resources when a widget has been realized, and you should
free those resources when the widget is unrealized.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> for the toplevel for this widget.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711783"></a><h3>
<a name="gtk-widget-has-screen"></a>gtk_widget_has_screen ()</h3>
<a class="indexterm" name="id3711798"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_has_screen           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Checks whether there is a <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> is associated with
this widget. All toplevel widgets have an associated
screen, and all widgets added into a heirarchy with a toplevel
window at the top.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if there is a <a
href="../gdk/GdkScreen.html"
><span class="type">GdkScreen</span></a> associcated
  with the widget.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.2
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3711899"></a><h3>
<a name="gtk-widget-get-size-request"></a>gtk_widget_get_size_request ()</h3>
<a class="indexterm" name="id3711913"></a><pre class="programlisting">void        gtk_widget_get_size_request     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);</pre>
<p>
Gets the size request that was explicitly set for the widget using
<a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a>.  A value of -1 stored in <em class="parameter"><code>width</code></em> or
<em class="parameter"><code>height</code></em> indicates that that dimension has not been set explicitly
and the natural requisition of the widget will be used intead. See
<a href="GtkWidget.html#gtk-widget-set-size-request"><code class="function">gtk_widget_set_size_request()</code></a>. To get the size a widget will
actually use, call <a href="GtkWidget.html#gtk-widget-size-request"><code class="function">gtk_widget_size_request()</code></a> instead of
this function.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> return location for width, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> return location for height, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712084"></a><h3>
<a name="gtk-widget-pop-visual"></a>gtk_widget_pop_visual()</h3>
<a class="indexterm" name="id3712099"></a><pre class="programlisting">#define gtk_widget_pop_visual()               ((void) 0)
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_pop_visual</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is deprecated; it does nothing.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712129"></a><h3>
<a name="gtk-widget-push-visual"></a>gtk_widget_push_visual()</h3>
<a class="indexterm" name="id3712144"></a><pre class="programlisting">#define gtk_widget_push_visual(visual)        ((void) 0)
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_push_visual</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is deprecated; it does nothing.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>visual</code></em>&#160;:</span></td>
<td>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712191"></a><h3>
<a name="gtk-widget-set-child-visible"></a>gtk_widget_set_child_visible ()</h3>
<a class="indexterm" name="id3712205"></a><pre class="programlisting">void        gtk_widget_set_child_visible    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> is_visible);</pre>
<p>
Sets whether <em class="parameter"><code>widget</code></em> should be mapped along with its when its parent
is mapped and <em class="parameter"><code>widget</code></em> has been shown with <a href="GtkWidget.html#gtk-widget-show"><code class="function">gtk_widget_show()</code></a>. 
</p>
<p>
The child visibility can be set for widget before it is added to
a container with <a href="GtkWidget.html#gtk-widget-set-parent"><code class="function">gtk_widget_set_parent()</code></a>, to avoid mapping
children unnecessary before immediately unmapping them. However
it will be reset to its default state of <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> when the widget
is removed from a container.
</p>
<p>
Note that changing the child visibility of a widget does not
queue a resize on the widget. Most of the time, the size of
a widget is computed from all visible children, whether or
not they are mapped. If this is not the case, the container
can queue a resize itself.
</p>
<p>
This function is only useful for container implementations and
never should be called by an application.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>is_visible</code></em>&#160;:</span></td>
<td> if <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>, <em class="parameter"><code>widget</code></em> should be mapped along with its parent.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712366"></a><h3>
<a name="gtk-widget-set-default-visual"></a>gtk_widget_set_default_visual()</h3>
<a class="indexterm" name="id3712382"></a><pre class="programlisting">#define gtk_widget_set_default_visual(visual) ((void) 0)
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set_default_visual</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is deprecated; it does nothing.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>visual</code></em>&#160;:</span></td>
<td>


</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712429"></a><h3>
<a name="gtk-widget-set-size-request"></a>gtk_widget_set_size_request ()</h3>
<a class="indexterm" name="id3712443"></a><pre class="programlisting">void        gtk_widget_set_size_request     (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> width,
                                             <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> height);</pre>
<p>
Sets the minimum size of a widget; that is, the widget's size
request will be <em class="parameter"><code>width</code></em> by <em class="parameter"><code>height</code></em>. You can use this function to
force a widget to be either larger or smaller than it normally
would be.
</p>
<p>
In most cases, <a href="GtkWindow.html#gtk-window-set-default-size"><code class="function">gtk_window_set_default_size()</code></a> is a better choice for
toplevel windows than this function; setting the default size will
still allow users to shrink the window. Setting the size request
will force them to leave the window at least as large as the size
request. When dealing with window sizes,
<a href="GtkWindow.html#gtk-window-set-geometry-hints"><code class="function">gtk_window_set_geometry_hints()</code></a> can be a useful function as well.
</p>
<p>
Note the inherent danger of setting any fixed size - themes,
translations into other languages, different fonts, and user action
can all change the appropriate size for a given widget. So, it's
basically impossible to hardcode a size that will always be
correct.
</p>
<p>
The size request of a widget is the smallest size a widget can
accept while still functioning well and drawing itself correctly.
However in some strange cases a widget may be allocated less than
its requested size, and in many cases a widget may be allocated more
space than it requested.
</p>
<p>
If the size request in a given direction is -1 (unset), then
the "natural" size request of the widget will be used instead.
</p>
<p>
Widgets can't actually be allocated a size less than 1 by 1, but
you can pass 0,0 to this function to mean "as small as possible."</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></td>
<td> width <em class="parameter"><code>widget</code></em> should request, or -1 to unset
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></td>
<td> height <em class="parameter"><code>widget</code></em> should request, or -1 to unset
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712628"></a><h3>
<a name="gtk-widget-set-visual"></a>gtk_widget_set_visual()</h3>
<a class="indexterm" name="id3712643"></a><pre class="programlisting">#define gtk_widget_set_visual(widget,visual)  ((void) 0)
</pre>
<div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
<h3 class="title">Warning</h3>
<p><code class="literal">gtk_widget_set_visual</code> is deprecated and should not be used in newly-written code.</p>
</div>
<p>
This function is deprecated; it does nothing.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>visual</code></em>&#160;:</span></td>
<td>


</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712704"></a><h3>
<a name="gtk-widget-thaw-child-notify"></a>gtk_widget_thaw_child_notify ()</h3>
<a class="indexterm" name="id3712718"></a><pre class="programlisting">void        gtk_widget_thaw_child_notify    (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Reverts the effect of a previous call to <a href="GtkWidget.html#gtk-widget-freeze-child-notify"><code class="function">gtk_widget_freeze_child_notify()</code></a>.
This causes all queued "child-notify" signals on <em class="parameter"><code>widget</code></em> to be emitted.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712794"></a><h3>
<a name="gtk-widget-set-no-show-all"></a>gtk_widget_set_no_show_all ()</h3>
<a class="indexterm" name="id3712810"></a><pre class="programlisting">void        gtk_widget_set_no_show_all      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> no_show_all);</pre>
<p>
Sets the "no_show_all" property, which determines whether calls to 
<a href="GtkWidget.html#gtk-widget-show-all"><code class="function">gtk_widget_show_all()</code></a> and <a href="GtkWidget.html#gtk-widget-hide-all"><code class="function">gtk_widget_hide_all()</code></a> will affect this widget. 
</p>
<p>
This is mostly for use in constructing widget hierarchies with externally
controlled visibility, see <a href="GtkUIManager.html" title="GtkUIManager"><span class="type">GtkUIManager</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>no_show_all</code></em>&#160;:</span></td>
<td> the new value for the "no_show_all" property
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3712930"></a><h3>
<a name="gtk-widget-get-no-show-all"></a>gtk_widget_get_no_show_all ()</h3>
<a class="indexterm" name="id3712946"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_get_no_show_all      (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the current value of the "no_show_all" property, which determines
whether calls to <a href="GtkWidget.html#gtk-widget-show-all"><code class="function">gtk_widget_show_all()</code></a> and <a href="GtkWidget.html#gtk-widget-hide-all"><code class="function">gtk_widget_hide_all()</code></a> 
will affect this widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the current value of the "no_show_all" property.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713041"></a><h3>
<a name="gtk-widget-list-mnemonic-labels"></a>gtk_widget_list_mnemonic_labels ()</h3>
<a class="indexterm" name="id3713057"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>*      gtk_widget_list_mnemonic_labels (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns a newly allocated list of the widgets, normally labels, for 
which this widget is a the target of a mnemonic (see for example, 
<a href="GtkLabel.html#gtk-label-set-mnemonic-widget"><code class="function">gtk_label_set_mnemonic_widget()</code></a>).
</p>
<p>
The widgets in the list are not individually referenced. If you
want to iterate through the list and perform actions involving
callbacks that might destroy the widgets, you
<span class="emphasis"><em>must</em></span> call <code class="literal">g_list_foreach (result,
(GFunc)g_object_ref, NULL)</code> first, and then unref all the
widgets afterwards.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the list of mnemonic labels; free this list
 with <a
href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</code></a> when you are done with it.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713172"></a><h3>
<a name="gtk-widget-add-mnemonic-label"></a>gtk_widget_add_mnemonic_label ()</h3>
<a class="indexterm" name="id3713187"></a><pre class="programlisting">void        gtk_widget_add_mnemonic_label   (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *label);</pre>
<p>
Adds a widget to the list of mnemonic labels for
this widget. (See <a href="GtkWidget.html#gtk-widget-list-mnemonic-labels"><code class="function">gtk_widget_list_mnemonic_labels()</code></a>). Note the
list of mnemonic labels for the widget is cleared when the
widget is destroyed, so the caller must make sure to update
its internal state at this point as well, by using a connection
to the ::destroy signal or a weak notifier.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> that acts as a mnemonic label for <em class="parameter"><code>widget</code></em>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713300"></a><h3>
<a name="gtk-widget-remove-mnemonic-label"></a>gtk_widget_remove_mnemonic_label ()</h3>
<a class="indexterm" name="id3713316"></a><pre class="programlisting">void        gtk_widget_remove_mnemonic_label
                                            (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                             <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *label);</pre>
<p>
Removes a widget from the list of mnemonic labels for
this widget. (See <a href="GtkWidget.html#gtk-widget-list-mnemonic-labels"><code class="function">gtk_widget_list_mnemonic_labels()</code></a>). The widget
must have previously been added to the list with
<a href="GtkWidget.html#gtk-widget-add-mnemonic-label"><code class="function">gtk_widget_add_mnemonic_label()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>label</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> that was previously set as a mnemnic label for
        <em class="parameter"><code>widget</code></em> with <a href="GtkWidget.html#gtk-widget-add-mnemonic-label"><code class="function">gtk_widget_add_mnemonic_label()</code></a>.
</td>
</tr>
</tbody>
</table></div>
<p>Since  2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713451"></a><h3>
<a name="gtk-widget-get-action"></a>gtk_widget_get_action ()</h3>
<a class="indexterm" name="id3713466"></a><pre class="programlisting"><a href="GtkAction.html" title="GtkAction">GtkAction</a>*  gtk_widget_get_action           (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Returns the <a href="GtkAction.html" title="GtkAction"><span class="type">GtkAction</span></a> that <em class="parameter"><code>widget</code></em> is a proxy for. 
See also <a href="GtkAction.html#gtk-action-get-proxies"><code class="function">gtk_action_get_proxies()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> the action that a widget is a proxy for, or
 <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, if it is not attached to an action.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713576"></a><h3>
<a name="gtk-widget-is-composited"></a>gtk_widget_is_composited ()</h3>
<a class="indexterm" name="id3713591"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    gtk_widget_is_composited        (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget);</pre>
<p>
Whether <em class="parameter"><code>widget</code></em> can rely on having its alpha channel
drawn correctly. On X11 this function returns whether a
compositing manager is running for <em class="parameter"><code>widget</code></em>'s screen</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the widget can rely on its alpha
channel being drawn correctly.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713689"></a><h3>
<a name="gtk-requisition-copy"></a>gtk_requisition_copy ()</h3>
<a class="indexterm" name="id3713702"></a><pre class="programlisting"><a href="GtkWidget.html#GtkRequisition">GtkRequisition</a>* gtk_requisition_copy        (const <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);</pre>
<p>
Copies a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>requisition</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> a copy of <em class="parameter"><code>requisition</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713785"></a><h3>
<a name="gtk-requisition-free"></a>gtk_requisition_free ()</h3>
<a class="indexterm" name="id3713798"></a><pre class="programlisting">void        gtk_requisition_free            (<a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition);</pre>
<p>
Frees a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>requisition</code></em>&#160;:</span></td>
<td> a <a href="GtkWidget.html#GtkRequisition"><span class="type">GtkRequisition</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3713865"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3713876"></a><h3>
<a name="GtkWidget--app-paintable"></a>The "<code class="literal">app-paintable</code>" property</h3>
<a class="indexterm" name="id3713893"></a><pre class="programlisting">  "app-paintable"        <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the application will paint directly on the widget.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713920"></a><h3>
<a name="GtkWidget--can-default"></a>The "<code class="literal">can-default</code>" property</h3>
<a class="indexterm" name="id3713936"></a><pre class="programlisting">  "can-default"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget can be the default widget.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3713964"></a><h3>
<a name="GtkWidget--can-focus"></a>The "<code class="literal">can-focus</code>" property</h3>
<a class="indexterm" name="id3713980"></a><pre class="programlisting">  "can-focus"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget can accept the input focus.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714007"></a><h3>
<a name="GtkWidget--composite-child"></a>The "<code class="literal">composite-child</code>" property</h3>
<a class="indexterm" name="id3714024"></a><pre class="programlisting">  "composite-child"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read</pre>
<p>Whether the widget is part of a composite widget.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714051"></a><h3>
<a name="GtkWidget--events"></a>The "<code class="literal">events</code>" property</h3>
<a class="indexterm" name="id3714067"></a><pre class="programlisting">  "events"               <a
href="../gdk/gdk-Events.html#GdkEventMask"
>GdkEventMask</a>          : Read / Write</pre>
<p>The event mask that decides what kind of GdkEvents this widget gets.</p>
<p>Default value: GDK_STRUCTURE_MASK</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714094"></a><h3>
<a name="GtkWidget--extension-events"></a>The "<code class="literal">extension-events</code>" property</h3>
<a class="indexterm" name="id3714111"></a><pre class="programlisting">  "extension-events"     <a
href="../gdk/gdk-Input-Devices.html#GdkExtensionMode"
>GdkExtensionMode</a>      : Read / Write</pre>
<p>The mask that decides what kind of extension events this widget gets.</p>
<p>Default value: GDK_EXTENSION_EVENTS_NONE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714139"></a><h3>
<a name="GtkWidget--has-default"></a>The "<code class="literal">has-default</code>" property</h3>
<a class="indexterm" name="id3714156"></a><pre class="programlisting">  "has-default"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget is the default widget.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714183"></a><h3>
<a name="GtkWidget--has-focus"></a>The "<code class="literal">has-focus</code>" property</h3>
<a class="indexterm" name="id3714199"></a><pre class="programlisting">  "has-focus"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget has the input focus.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714226"></a><h3>
<a name="GtkWidget--height-request"></a>The "<code class="literal">height-request</code>" property</h3>
<a class="indexterm" name="id3714242"></a><pre class="programlisting">  "height-request"       <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>Override for height request of the widget, or -1 if natural request should be used.</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714274"></a><h3>
<a name="GtkWidget--is-focus"></a>The "<code class="literal">is-focus</code>" property</h3>
<a class="indexterm" name="id3714290"></a><pre class="programlisting">  "is-focus"             <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget is the focus widget within the toplevel.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714317"></a><h3>
<a name="GtkWidget--name"></a>The "<code class="literal">name</code>" property</h3>
<a class="indexterm" name="id3714333"></a><pre class="programlisting">  "name"                 <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read / Write</pre>
<p>The name of the widget.</p>
<p>Default value: NULL</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714360"></a><h3>
<a name="GtkWidget--no-show-all"></a>The "<code class="literal">no-show-all</code>" property</h3>
<a class="indexterm" name="id3714377"></a><pre class="programlisting">  "no-show-all"          <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether gtk_widget_show_all() should not affect this widget.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714404"></a><h3>
<a name="GtkWidget--parent"></a>The "<code class="literal">parent</code>" property</h3>
<a class="indexterm" name="id3714420"></a><pre class="programlisting">  "parent"               <a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>          : Read / Write</pre>
<p>The parent widget of this widget. Must be a Container widget.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714444"></a><h3>
<a name="GtkWidget--receives-default"></a>The "<code class="literal">receives-default</code>" property</h3>
<a class="indexterm" name="id3714460"></a><pre class="programlisting">  "receives-default"     <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>If TRUE, the widget will receive the default action when it is focused.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714488"></a><h3>
<a name="GtkWidget--sensitive"></a>The "<code class="literal">sensitive</code>" property</h3>
<a class="indexterm" name="id3714504"></a><pre class="programlisting">  "sensitive"            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget responds to input.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714532"></a><h3>
<a name="GtkWidget--style"></a>The "<code class="literal">style</code>" property</h3>
<a class="indexterm" name="id3714547"></a><pre class="programlisting">  "style"                <a href="GtkStyle.html" title="Styles">GtkStyle</a>              : Read / Write</pre>
<p>The style of the widget, which contains information about how it will look (colors etc).</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714571"></a><h3>
<a name="GtkWidget--visible"></a>The "<code class="literal">visible</code>" property</h3>
<a class="indexterm" name="id3714586"></a><pre class="programlisting">  "visible"              <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read / Write</pre>
<p>Whether the widget is visible.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714613"></a><h3>
<a name="GtkWidget--width-request"></a>The "<code class="literal">width-request</code>" property</h3>
<a class="indexterm" name="id3714630"></a><pre class="programlisting">  "width-request"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read / Write</pre>
<p>Override for width request of the widget, or -1 if natural request should be used.</p>
<p>Allowed values: &gt;= -1</p>
<p>Default value: -1</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3714662"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3714673"></a><h3>
<a name="GtkWidget--cursor-aspect-ratio"></a>The "<code class="literal">cursor-aspect-ratio</code>" style property</h3>
<a class="indexterm" name="id3714690"></a><pre class="programlisting">  "cursor-aspect-ratio"  <a
href="../glib/glib-Basic-Types.html#gfloat"
>gfloat</a>                : Read</pre>
<p>Aspect ratio with which to draw insertion cursor.</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.04</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714721"></a><h3>
<a name="GtkWidget--cursor-color"></a>The "<code class="literal">cursor-color</code>" style property</h3>
<a class="indexterm" name="id3714738"></a><pre class="programlisting">  "cursor-color"         <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read</pre>
<p>Color with which to draw insertion cursor.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714761"></a><h3>
<a name="GtkWidget--draw-border"></a>The "<code class="literal">draw-border</code>" style property</h3>
<a class="indexterm" name="id3714778"></a><pre class="programlisting">  "draw-border"          <a href="GtkStyle.html#GtkBorder">GtkBorder</a>             : Read</pre>
<p>
The "draw-border" property defines the size of areas outside 
the widget's allocation to draw.</p>
<p>

</p>
<p>Since  2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714810"></a><h3>
<a name="GtkWidget--focus-line-pattern"></a>The "<code class="literal">focus-line-pattern</code>" style property</h3>
<a class="indexterm" name="id3714828"></a><pre class="programlisting">  "focus-line-pattern"   <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a>            : Read</pre>
<p>Dash pattern used to draw the focus indicator.</p>
<p>Default value: "\001\001"</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714854"></a><h3>
<a name="GtkWidget--focus-line-width"></a>The "<code class="literal">focus-line-width</code>" style property</h3>
<a class="indexterm" name="id3714871"></a><pre class="programlisting">  "focus-line-width"     <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>Width, in pixels, of the focus indicator line.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714902"></a><h3>
<a name="GtkWidget--focus-padding"></a>The "<code class="literal">focus-padding</code>" style property</h3>
<a class="indexterm" name="id3714919"></a><pre class="programlisting">  "focus-padding"        <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>Width, in pixels, between focus indicator and the widget 'box'.</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714950"></a><h3>
<a name="GtkWidget--interior-focus"></a>The "<code class="literal">interior-focus</code>" style property</h3>
<a class="indexterm" name="id3714967"></a><pre class="programlisting">  "interior-focus"       <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read</pre>
<p>Whether to draw the focus indicator inside widgets.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3714993"></a><h3>
<a name="GtkWidget--link-color"></a>The "<code class="literal">link-color</code>" style property</h3>
<a class="indexterm" name="id3715010"></a><pre class="programlisting">  "link-color"           <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read</pre>
<p>
The "link-color" property defines the color of unvisited links.</p>
<p>

</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715042"></a><h3>
<a name="GtkWidget--scroll-arrow-hlength"></a>The "<code class="literal">scroll-arrow-hlength</code>" style property</h3>
<a class="indexterm" name="id3715059"></a><pre class="programlisting">  "scroll-arrow-hlength" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The "scroll-arrow-hlength" property defines the length of 
horizontal scroll arrows.</p>
<p>

</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 16</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715100"></a><h3>
<a name="GtkWidget--scroll-arrow-vlength"></a>The "<code class="literal">scroll-arrow-vlength</code>" style property</h3>
<a class="indexterm" name="id3715117"></a><pre class="programlisting">  "scroll-arrow-vlength" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The "scroll-arrow-vlength" property defines the length of 
vertical scroll arrows.</p>
<p>

</p>
<p>Allowed values: &gt;= 1</p>
<p>Default value: 16</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715157"></a><h3>
<a name="GtkWidget--secondary-cursor-color"></a>The "<code class="literal">secondary-cursor-color</code>" style property</h3>
<a class="indexterm" name="id3715175"></a><pre class="programlisting">  "secondary-cursor-color" <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read</pre>
<p>Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715199"></a><h3>
<a name="GtkWidget--separator-height"></a>The "<code class="literal">separator-height</code>" style property</h3>
<a class="indexterm" name="id3715215"></a><pre class="programlisting">  "separator-height"     <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The "separator-height" property defines the height of separators.
This property only takes effect if "wide-separators" is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.</p>
<p>

</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715266"></a><h3>
<a name="GtkWidget--separator-width"></a>The "<code class="literal">separator-width</code>" style property</h3>
<a class="indexterm" name="id3715283"></a><pre class="programlisting">  "separator-width"      <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>                  : Read</pre>
<p>
The "separator-width" property defines the width of separators.
This property only takes effect if "wide-separators" is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>.</p>
<p>

</p>
<p>Allowed values: &gt;= 0</p>
<p>Default value: 0</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715334"></a><h3>
<a name="GtkWidget--visited-link-color"></a>The "<code class="literal">visited-link-color</code>" style property</h3>
<a class="indexterm" name="id3715352"></a><pre class="programlisting">  "visited-link-color"   <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a>              : Read</pre>
<p>
The "visited-link-color" property defines the color of visited links.</p>
<p>

</p>
<p>Since  2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715384"></a><h3>
<a name="GtkWidget--wide-separators"></a>The "<code class="literal">wide-separators</code>" style property</h3>
<a class="indexterm" name="id3715401"></a><pre class="programlisting">  "wide-separators"      <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>              : Read</pre>
<p>
The "wide-separators" property defines whether separators have 
configurable width and should be drawn using a box instead of a line.</p>
<p>

</p>
<p>Default value: FALSE</p>
<p>Since  2.10
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3715440"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3715450"></a><h3>
<a name="GtkWidget-accel-closures-changed"></a>The "accel-closures-changed" signal</h3>
<a class="indexterm" name="id3715462"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : </pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715530"></a><h3>
<a name="GtkWidget-button-press-event"></a>The "button-press-event" signal</h3>
<a class="indexterm" name="id3715541"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventButton"
>GdkEventButton</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715661"></a><h3>
<a name="GtkWidget-button-release-event"></a>The "button-release-event" signal</h3>
<a class="indexterm" name="id3715673"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventButton"
>GdkEventButton</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715793"></a><h3>
<a name="GtkWidget-can-activate-accel"></a>The "can-activate-accel" signal</h3>
<a class="indexterm" name="id3715805"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>      signal_id,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>
Determines whether an accelerator that activates the signal
identified by <em class="parameter"><code>signal_id</code></em> can currently be activated.
This signal is present to allow applications and derived
widgets to override the default <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> handling
for determining whether an accelerator can be activated.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>signal_id</code></em>&#160;:</span></td>
<td> the ID of a signal installed on <em class="parameter"><code>widget</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>returns</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the signal can be activated.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3715946"></a><h3>
<a name="GtkWidget-child-notify"></a>The "child-notify" signal</h3>
<a class="indexterm" name="id3715957"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>  *widget,
                                            <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
>GParamSpec</a> *pspec,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>    user_data)      : Run first / No recursion / Has details / No hooks</pre>
<p>
The ::child-notify signal is emitted for each child property that has 
changed on an object. The signal's detail holds the property name.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pspec</code></em>&#160;:</span></td>
<td> the <a
href="../gobject/gobject-GParamSpec.html#GParamSpec"
><span class="type">GParamSpec</span></a> of the changed child property.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716061"></a><h3>
<a name="GtkWidget-client-event"></a>The "client-event" signal</h3>
<a class="indexterm" name="id3716072"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventClient"
>GdkEventClient</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716192"></a><h3>
<a name="GtkWidget-composited-changed"></a>The "composited-changed" signal</h3>
<a class="indexterm" name="id3716203"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716271"></a><h3>
<a name="GtkWidget-configure-event"></a>The "configure-event" signal</h3>
<a class="indexterm" name="id3716282"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventConfigure"
>GdkEventConfigure</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716403"></a><h3>
<a name="GtkWidget-delete-event"></a>The "delete-event" signal</h3>
<a class="indexterm" name="id3716414"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>
The ::delete-event signal is emitted if a user requests that
a toplevel window is closed. The default handler for this signal
destroys the window. Connecting <a href="GtkWidget.html#gtk-widget-hide-on-delete"><code class="function">gtk_widget_hide_on_delete()</code></a> to
this signal will cause the window to be hidden instead, so that
it can later be shown again without reconstructing it.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td> the event which triggered this signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. 
  <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716555"></a><h3>
<a name="GtkWidget-destroy-event"></a>The "destroy-event" signal</h3>
<a class="indexterm" name="id3716566"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>
The ::destroy-event signal is emitted when a <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a> is destroyed.
You rarely get this signal, because most widgets disconnect themselves 
from their window before they destroy it, so no widget owns the 
window at destroy time.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td> the event which triggered this signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. 
  <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716702"></a><h3>
<a name="GtkWidget-direction-changed"></a>The "direction-changed" signal</h3>
<a class="indexterm" name="id3716713"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkTextDirection">GtkTextDirection</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716804"></a><h3>
<a name="GtkWidget-drag-begin"></a>The "drag-begin" signal</h3>
<a class="indexterm" name="id3716814"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-begin signal is emitted on the drag source when a drag is started. 
A typical reason to connect to this signal is to set up a custom drag icon with
<a href="gtk-Drag-and-Drop.html#gtk-drag-source-set-icon"><code class="function">gtk_drag_source_set_icon()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3716921"></a><h3>
<a name="GtkWidget-drag-data-delete"></a>The "drag-data-delete" signal</h3>
<a class="indexterm" name="id3716932"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-data-delete signal is emitted on the drag source when a drag 
with the action <a
href="../gdk/gdk-Drag-and-Drop.html#GDK-ACTION-MOVE:CAPS"
><code class="literal">GDK_ACTION_MOVE</code></a> is successfully completed. The signal 
handler is responsible for deleting the data that has been dropped. What 
"delete" means, depends on the context of the drag operation.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3717043"></a><h3>
<a name="GtkWidget-drag-data-get"></a>The "drag-data-get" signal</h3>
<a class="indexterm" name="id3717053"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a>   *drag_context,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)         : Run last</pre>
<p>
The ::drag-data-get signal is emitted on the drag source when the drop site 
requests the data which is dragged. It is the responsibility of the signal 
handler to fill <em class="parameter"><code>data</code></em> with the data in the format which is indicated by <em class="parameter"><code>info</code></em>. 
See <a href="gtk-Selections.html#gtk-selection-data-set"><code class="function">gtk_selection_data_set()</code></a> and <a href="gtk-Selections.html#gtk-selection-data-set-text"><code class="function">gtk_selection_data_set_text()</code></a>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td> the <a href="GtkWidget.html#GtkSelectionData"><span class="type">GtkSelectionData</span></a> to be filled with the dragged data
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></td>
<td> the info that has been registered with the target in the <a href="gtk-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td> the timestamp at which the data was requested
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3717269"></a><h3>
<a name="GtkWidget-drag-data-received"></a>The "drag-data-received" signal</h3>
<a class="indexterm" name="id3717280"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a>   *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>              x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>              y,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)         : Run last</pre>
<p>
The ::drag-data-received signal is emitted on the drop site when the dragged 
data has been received. If the data was received in order to determine whether 
the drop will be accepted, the handler is expected to call <a
href="../gdk/gdk-Drag-and-Drop.html#gdk-drag-status"
><code class="function">gdk_drag_status()</code></a> 
and <span class="emphasis"><em>not</em></span> finish the drag. If the data was received in 
response to a ::drag-drop signal (and this is the last target to be received), 
the handler for this signal is expected to process the received data and then 
call <a href="gtk-Drag-and-Drop.html#gtk-drag-finish"><code class="function">gtk_drag_finish()</code></a>, setting the <em class="parameter"><code>success</code></em> parameter depending on whether 
the data was processed successfully. 
</p>
<p>
The handler may inspect and modify <em class="parameter"><code>drag_context-&gt;action</code></em> before calling 
<a href="gtk-Drag-and-Drop.html#gtk-drag-finish"><code class="function">gtk_drag_finish()</code></a>, e.g. to implement <a
href="../gdk/gdk-Drag-and-Drop.html#GDK-ACTION-ASK:CAPS"
><code class="literal">GDK_ACTION_ASK</code></a> as shown in the following 
example:
</p>
<div class="informalexample"><pre class="programlisting">
void  
drag_data_received (GtkWidget          *widget,
                    GdkDragContext     *drag_context,
                    gint                x,
                    gint                y,
                    GtkSelectionData   *data,
                    guint               info,
                    guint               time)
{
  if ((data-&gt;length &gt;= 0) &amp;&amp; (data-&gt;format == 8))
    {
      if (drag_context-&gt;action == GDK_ACTION_ASK) 
        {
          GtkWidget *dialog;
          gint response;
          
          dialog = gtk_message_dialog_new (NULL,
                                           GTK_DIALOG_MODAL | 
                                           GTK_DIALOG_DESTROY_WITH_PARENT,
                                           GTK_MESSAGE_INFO,
                                           GTK_BUTTONS_YES_NO,
                                           "Move the data ?\n");
          response = gtk_dialog_run (GTK_DIALOG (dialog));
          gtk_widget_destroy (dialog);
            
          if (response == GTK_RESPONSE_YES)
            drag_context-&gt;action = GDK_ACTION_MOVE;
          else
            drag_context-&gt;action = GDK_ACTION_COPY;
         }
         
      gtk_drag_finish (drag_context, TRUE, FALSE, time);
      return;
    }
      
   gtk_drag_finish (drag_context, FALSE, FALSE, time);
 }
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> where the drop happened
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> where the drop happened
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td> the received data
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></td>
<td> the info that has been registered with the target in the <a href="gtk-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a>.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td> the timestamp at which the data was received
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3717621"></a><h3>
<a name="GtkWidget-drag-drop"></a>The "drag-drop" signal</h3>
<a class="indexterm" name="id3717631"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            y,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-drop signal is emitted on the drop site when the user drops the 
data onto the widget. The signal handler must determine whether the cursor 
position is in a drop zone or not. If it is not in a drop zone, it returns 
<a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> and no further processing is necessary. Otherwise, the handler returns 
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>. In this case, the handler must ensure that <a href="gtk-Drag-and-Drop.html#gtk-drag-finish"><code class="function">gtk_drag_finish()</code></a> is called 
to let the source know that the drop is done. The call to <a href="gtk-Drag-and-Drop.html#gtk-drag-finish"><code class="function">gtk_drag_finish()</code></a> 
can be done either directly or in a ::drag-data-received handler which gets 
triggered by calling <code class="function">gtk_drop_get_data()</code> to receive the data for one or more 
of the supported targets.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> the x coordinate of the current cursor position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> the y coordinate of the current cursor position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td> the timestamp of the motion event
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>returns</code></em>&#160;:</span></td>
<td> whether the cursor position is in a drop zone
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3717868"></a><h3>
<a name="GtkWidget-drag-end"></a>The "drag-end" signal</h3>
<a class="indexterm" name="id3717879"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-end signal is emitted on the drag source when a drag is finished. 
A typical reason to connect to this signal is to undo things done in ::drag-begin.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3717975"></a><h3>
<a name="GtkWidget-drag-leave"></a>The "drag-leave" signal</h3>
<a class="indexterm" name="id3717986"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-leave signal is emitted on the drop site when the cursor 
leaves the widget. A typical reason to connect to this signal is to 
undo things done in ::drag-motion, e.g. undo highlighting with 
<a href="gtk-Drag-and-Drop.html#gtk-drag-unhighlight"><code class="function">gtk_drag_unhighlight()</code></a></p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td> the timestamp of the motion event
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718114"></a><h3>
<a name="GtkWidget-drag-motion"></a>The "drag-motion" signal</h3>
<a class="indexterm" name="id3718125"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Drag-and-Drop.html#GdkDragContext"
>GdkDragContext</a> *drag_context,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            x,
                                            <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a>            y,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>           time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)         : Run last</pre>
<p>
The ::drag-motion signal is emitted on the drop site when the user 
moves the cursor over the widget during a drag. The signal handler 
must determine whether the cursor position is in a drop zone or not. 
If it is not in a drop zone, it returns <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> and no further processing 
is necessary. Otherwise, the handler returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>. In this case, the 
handler is responsible for providing the necessary information for 
displaying feedback to the user, by calling <a
href="../gdk/gdk-Drag-and-Drop.html#gdk-drag-status"
><code class="function">gdk_drag_status()</code></a>. If the 
decision whether the drop will be accepted or rejected can't be made
based solely on the cursor position and the type of the data, the handler 
may inspect the dragged data by calling <a href="gtk-Drag-and-Drop.html#gtk-drag-get-data"><code class="function">gtk_drag_get_data()</code></a> and defer the 
<a
href="../gdk/gdk-Drag-and-Drop.html#gdk-drag-status"
><code class="function">gdk_drag_status()</code></a> call to the ::drag-data-received handler. 
</p>
<p>
Note that there is no ::drag-enter signal. The drag receiver has to keep 
track of whether he has received any ::drag-motion signals since the last 
::drag-leave and if not, treat the ::drag-motion signal as an "enter" signal. 
Upon an "enter", the handler will typically highlight the drop site with 
<a href="gtk-Drag-and-Drop.html#gtk-drag-highlight"><code class="function">gtk_drag_highlight()</code></a>.
</p>
<p>
</p>
<div class="informalexample"><pre class="programlisting"> 
static void
drag_motion (GtkWidget *widget,
      	  GdkDragContext *context,
             gint x,
             gint y,
             guint time)
{
  GdkAtom target;
 
  PrivateData *private_data = GET_PRIVATE_DATA (widget);
 
  if (!private_data-&gt;drag_highlight) 
   {
     private_data-&gt;drag_highlight = 1;
     gtk_drag_highlight (widget);
   }
 
  target = gtk_drag_dest_find_target (widget, context, NULL);
  if (target == GDK_NONE)
    gdk_drag_status (context, 0, time);
  else 
   {
     private_data-&gt;pending_status = context-&gt;suggested_action;
     gtk_drag_get_data (widget, context, target, time);
   }
 
  return TRUE;
}
  
static void
drag_data_received (GtkWidget        *widget,
                    GdkDragContext   *context,
                    gint              x,
                    gint              y,
                    GtkSelectionData *selection_data,
                    guint             info,
                    guint             time)
{
  PrivateData *private_data = GET_PRIVATE_DATA (widget);
  
  if (private_data-&gt;suggested_action) 
   {
     private_data-&gt;suggested_action = 0;
     
    /* We are getting this data due to a request in drag_motion,
     * rather than due to a request in drag_drop, so we are just
     * supposed to call gdk_drag_status(), not actually paste in 
     * the data.
     */
     str = gtk_selection_data_get_text (selection_data);
     if (!data_is_acceptable (str)) 
       gdk_drag_status (context, 0, time);
     else
       gdk_drag_status (context, private_data-&gt;suggested_action, time);
   }
  else
   {
     /* accept the drop */
   }
}
</pre></div>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>drag_context</code></em>&#160;:</span></td>
<td> the drag context
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></td>
<td> the x coordinate of the current cursor position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></td>
<td> the y coordinate of the current cursor position
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td> the timestamp of the motion event
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>returns</code></em>&#160;:</span></td>
<td> whether the cursor position is in a drop zone
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718430"></a><h3>
<a name="GtkWidget-enter-notify-event"></a>The "enter-notify-event" signal</h3>
<a class="indexterm" name="id3718442"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventCrossing"
>GdkEventCrossing</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718562"></a><h3>
<a name="GtkWidget-event"></a>The "event" signal</h3>
<a class="indexterm" name="id3718573"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718692"></a><h3>
<a name="GtkWidget-event-after"></a>The "event-after" signal</h3>
<a class="indexterm" name="id3718703"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : </pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718792"></a><h3>
<a name="GtkWidget-expose-event"></a>The "expose-event" signal</h3>
<a class="indexterm" name="id3718803"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventExpose"
>GdkEventExpose</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3718924"></a><h3>
<a name="GtkWidget-focus"></a>The "focus" signal</h3>
<a class="indexterm" name="id3718934"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719054"></a><h3>
<a name="GtkWidget-focus-in-event"></a>The "focus-in-event" signal</h3>
<a class="indexterm" name="id3719065"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventFocus"
>GdkEventFocus</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719186"></a><h3>
<a name="GtkWidget-focus-out-event"></a>The "focus-out-event" signal</h3>
<a class="indexterm" name="id3719197"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventFocus"
>GdkEventFocus</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719317"></a><h3>
<a name="GtkWidget-grab-broken-event"></a>The "grab-broken-event" signal</h3>
<a class="indexterm" name="id3719328"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>
Emitted when a pointer or keyboard grab on a window belonging 
to <em class="parameter"><code>widget</code></em> gets broken. 
</p>
<p>
On X11, this happens when the grab window becomes unviewable 
(i.e. it or one of its ancestors is unmapped), or if the same 
application grabs the pointer or keyboard again.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td> the <a
href="../gdk/gdk-Event-Structures.html#GdkEventGrabBroken"
><span class="type">GdkEventGrabBroken</span></a> event
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. 
  <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
<p>Since  2.8
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719481"></a><h3>
<a name="GtkWidget-grab-focus"></a>The "grab-focus" signal</h3>
<a class="indexterm" name="id3719491"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719559"></a><h3>
<a name="GtkWidget-grab-notify"></a>The "grab-notify" signal</h3>
<a class="indexterm" name="id3719570"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>   was_grabbed,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)        : Run first</pre>
<p>
The ::grab-notify signal is emitted when a widget becomes
shadowed by a GTK+ grab (not a pointer or keyboard grab) on 
another widget, or when it becomes unshadowed due to a grab 
being removed.
</p>
<p>
A widget is shadowed by a <a href="gtk-General.html#gtk-grab-add"><code class="function">gtk_grab_add()</code></a> when the topmost 
grab widget in the grab stack of its window group is not 
its ancestor.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>was_grabbed</code></em>&#160;:</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if the widget becomes shadowed, <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>
              if it becomes unshadowed
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719703"></a><h3>
<a name="GtkWidget-hide"></a>The "hide" signal</h3>
<a class="indexterm" name="id3719713"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719781"></a><h3>
<a name="GtkWidget-hierarchy-changed"></a>The "hierarchy-changed" signal</h3>
<a class="indexterm" name="id3719792"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget2,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>
Emitted when there is a chance in the hierarchy to
which a widget belong. More precisely, a widget is
<em class="firstterm">anchored</em> when its toplevel
ancestor is a <a href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a>. This signal is emitted when 
a widget changes from un-anchored to anchored or vice-versa.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget2</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3719897"></a><h3>
<a name="GtkWidget-key-press-event"></a>The "key-press-event" signal</h3>
<a class="indexterm" name="id3719908"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720028"></a><h3>
<a name="GtkWidget-key-release-event"></a>The "key-release-event" signal</h3>
<a class="indexterm" name="id3720039"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventKey"
>GdkEventKey</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720159"></a><h3>
<a name="GtkWidget-leave-notify-event"></a>The "leave-notify-event" signal</h3>
<a class="indexterm" name="id3720170"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventCrossing"
>GdkEventCrossing</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720291"></a><h3>
<a name="GtkWidget-map"></a>The "map" signal</h3>
<a class="indexterm" name="id3720301"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720369"></a><h3>
<a name="GtkWidget-map-event"></a>The "map-event" signal</h3>
<a class="indexterm" name="id3720380"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720500"></a><h3>
<a name="GtkWidget-mnemonic-activate"></a>The "mnemonic-activate" signal</h3>
<a class="indexterm" name="id3720511"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>   arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720610"></a><h3>
<a name="GtkWidget-motion-notify-event"></a>The "motion-notify-event" signal</h3>
<a class="indexterm" name="id3720622"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventMotion"
>GdkEventMotion</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720742"></a><h3>
<a name="GtkWidget-no-expose-event"></a>The "no-expose-event" signal</h3>
<a class="indexterm" name="id3720752"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventNoExpose"
>GdkEventNoExpose</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720873"></a><h3>
<a name="GtkWidget-parent-set"></a>The "parent-set" signal</h3>
<a class="indexterm" name="id3720884"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkObject.html" title="GtkObject">GtkObject</a> *old_parent,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)       : Run first</pre>
<p>
The parent-set signal is emitted when a new parent has been set 
on a widget.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object on which the signal is emitted
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>old_parent</code></em>&#160;:</span></td>
<td> the previous parent, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the widget 
  just got its initial parent.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3720989"></a><h3>
<a name="GtkWidget-popup-menu"></a>The "popup-menu" signal</h3>
<a class="indexterm" name="id3721000"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last / Action</pre>
<p>
This signal gets emitted whenever a widget should pop up a context-sensitive
menu.  This usually happens through the standard key binding mechanism; by
pressing a certain key while a widget is focused, the user can cause the
widget to pop up a menu.  For example, the <a href="GtkEntry.html" title="GtkEntry"><span class="type">GtkEntry</span></a> widget creates a menu
with clipboard commands.  See <a href="gtk-migrating-checklist.html#checklist-popup-menu" title="Implement GtkWidget::popup_menu">the section called &#8220;Implement GtkWidget::popup_menu&#8221;</a> for an
example of how to use this signal.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>returns</code></em>&#160;:</span></td>
<td> TRUE if a menu was activated
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721107"></a><h3>
<a name="GtkWidget-property-notify-event"></a>The "property-notify-event" signal</h3>
<a class="indexterm" name="id3721118"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProperty"
>GdkEventProperty</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721239"></a><h3>
<a name="GtkWidget-proximity-in-event"></a>The "proximity-in-event" signal</h3>
<a class="indexterm" name="id3721250"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProximity"
>GdkEventProximity</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721371"></a><h3>
<a name="GtkWidget-proximity-out-event"></a>The "proximity-out-event" signal</h3>
<a class="indexterm" name="id3721382"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventProximity"
>GdkEventProximity</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721503"></a><h3>
<a name="GtkWidget-realize"></a>The "realize" signal</h3>
<a class="indexterm" name="id3721513"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721581"></a><h3>
<a name="GtkWidget-screen-changed"></a>The "screen-changed" signal</h3>
<a class="indexterm" name="id3721592"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/GdkScreen.html"
>GdkScreen</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721681"></a><h3>
<a name="GtkWidget-scroll-event"></a>The "scroll-event" signal</h3>
<a class="indexterm" name="id3721692"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventScroll"
>GdkEventScroll</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721812"></a><h3>
<a name="GtkWidget-selection-clear-event"></a>The "selection-clear-event" signal</h3>
<a class="indexterm" name="id3721824"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3721944"></a><h3>
<a name="GtkWidget-selection-get"></a>The "selection-get" signal</h3>
<a class="indexterm" name="id3721955"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             info,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>info</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722088"></a><h3>
<a name="GtkWidget-selection-notify-event"></a>The "selection-notify-event" signal</h3>
<a class="indexterm" name="id3722099"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722220"></a><h3>
<a name="GtkWidget-selection-received"></a>The "selection-received" signal</h3>
<a class="indexterm" name="id3722231"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>        *widget,
                                            <a href="GtkWidget.html#GtkSelectionData">GtkSelectionData</a> *data,
                                            <a
href="../glib/glib-Basic-Types.html#guint"
>guint</a>             time,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>          user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>time</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722342"></a><h3>
<a name="GtkWidget-selection-request-event"></a>The "selection-request-event" signal</h3>
<a class="indexterm" name="id3722354"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventSelection"
>GdkEventSelection</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722475"></a><h3>
<a name="GtkWidget-show"></a>The "show" signal</h3>
<a class="indexterm" name="id3722485"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722553"></a><h3>
<a name="GtkWidget-show-help"></a>The "show-help" signal</h3>
<a class="indexterm" name="id3722563"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>         *widget,
                                            <a href="GtkWidget.html#GtkWidgetHelpType">GtkWidgetHelpType</a> *arg1,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>           user_data)      : Run last / Action</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722664"></a><h3>
<a name="GtkWidget-size-allocate"></a>The "size-allocate" signal</h3>
<a class="indexterm" name="id3722674"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>     *widget,
                                            <a href="GtkWidget.html#GtkAllocation">GtkAllocation</a> *allocation,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>       user_data)       : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>allocation</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722764"></a><h3>
<a name="GtkWidget-size-request"></a>The "size-request" signal</h3>
<a class="indexterm" name="id3722775"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>      *widget,
                                            <a href="GtkWidget.html#GtkRequisition">GtkRequisition</a> *requisition,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>        user_data)        : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>requisition</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722864"></a><h3>
<a name="GtkWidget-state-changed"></a>The "state-changed" signal</h3>
<a class="indexterm" name="id3722875"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>   *widget,
                                            <a href="gtk-Standard-Enumerations.html#GtkStateType">GtkStateType</a> state,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>     user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>state</code></em>&#160;:</span></td>
<td>

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3722965"></a><h3>
<a name="GtkWidget-style-set"></a>The "style-set" signal</h3>
<a class="indexterm" name="id3722975"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a href="GtkStyle.html" title="Styles">GtkStyle</a>  *previous_style,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)           : Run first</pre>
<p>
The style-set signal is emitted when a new style has been set 
on a widget. Note that style-modifying functions like 
<a href="GtkWidget.html#gtk-widget-modify-base"><code class="function">gtk_widget_modify_base()</code></a> also cause this signal to be emitted.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td> the object on which the signal is emitted
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>previous_style</code></em>&#160;:</span></td>
<td> the previous style, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if the widget 
  just got its initial style 
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3723093"></a><h3>
<a name="GtkWidget-unmap"></a>The "unmap" signal</h3>
<a class="indexterm" name="id3723104"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run first</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3723171"></a><h3>
<a name="GtkWidget-unmap-event"></a>The "unmap-event" signal</h3>
<a class="indexterm" name="id3723182"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEvent"
>GdkEvent</a>  *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3723302"></a><h3>
<a name="GtkWidget-unrealize"></a>The "unrealize" signal</h3>
<a class="indexterm" name="id3723312"></a><pre class="programlisting">void        user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *widget,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>   user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.

</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3723380"></a><h3>
<a name="GtkWidget-visibility-notify-event"></a>The "visibility-notify-event" signal</h3>
<a class="indexterm" name="id3723392"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>          *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventVisibility"
>GdkEventVisibility</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>            user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3723512"></a><h3>
<a name="GtkWidget-window-state-event"></a>The "window-state-event" signal</h3>
<a class="indexterm" name="id3723524"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a>    user_function                  (<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>           *widget,
                                            <a
href="../gdk/gdk-Event-Structures.html#GdkEventWindowState"
>GdkEventWindowState</a> *event,
                                            <a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a>             user_data)      : Run last</pre>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em>&#160;:</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>event</code></em>&#160;:</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em>&#160;:</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></td>
<td>
<a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to stop other handlers from being invoked for the event. <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to propagate the event further.

</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</body>
</html>

Anon7 - 2021