366
373
<title role="properties.title">Properties</title>
369
"<link linkend="GtkWidget--app-paintable">app-paintable</link>" <link linkend="gboolean">gboolean</link> : Read / Write
370
"<link linkend="GtkWidget--can-default">can-default</link>" <link linkend="gboolean">gboolean</link> : Read / Write
371
"<link linkend="GtkWidget--can-focus">can-focus</link>" <link linkend="gboolean">gboolean</link> : Read / Write
372
"<link linkend="GtkWidget--composite-child">composite-child</link>" <link linkend="gboolean">gboolean</link> : Read
373
"<link linkend="GtkWidget--events">events</link>" <link linkend="GdkEventMask">GdkEventMask</link> : Read / Write
374
"<link linkend="GtkWidget--extension-events">extension-events</link>" <link linkend="GdkExtensionMode">GdkExtensionMode</link> : Read / Write
375
"<link linkend="GtkWidget--has-default">has-default</link>" <link linkend="gboolean">gboolean</link> : Read / Write
376
"<link linkend="GtkWidget--has-focus">has-focus</link>" <link linkend="gboolean">gboolean</link> : Read / Write
377
"<link linkend="GtkWidget--height-request">height-request</link>" <link linkend="gint">gint</link> : Read / Write
378
"<link linkend="GtkWidget--is-focus">is-focus</link>" <link linkend="gboolean">gboolean</link> : Read / Write
379
"<link linkend="GtkWidget--name">name</link>" <link linkend="gchararray">gchararray</link> : Read / Write
380
"<link linkend="GtkWidget--no-show-all">no-show-all</link>" <link linkend="gboolean">gboolean</link> : Read / Write
381
"<link linkend="GtkWidget--parent">parent</link>" <link linkend="GtkContainer">GtkContainer</link> : Read / Write
382
"<link linkend="GtkWidget--receives-default">receives-default</link>" <link linkend="gboolean">gboolean</link> : Read / Write
383
"<link linkend="GtkWidget--sensitive">sensitive</link>" <link linkend="gboolean">gboolean</link> : Read / Write
384
"<link linkend="GtkWidget--style">style</link>" <link linkend="GtkStyle">GtkStyle</link> : Read / Write
385
"<link linkend="GtkWidget--visible">visible</link>" <link linkend="gboolean">gboolean</link> : Read / Write
386
"<link linkend="GtkWidget--width-request">width-request</link>" <link linkend="gint">gint</link> : Read / Write
376
<link linkend="GtkWidget--app-paintable">app-paintable</link> <link linkend="gboolean">gboolean</link> : Read / Write
377
<link linkend="GtkWidget--can-default">can-default</link> <link linkend="gboolean">gboolean</link> : Read / Write
378
<link linkend="GtkWidget--can-focus">can-focus</link> <link linkend="gboolean">gboolean</link> : Read / Write
379
<link linkend="GtkWidget--composite-child">composite-child</link> <link linkend="gboolean">gboolean</link> : Read
380
<link linkend="GtkWidget--events">events</link> <link linkend="GdkEventMask">GdkEventMask</link> : Read / Write
381
<link linkend="GtkWidget--extension-events">extension-events</link> <link linkend="GdkExtensionMode">GdkExtensionMode</link> : Read / Write
382
<link linkend="GtkWidget--has-default">has-default</link> <link linkend="gboolean">gboolean</link> : Read / Write
383
<link linkend="GtkWidget--has-focus">has-focus</link> <link linkend="gboolean">gboolean</link> : Read / Write
384
<link linkend="GtkWidget--has-tooltip">has-tooltip</link> <link linkend="gboolean">gboolean</link> : Read / Write
385
<link linkend="GtkWidget--height-request">height-request</link> <link linkend="gint">gint</link> : Read / Write
386
<link linkend="GtkWidget--is-focus">is-focus</link> <link linkend="gboolean">gboolean</link> : Read / Write
387
<link linkend="GtkWidget--name">name</link> <link linkend="gchararray">gchararray</link> : Read / Write
388
<link linkend="GtkWidget--no-show-all">no-show-all</link> <link linkend="gboolean">gboolean</link> : Read / Write
389
<link linkend="GtkWidget--parent">parent</link> <link linkend="GtkContainer">GtkContainer</link> : Read / Write
390
<link linkend="GtkWidget--receives-default">receives-default</link> <link linkend="gboolean">gboolean</link> : Read / Write
391
<link linkend="GtkWidget--sensitive">sensitive</link> <link linkend="gboolean">gboolean</link> : Read / Write
392
<link linkend="GtkWidget--style">style</link> <link linkend="GtkStyle">GtkStyle</link> : Read / Write
393
<link linkend="GtkWidget--tooltip-markup">tooltip-markup</link> <link linkend="gchararray">gchararray</link> : Read / Write
394
<link linkend="GtkWidget--visible">visible</link> <link linkend="gboolean">gboolean</link> : Read / Write
395
<link linkend="GtkWidget--width-request">width-request</link> <link linkend="gint">gint</link> : Read / Write
389
398
<refsect1 role="style_properties">
390
399
<title role="style_properties.title">Style Properties</title>
393
"<link linkend="GtkWidget--cursor-aspect-ratio">cursor-aspect-ratio</link>" <link linkend="gfloat">gfloat</link> : Read
394
"<link linkend="GtkWidget--cursor-color">cursor-color</link>" <link linkend="GdkColor">GdkColor</link> : Read
395
"<link linkend="GtkWidget--draw-border">draw-border</link>" <link linkend="GtkBorder">GtkBorder</link> : Read
396
"<link linkend="GtkWidget--focus-line-pattern">focus-line-pattern</link>" <link linkend="gchararray">gchararray</link> : Read
397
"<link linkend="GtkWidget--focus-line-width">focus-line-width</link>" <link linkend="gint">gint</link> : Read
398
"<link linkend="GtkWidget--focus-padding">focus-padding</link>" <link linkend="gint">gint</link> : Read
399
"<link linkend="GtkWidget--interior-focus">interior-focus</link>" <link linkend="gboolean">gboolean</link> : Read
400
"<link linkend="GtkWidget--link-color">link-color</link>" <link linkend="GdkColor">GdkColor</link> : Read
401
"<link linkend="GtkWidget--scroll-arrow-hlength">scroll-arrow-hlength</link>" <link linkend="gint">gint</link> : Read
402
"<link linkend="GtkWidget--scroll-arrow-vlength">scroll-arrow-vlength</link>" <link linkend="gint">gint</link> : Read
403
"<link linkend="GtkWidget--secondary-cursor-color">secondary-cursor-color</link>" <link linkend="GdkColor">GdkColor</link> : Read
404
"<link linkend="GtkWidget--separator-height">separator-height</link>" <link linkend="gint">gint</link> : Read
405
"<link linkend="GtkWidget--separator-width">separator-width</link>" <link linkend="gint">gint</link> : Read
406
"<link linkend="GtkWidget--visited-link-color">visited-link-color</link>" <link linkend="GdkColor">GdkColor</link> : Read
407
"<link linkend="GtkWidget--wide-separators">wide-separators</link>" <link linkend="gboolean">gboolean</link> : Read
402
<link linkend="GtkWidget--cursor-aspect-ratio">cursor-aspect-ratio</link> <link linkend="gfloat">gfloat</link> : Read
403
<link linkend="GtkWidget--cursor-color">cursor-color</link> <link linkend="GdkColor">GdkColor</link> : Read
404
<link linkend="GtkWidget--draw-border">draw-border</link> <link linkend="GtkBorder">GtkBorder</link> : Read
405
<link linkend="GtkWidget--focus-line-pattern">focus-line-pattern</link> <link linkend="gchararray">gchararray</link> : Read
406
<link linkend="GtkWidget--focus-line-width">focus-line-width</link> <link linkend="gint">gint</link> : Read
407
<link linkend="GtkWidget--focus-padding">focus-padding</link> <link linkend="gint">gint</link> : Read
408
<link linkend="GtkWidget--interior-focus">interior-focus</link> <link linkend="gboolean">gboolean</link> : Read
409
<link linkend="GtkWidget--link-color">link-color</link> <link linkend="GdkColor">GdkColor</link> : Read
410
<link linkend="GtkWidget--scroll-arrow-hlength">scroll-arrow-hlength</link> <link linkend="gint">gint</link> : Read
411
<link linkend="GtkWidget--scroll-arrow-vlength">scroll-arrow-vlength</link> <link linkend="gint">gint</link> : Read
412
<link linkend="GtkWidget--secondary-cursor-color">secondary-cursor-color</link> <link linkend="GdkColor">GdkColor</link> : Read
413
<link linkend="GtkWidget--separator-height">separator-height</link> <link linkend="gint">gint</link> : Read
414
<link linkend="GtkWidget--separator-width">separator-width</link> <link linkend="gint">gint</link> : Read
415
<link linkend="GtkWidget--visited-link-color">visited-link-color</link> <link linkend="GdkColor">GdkColor</link> : Read
416
<link linkend="GtkWidget--wide-separators">wide-separators</link> <link linkend="gboolean">gboolean</link> : Read
412
421
<title role="signal_proto.title">Signals</title>
415
"<link linkend="GtkWidget-accel-closures-changed">accel-closures-changed</link>"
416
"<link linkend="GtkWidget-button-press-event">button-press-event</link>" : Run Last
417
"<link linkend="GtkWidget-button-release-event">button-release-event</link>" : Run Last
418
"<link linkend="GtkWidget-can-activate-accel">can-activate-accel</link>" : Run Last
419
"<link linkend="GtkWidget-child-notify">child-notify</link>" : Run First / No Recursion / Has Details / No Hooks
420
"<link linkend="GtkWidget-client-event">client-event</link>" : Run Last
421
"<link linkend="GtkWidget-composited-changed">composited-changed</link>" : Run Last / Action
422
"<link linkend="GtkWidget-configure-event">configure-event</link>" : Run Last
423
"<link linkend="GtkWidget-delete-event">delete-event</link>" : Run Last
424
"<link linkend="GtkWidget-destroy-event">destroy-event</link>" : Run Last
425
"<link linkend="GtkWidget-direction-changed">direction-changed</link>" : Run First
426
"<link linkend="GtkWidget-drag-begin">drag-begin</link>" : Run Last
427
"<link linkend="GtkWidget-drag-data-delete">drag-data-delete</link>" : Run Last
428
"<link linkend="GtkWidget-drag-data-get">drag-data-get</link>" : Run Last
429
"<link linkend="GtkWidget-drag-data-received">drag-data-received</link>" : Run Last
430
"<link linkend="GtkWidget-drag-drop">drag-drop</link>" : Run Last
431
"<link linkend="GtkWidget-drag-end">drag-end</link>" : Run Last
432
"<link linkend="GtkWidget-drag-leave">drag-leave</link>" : Run Last
433
"<link linkend="GtkWidget-drag-motion">drag-motion</link>" : Run Last
434
"<link linkend="GtkWidget-enter-notify-event">enter-notify-event</link>" : Run Last
435
"<link linkend="GtkWidget-event">event</link>" : Run Last
436
"<link linkend="GtkWidget-event-after">event-after</link>"
437
"<link linkend="GtkWidget-expose-event">expose-event</link>" : Run Last
438
"<link linkend="GtkWidget-focus">focus</link>" : Run Last
439
"<link linkend="GtkWidget-focus-in-event">focus-in-event</link>" : Run Last
440
"<link linkend="GtkWidget-focus-out-event">focus-out-event</link>" : Run Last
441
"<link linkend="GtkWidget-grab-broken-event">grab-broken-event</link>" : Run Last
442
"<link linkend="GtkWidget-grab-focus">grab-focus</link>" : Run Last / Action
443
"<link linkend="GtkWidget-grab-notify">grab-notify</link>" : Run First
444
"<link linkend="GtkWidget-hide">hide</link>" : Run First
445
"<link linkend="GtkWidget-hierarchy-changed">hierarchy-changed</link>" : Run Last
446
"<link linkend="GtkWidget-key-press-event">key-press-event</link>" : Run Last
447
"<link linkend="GtkWidget-key-release-event">key-release-event</link>" : Run Last
448
"<link linkend="GtkWidget-leave-notify-event">leave-notify-event</link>" : Run Last
449
"<link linkend="GtkWidget-map">map</link>" : Run First
450
"<link linkend="GtkWidget-map-event">map-event</link>" : Run Last
451
"<link linkend="GtkWidget-mnemonic-activate">mnemonic-activate</link>" : Run Last
452
"<link linkend="GtkWidget-motion-notify-event">motion-notify-event</link>" : Run Last
453
"<link linkend="GtkWidget-no-expose-event">no-expose-event</link>" : Run Last
454
"<link linkend="GtkWidget-parent-set">parent-set</link>" : Run First
455
"<link linkend="GtkWidget-popup-menu">popup-menu</link>" : Run Last / Action
456
"<link linkend="GtkWidget-property-notify-event">property-notify-event</link>" : Run Last
457
"<link linkend="GtkWidget-proximity-in-event">proximity-in-event</link>" : Run Last
458
"<link linkend="GtkWidget-proximity-out-event">proximity-out-event</link>" : Run Last
459
"<link linkend="GtkWidget-realize">realize</link>" : Run First
460
"<link linkend="GtkWidget-screen-changed">screen-changed</link>" : Run Last
461
"<link linkend="GtkWidget-scroll-event">scroll-event</link>" : Run Last
462
"<link linkend="GtkWidget-selection-clear-event">selection-clear-event</link>" : Run Last
463
"<link linkend="GtkWidget-selection-get">selection-get</link>" : Run Last
464
"<link linkend="GtkWidget-selection-notify-event">selection-notify-event</link>" : Run Last
465
"<link linkend="GtkWidget-selection-received">selection-received</link>" : Run Last
466
"<link linkend="GtkWidget-selection-request-event">selection-request-event</link>" : Run Last
467
"<link linkend="GtkWidget-show">show</link>" : Run First
468
"<link linkend="GtkWidget-show-help">show-help</link>" : Run Last / Action
469
"<link linkend="GtkWidget-size-allocate">size-allocate</link>" : Run First
470
"<link linkend="GtkWidget-size-request">size-request</link>" : Run First
471
"<link linkend="GtkWidget-state-changed">state-changed</link>" : Run First
472
"<link linkend="GtkWidget-style-set">style-set</link>" : Run First
473
"<link linkend="GtkWidget-unmap">unmap</link>" : Run First
474
"<link linkend="GtkWidget-unmap-event">unmap-event</link>" : Run Last
475
"<link linkend="GtkWidget-unrealize">unrealize</link>" : Run Last
476
"<link linkend="GtkWidget-visibility-notify-event">visibility-notify-event</link>" : Run Last
477
"<link linkend="GtkWidget-window-state-event">window-state-event</link>" : Run Last
424
<link linkend="GtkWidget-accel-closures-changed">accel-closures-changed</link>
425
<link linkend="GtkWidget-button-press-event">button-press-event</link> : Run Last
426
<link linkend="GtkWidget-button-release-event">button-release-event</link> : Run Last
427
<link linkend="GtkWidget-can-activate-accel">can-activate-accel</link> : Run Last
428
<link linkend="GtkWidget-child-notify">child-notify</link> : Run First / No Recursion / Has Details / No Hooks
429
<link linkend="GtkWidget-client-event">client-event</link> : Run Last
430
<link linkend="GtkWidget-composited-changed">composited-changed</link> : Run Last / Action
431
<link linkend="GtkWidget-configure-event">configure-event</link> : Run Last
432
<link linkend="GtkWidget-delete-event">delete-event</link> : Run Last
433
<link linkend="GtkWidget-destroy-event">destroy-event</link> : Run Last
434
<link linkend="GtkWidget-direction-changed">direction-changed</link> : Run First
435
<link linkend="GtkWidget-drag-begin">drag-begin</link> : Run Last
436
<link linkend="GtkWidget-drag-data-delete">drag-data-delete</link> : Run Last
437
<link linkend="GtkWidget-drag-data-get">drag-data-get</link> : Run Last
438
<link linkend="GtkWidget-drag-data-received">drag-data-received</link> : Run Last
439
<link linkend="GtkWidget-drag-drop">drag-drop</link> : Run Last
440
<link linkend="GtkWidget-drag-end">drag-end</link> : Run Last
441
<link linkend="GtkWidget-drag-failed">drag-failed</link> : Run Last
442
<link linkend="GtkWidget-drag-leave">drag-leave</link> : Run Last
443
<link linkend="GtkWidget-drag-motion">drag-motion</link> : Run Last
444
<link linkend="GtkWidget-enter-notify-event">enter-notify-event</link> : Run Last
445
<link linkend="GtkWidget-event">event</link> : Run Last
446
<link linkend="GtkWidget-event-after">event-after</link>
447
<link linkend="GtkWidget-expose-event">expose-event</link> : Run Last
448
<link linkend="GtkWidget-focus">focus</link> : Run Last
449
<link linkend="GtkWidget-focus-in-event">focus-in-event</link> : Run Last
450
<link linkend="GtkWidget-focus-out-event">focus-out-event</link> : Run Last
451
<link linkend="GtkWidget-grab-broken-event">grab-broken-event</link> : Run Last
452
<link linkend="GtkWidget-grab-focus">grab-focus</link> : Run Last / Action
453
<link linkend="GtkWidget-grab-notify">grab-notify</link> : Run First
454
<link linkend="GtkWidget-hide">hide</link> : Run First
455
<link linkend="GtkWidget-hierarchy-changed">hierarchy-changed</link> : Run Last
456
<link linkend="GtkWidget-key-press-event">key-press-event</link> : Run Last
457
<link linkend="GtkWidget-key-release-event">key-release-event</link> : Run Last
458
<link linkend="GtkWidget-keynav-failed">keynav-failed</link> : Run Last
459
<link linkend="GtkWidget-leave-notify-event">leave-notify-event</link> : Run Last
460
<link linkend="GtkWidget-map">map</link> : Run First
461
<link linkend="GtkWidget-map-event">map-event</link> : Run Last
462
<link linkend="GtkWidget-mnemonic-activate">mnemonic-activate</link> : Run Last
463
<link linkend="GtkWidget-motion-notify-event">motion-notify-event</link> : Run Last
464
<link linkend="GtkWidget-move-focus">move-focus</link> : Run Last / Action
465
<link linkend="GtkWidget-no-expose-event">no-expose-event</link> : Run Last
466
<link linkend="GtkWidget-parent-set">parent-set</link> : Run First
467
<link linkend="GtkWidget-popup-menu">popup-menu</link> : Run Last / Action
468
<link linkend="GtkWidget-property-notify-event">property-notify-event</link> : Run Last
469
<link linkend="GtkWidget-proximity-in-event">proximity-in-event</link> : Run Last
470
<link linkend="GtkWidget-proximity-out-event">proximity-out-event</link> : Run Last
471
<link linkend="GtkWidget-query-tooltip">query-tooltip</link> : Run Last
472
<link linkend="GtkWidget-realize">realize</link> : Run First
473
<link linkend="GtkWidget-screen-changed">screen-changed</link> : Run Last
474
<link linkend="GtkWidget-scroll-event">scroll-event</link> : Run Last
475
<link linkend="GtkWidget-selection-clear-event">selection-clear-event</link> : Run Last
476
<link linkend="GtkWidget-selection-get">selection-get</link> : Run Last
477
<link linkend="GtkWidget-selection-notify-event">selection-notify-event</link> : Run Last
478
<link linkend="GtkWidget-selection-received">selection-received</link> : Run Last
479
<link linkend="GtkWidget-selection-request-event">selection-request-event</link> : Run Last
480
<link linkend="GtkWidget-show">show</link> : Run First
481
<link linkend="GtkWidget-show-help">show-help</link> : Run Last / Action
482
<link linkend="GtkWidget-size-allocate">size-allocate</link> : Run First
483
<link linkend="GtkWidget-size-request">size-request</link> : Run First
484
<link linkend="GtkWidget-state-changed">state-changed</link> : Run First
485
<link linkend="GtkWidget-style-set">style-set</link> : Run First
486
<link linkend="GtkWidget-unmap">unmap</link> : Run First
487
<link linkend="GtkWidget-unmap-event">unmap-event</link> : Run Last
488
<link linkend="GtkWidget-unrealize">unrealize</link> : Run Last
489
<link linkend="GtkWidget-visibility-notify-event">visibility-notify-event</link> : Run Last
490
<link linkend="GtkWidget-window-state-event">window-state-event</link> : Run Last
2942
2962
<link linkend="GtkStateType">GtkStateType</link> state,
2943
2963
const <link linkend="GdkColor">GdkColor</link> *color);</programlisting>
2945
Sets the background color for a widget in a particular state. All
2946
other style values are left untouched. See also
2965
Sets the background color for a widget in a particular state.
2966
All other style values are left untouched. See also
2947
2967
<link linkend="gtk-widget-modify-style"><function>gtk_widget_modify_style()</function></link>.
2950
2970
Note that "no window" widgets (which have the <link linkend="GTK-NO-WINDOW:CAPS"><literal>GTK_NO_WINDOW</literal></link> flag set)
2951
draw on their parent container's window and thus may not draw any background
2952
themselves. This is the case for e.g. <link linkend="GtkLabel"><type>GtkLabel</type></link>. To modify the background
2953
of such widgets, you have to set the background color on their parent; if you want
2954
to set the background of a rectangular area around a label, try placing the
2955
label in a <link linkend="GtkEventBox"><type>GtkEventBox</type></link> widget and setting the background color on that.</para>
2971
draw on their parent container's window and thus may not draw any
2972
background themselves. This is the case for e.g. <link linkend="GtkLabel"><type>GtkLabel</type></link>. To modify
2973
the background of such widgets, you have to set the background color
2974
on their parent; if you want to set the background of a rectangular
2975
area around a label, try placing the label in a <link linkend="GtkEventBox"><type>GtkEventBox</type></link> widget
2976
and setting the background color on that.</para>
2958
2979
</para><variablelist role="params">
2959
2980
<varlistentry><term><parameter>widget</parameter> :</term>
2960
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>.
2981
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
2961
2982
</simpara></listitem></varlistentry>
2962
2983
<varlistentry><term><parameter>state</parameter> :</term>
2963
<listitem><simpara> the state for which to set the background color.
2984
<listitem><simpara> the state for which to set the background color
2964
2985
</simpara></listitem></varlistentry>
2965
2986
<varlistentry><term><parameter>color</parameter> :</term>
2966
2987
<listitem><simpara> the color to assign (does not need to be allocated),
4281
4302
</variablelist><para role="since">Since 2.10
4282
4303
</para></refsect2>
4305
<title><anchor id="gtk-widget-error-bell" role="function" condition="since:2.12"/>gtk_widget_error_bell ()</title>
4306
<indexterm role="2.12"><primary>gtk_widget_error_bell</primary></indexterm><programlisting><link linkend="void">void</link> gtk_widget_error_bell (<link linkend="GtkWidget">GtkWidget</link> *widget);</programlisting>
4308
Notifies the user about an input-related error on this widget.
4309
If the <link linkend="GtkSettings--gtk-error-bell"><type>:gtk-error-bell</type></link> setting is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, it calls
4310
<link linkend="gdk-window-beep"><function>gdk_window_beep()</function></link>, otherwise it does nothing.
4313
Note that the effect of <link linkend="gdk-window-beep"><function>gdk_window_beep()</function></link> can be configured in many
4314
ways, depending on the windowing backend and the desktop environment
4315
or window manager that is used.</para>
4318
</para><variablelist role="params">
4319
<varlistentry><term><parameter>widget</parameter> :</term>
4320
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
4321
</simpara></listitem></varlistentry>
4322
</variablelist><para role="since">Since 2.12
4325
<title><anchor id="gtk-widget-keynav-failed" role="function" condition="since:2.12"/>gtk_widget_keynav_failed ()</title>
4326
<indexterm role="2.12"><primary>gtk_widget_keynav_failed</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> gtk_widget_keynav_failed (<link linkend="GtkWidget">GtkWidget</link> *widget,
4327
<link linkend="GtkDirectionType">GtkDirectionType</link> direction);</programlisting>
4329
This function should be called whenever keyboard navigation within
4330
a single widget hits a boundary. The function emits the
4331
<link linkend="GtkWidget-keynav-changed"><type>::keynav-changed</type></link> signal on the widget and its return
4332
value should be interpreted in a way similar to the return value of
4333
<link linkend="gtk-widget-child-focus"><function>gtk_widget_child_focus()</function></link>:
4336
When <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> is returned, stay in the widget, the failed keyboard
4337
navigation is Ok and/or there is nowhere we can/should move the
4341
When <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> is returned, the caller should continue with keyboard
4342
navigation outside the widget, e.g. by calling
4343
<link linkend="gtk-widget-child-focus"><function>gtk_widget_child_focus()</function></link> on the widget's toplevel.
4346
The default ::keynav-failed handler returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> for
4347
<link linkend="GTK-DIR-TAB-FORWARD:CAPS"><literal>GTK_DIR_TAB_FORWARD</literal></link> and <link linkend="GTK-DIR-TAB-BACKWARD:CAPS"><literal>GTK_DIR_TAB_BACKWARD</literal></link>. For the other
4348
values of <link linkend="GtkDirectionType"><type>GtkDirectionType</type></link>, it looks at the
4349
<link linkend="GtkSettings--gtk-keynav-cursor-only"><type>:gtk-keynav-cursor-only</type></link>" setting and returns <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>
4350
if the setting is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>. This way the entire user interface
4351
becomes cursor-navigatable on input devices such as mobile phones
4352
which only have cursor keys but no tab key.
4355
Whenever the default handler returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, it also calls
4356
<link linkend="gtk-widget-error-bell"><function>gtk_widget_error_bell()</function></link> to notify the user of the failed keyboard
4360
A use case for providing an own implementation of ::keynav-failed
4361
(either by connecting to it or by overriding it) would be a row of
4362
<link linkend="GtkEntry"><type>GtkEntry</type></link> widgets where the user should be able to navigate the
4363
entire row with the cursor keys, as e.g. known from user interfaces
4364
that require entering license keys.</para>
4367
</para><variablelist role="params">
4368
<varlistentry><term><parameter>widget</parameter> :</term>
4369
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
4370
</simpara></listitem></varlistentry>
4371
<varlistentry><term><parameter>direction</parameter> :</term>
4372
<listitem><simpara> direction of focus movement
4373
</simpara></listitem></varlistentry>
4374
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if stopping keyboard navigation is fine, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>
4375
if the emitting widget should try to handle the keyboard
4376
navigation attempt in its parent container(s).
4378
</simpara></listitem></varlistentry>
4379
</variablelist><para role="since">Since 2.12
4382
<title><anchor id="gtk-widget-get-tooltip-window" role="function" condition="since:2.12"/>gtk_widget_get_tooltip_window ()</title>
4383
<indexterm role="2.12"><primary>gtk_widget_get_tooltip_window</primary></indexterm><programlisting><link linkend="GtkWindow">GtkWindow</link>* gtk_widget_get_tooltip_window (<link linkend="GtkWidget">GtkWidget</link> *widget);</programlisting>
4385
Returns the <link linkend="GtkWindow"><type>GtkWindow</type></link> of the current tooltip. This can be the
4386
GtkWindow created by default, or the custom tooltip window set
4387
using <link linkend="gtk-widget-set-tooltip-window"><function>gtk_widget_set_tooltip_window()</function></link>.</para>
4390
</para><variablelist role="params">
4391
<varlistentry><term><parameter>widget</parameter> :</term>
4392
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
4393
</simpara></listitem></varlistentry>
4394
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> The <link linkend="GtkWindow"><type>GtkWindow</type></link> of the current tooltip.
4396
</simpara></listitem></varlistentry>
4397
</variablelist><para role="since">Since 2.12
4400
<title><anchor id="gtk-widget-set-tooltip-window" role="function" condition="since:2.12"/>gtk_widget_set_tooltip_window ()</title>
4401
<indexterm role="2.12"><primary>gtk_widget_set_tooltip_window</primary></indexterm><programlisting><link linkend="void">void</link> gtk_widget_set_tooltip_window (<link linkend="GtkWidget">GtkWidget</link> *widget,
4402
<link linkend="GtkWindow">GtkWindow</link> *custom_window);</programlisting>
4404
Replaces the default, usually yellow, window used for displaying
4405
tooltips with <parameter>custom_window</parameter>. GTK+ will take care of showing and
4406
hiding <parameter>custom_window</parameter> at the right moment, to behave likewise as
4407
the default tooltip window. If <parameter>custom_window</parameter> is <link linkend="NULL:CAPS"><literal>NULL</literal></link>, the default
4408
tooltip window will be used.</para>
4411
</para><variablelist role="params">
4412
<varlistentry><term><parameter>widget</parameter> :</term>
4413
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
4414
</simpara></listitem></varlistentry>
4415
<varlistentry><term><parameter>custom_window</parameter> :</term>
4416
<listitem><simpara> a <link linkend="GtkWindow"><type>GtkWindow</type></link>, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
4417
</simpara></listitem></varlistentry>
4418
</variablelist><para role="since">Since 2.12
4421
<title><anchor id="gtk-widget-trigger-tooltip-query" role="function" condition="since:2.12"/>gtk_widget_trigger_tooltip_query ()</title>
4422
<indexterm role="2.12"><primary>gtk_widget_trigger_tooltip_query</primary></indexterm><programlisting><link linkend="void">void</link> gtk_widget_trigger_tooltip_query (<link linkend="GtkWidget">GtkWidget</link> *widget);</programlisting>
4424
Triggers a tooltip query on the display where the toplevel of <parameter>widget</parameter>
4425
is located. See <link linkend="gtk-tooltip-trigger-tooltip-query"><function>gtk_tooltip_trigger_tooltip_query()</function></link> for more
4429
</para><variablelist role="params">
4430
<varlistentry><term><parameter>widget</parameter> :</term>
4431
<listitem><simpara> a <link linkend="GtkWidget"><type>GtkWidget</type></link>
4432
</simpara></listitem></varlistentry>
4433
</variablelist><para role="since">Since 2.12
4284
4436
<title><anchor id="gtk-requisition-copy" role="function"/>gtk_requisition_copy ()</title>
4285
4437
<indexterm><primary>gtk_requisition_copy</primary></indexterm><programlisting><link linkend="GtkRequisition">GtkRequisition</link>* gtk_requisition_copy (const <link linkend="GtkRequisition">GtkRequisition</link> *requisition);</programlisting>
4304
4456
</para><variablelist role="params">
4305
4457
<varlistentry><term><parameter>requisition</parameter> :</term>
4306
<listitem><simpara> a <link linkend="GtkRequisition"><type>GtkRequisition</type></link>.
4458
<listitem><simpara> a <link linkend="GtkRequisition"><type>GtkRequisition</type></link>
4307
4459
</simpara></listitem></varlistentry>
4308
4460
</variablelist></refsect2>
4311
4463
<refsect1 role="property_details">
4312
4464
<title role="property_details.title">Property Details</title>
4313
<refsect2><title><anchor id="GtkWidget--app-paintable"/>The "<literal>app-paintable</literal>" property</title>
4314
<indexterm><primary>GtkWidget:app-paintable</primary></indexterm><programlisting> "app-paintable" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4465
<refsect2><title><anchor id="GtkWidget--app-paintable"/>The :<literal>app-paintable</literal> property</title>
4466
<indexterm><primary>GtkWidget:app-paintable</primary></indexterm><programlisting> app-paintable <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4315
4467
<para>Whether the application will paint directly on the widget.</para><para>Default value: FALSE</para>
4317
<refsect2><title><anchor id="GtkWidget--can-default"/>The "<literal>can-default</literal>" property</title>
4318
<indexterm><primary>GtkWidget:can-default</primary></indexterm><programlisting> "can-default" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4469
<refsect2><title><anchor id="GtkWidget--can-default"/>The :<literal>can-default</literal> property</title>
4470
<indexterm><primary>GtkWidget:can-default</primary></indexterm><programlisting> can-default <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4319
4471
<para>Whether the widget can be the default widget.</para><para>Default value: FALSE</para>
4321
<refsect2><title><anchor id="GtkWidget--can-focus"/>The "<literal>can-focus</literal>" property</title>
4322
<indexterm><primary>GtkWidget:can-focus</primary></indexterm><programlisting> "can-focus" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4473
<refsect2><title><anchor id="GtkWidget--can-focus"/>The :<literal>can-focus</literal> property</title>
4474
<indexterm><primary>GtkWidget:can-focus</primary></indexterm><programlisting> can-focus <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4323
4475
<para>Whether the widget can accept the input focus.</para><para>Default value: FALSE</para>
4325
<refsect2><title><anchor id="GtkWidget--composite-child"/>The "<literal>composite-child</literal>" property</title>
4326
<indexterm><primary>GtkWidget:composite-child</primary></indexterm><programlisting> "composite-child" <link linkend="gboolean">gboolean</link> : Read</programlisting>
4477
<refsect2><title><anchor id="GtkWidget--composite-child"/>The :<literal>composite-child</literal> property</title>
4478
<indexterm><primary>GtkWidget:composite-child</primary></indexterm><programlisting> composite-child <link linkend="gboolean">gboolean</link> : Read</programlisting>
4327
4479
<para>Whether the widget is part of a composite widget.</para><para>Default value: FALSE</para>
4329
<refsect2><title><anchor id="GtkWidget--events"/>The "<literal>events</literal>" property</title>
4330
<indexterm><primary>GtkWidget:events</primary></indexterm><programlisting> "events" <link linkend="GdkEventMask">GdkEventMask</link> : Read / Write</programlisting>
4481
<refsect2><title><anchor id="GtkWidget--events"/>The :<literal>events</literal> property</title>
4482
<indexterm><primary>GtkWidget:events</primary></indexterm><programlisting> events <link linkend="GdkEventMask">GdkEventMask</link> : Read / Write</programlisting>
4331
4483
<para>The event mask that decides what kind of GdkEvents this widget gets.</para><para>Default value: GDK_STRUCTURE_MASK</para>
4333
<refsect2><title><anchor id="GtkWidget--extension-events"/>The "<literal>extension-events</literal>" property</title>
4334
<indexterm><primary>GtkWidget:extension-events</primary></indexterm><programlisting> "extension-events" <link linkend="GdkExtensionMode">GdkExtensionMode</link> : Read / Write</programlisting>
4485
<refsect2><title><anchor id="GtkWidget--extension-events"/>The :<literal>extension-events</literal> property</title>
4486
<indexterm><primary>GtkWidget:extension-events</primary></indexterm><programlisting> extension-events <link linkend="GdkExtensionMode">GdkExtensionMode</link> : Read / Write</programlisting>
4335
4487
<para>The mask that decides what kind of extension events this widget gets.</para><para>Default value: GDK_EXTENSION_EVENTS_NONE</para>
4337
<refsect2><title><anchor id="GtkWidget--has-default"/>The "<literal>has-default</literal>" property</title>
4338
<indexterm><primary>GtkWidget:has-default</primary></indexterm><programlisting> "has-default" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4489
<refsect2><title><anchor id="GtkWidget--has-default"/>The :<literal>has-default</literal> property</title>
4490
<indexterm><primary>GtkWidget:has-default</primary></indexterm><programlisting> has-default <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4339
4491
<para>Whether the widget is the default widget.</para><para>Default value: FALSE</para>
4341
<refsect2><title><anchor id="GtkWidget--has-focus"/>The "<literal>has-focus</literal>" property</title>
4342
<indexterm><primary>GtkWidget:has-focus</primary></indexterm><programlisting> "has-focus" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4493
<refsect2><title><anchor id="GtkWidget--has-focus"/>The :<literal>has-focus</literal> property</title>
4494
<indexterm><primary>GtkWidget:has-focus</primary></indexterm><programlisting> has-focus <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4343
4495
<para>Whether the widget has the input focus.</para><para>Default value: FALSE</para>
4345
<refsect2><title><anchor id="GtkWidget--height-request"/>The "<literal>height-request</literal>" property</title>
4346
<indexterm><primary>GtkWidget:height-request</primary></indexterm><programlisting> "height-request" <link linkend="gint">gint</link> : Read / Write</programlisting>
4497
<refsect2><title><anchor id="GtkWidget--has-tooltip"/>The :<literal>has-tooltip</literal> property</title>
4498
<indexterm role="2.12"><primary>GtkWidget:has-tooltip</primary></indexterm><programlisting> has-tooltip <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4500
Enables or disables the emission of <link linkend="GtkWidget-query-tooltip"><type>::query-tooltip</type></link> on <parameter>widget</parameter>.
4501
A value of <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> indicates that <parameter>widget</parameter> can have a tooltip, in this case
4502
the widget will be queried using <link linkend="GtkWidget-query-tooltip"><type>::query-tooltip</type></link> to determine
4503
whether it will provide a tooltip or not.</para>
4506
</para><para>Default value: FALSE</para>
4510
<refsect2><title><anchor id="GtkWidget--height-request"/>The :<literal>height-request</literal> property</title>
4511
<indexterm><primary>GtkWidget:height-request</primary></indexterm><programlisting> height-request <link linkend="gint">gint</link> : Read / Write</programlisting>
4347
4512
<para>Override for height request of the widget, or -1 if natural request should be used.</para><para>Allowed values: >= -1</para>
4348
4513
<para>Default value: -1</para>
4350
<refsect2><title><anchor id="GtkWidget--is-focus"/>The "<literal>is-focus</literal>" property</title>
4351
<indexterm><primary>GtkWidget:is-focus</primary></indexterm><programlisting> "is-focus" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4515
<refsect2><title><anchor id="GtkWidget--is-focus"/>The :<literal>is-focus</literal> property</title>
4516
<indexterm><primary>GtkWidget:is-focus</primary></indexterm><programlisting> is-focus <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4352
4517
<para>Whether the widget is the focus widget within the toplevel.</para><para>Default value: FALSE</para>
4354
<refsect2><title><anchor id="GtkWidget--name"/>The "<literal>name</literal>" property</title>
4355
<indexterm><primary>GtkWidget:name</primary></indexterm><programlisting> "name" <link linkend="gchararray">gchararray</link> : Read / Write</programlisting>
4519
<refsect2><title><anchor id="GtkWidget--name"/>The :<literal>name</literal> property</title>
4520
<indexterm><primary>GtkWidget:name</primary></indexterm><programlisting> name <link linkend="gchararray">gchararray</link> : Read / Write</programlisting>
4356
4521
<para>The name of the widget.</para><para>Default value: NULL</para>
4358
<refsect2><title><anchor id="GtkWidget--no-show-all"/>The "<literal>no-show-all</literal>" property</title>
4359
<indexterm><primary>GtkWidget:no-show-all</primary></indexterm><programlisting> "no-show-all" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4523
<refsect2><title><anchor id="GtkWidget--no-show-all"/>The :<literal>no-show-all</literal> property</title>
4524
<indexterm><primary>GtkWidget:no-show-all</primary></indexterm><programlisting> no-show-all <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4360
4525
<para>Whether gtk_widget_show_all() should not affect this widget.</para><para>Default value: FALSE</para>
4362
<refsect2><title><anchor id="GtkWidget--parent"/>The "<literal>parent</literal>" property</title>
4363
<indexterm><primary>GtkWidget:parent</primary></indexterm><programlisting> "parent" <link linkend="GtkContainer">GtkContainer</link> : Read / Write</programlisting>
4527
<refsect2><title><anchor id="GtkWidget--parent"/>The :<literal>parent</literal> property</title>
4528
<indexterm><primary>GtkWidget:parent</primary></indexterm><programlisting> parent <link linkend="GtkContainer">GtkContainer</link> : Read / Write</programlisting>
4364
4529
<para>The parent widget of this widget. Must be a Container widget.</para></refsect2>
4365
<refsect2><title><anchor id="GtkWidget--receives-default"/>The "<literal>receives-default</literal>" property</title>
4366
<indexterm><primary>GtkWidget:receives-default</primary></indexterm><programlisting> "receives-default" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4530
<refsect2><title><anchor id="GtkWidget--receives-default"/>The :<literal>receives-default</literal> property</title>
4531
<indexterm><primary>GtkWidget:receives-default</primary></indexterm><programlisting> receives-default <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4367
4532
<para>If TRUE, the widget will receive the default action when it is focused.</para><para>Default value: FALSE</para>
4369
<refsect2><title><anchor id="GtkWidget--sensitive"/>The "<literal>sensitive</literal>" property</title>
4370
<indexterm><primary>GtkWidget:sensitive</primary></indexterm><programlisting> "sensitive" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4534
<refsect2><title><anchor id="GtkWidget--sensitive"/>The :<literal>sensitive</literal> property</title>
4535
<indexterm><primary>GtkWidget:sensitive</primary></indexterm><programlisting> sensitive <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4371
4536
<para>Whether the widget responds to input.</para><para>Default value: TRUE</para>
4373
<refsect2><title><anchor id="GtkWidget--style"/>The "<literal>style</literal>" property</title>
4374
<indexterm><primary>GtkWidget:style</primary></indexterm><programlisting> "style" <link linkend="GtkStyle">GtkStyle</link> : Read / Write</programlisting>
4538
<refsect2><title><anchor id="GtkWidget--style"/>The :<literal>style</literal> property</title>
4539
<indexterm><primary>GtkWidget:style</primary></indexterm><programlisting> style <link linkend="GtkStyle">GtkStyle</link> : Read / Write</programlisting>
4375
4540
<para>The style of the widget, which contains information about how it will look (colors etc).</para></refsect2>
4376
<refsect2><title><anchor id="GtkWidget--visible"/>The "<literal>visible</literal>" property</title>
4377
<indexterm><primary>GtkWidget:visible</primary></indexterm><programlisting> "visible" <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4541
<refsect2><title><anchor id="GtkWidget--tooltip-markup"/>The :<literal>tooltip-markup</literal> property</title>
4542
<indexterm role="2.12"><primary>GtkWidget:tooltip-markup</primary></indexterm><programlisting> tooltip-markup <link linkend="gchararray">gchararray</link> : Read / Write</programlisting>
4544
Sets the text of tooltip to be the given string, which is marked up
4545
with the <link linkend="PangoMarkupFormat">Pango text markup language</link>.
4546
Also see <link linkend="gtk-tooltip-set-markup"><function>gtk_tooltip_set_markup()</function></link>.
4549
This is a convenience property which will take care of getting the
4550
tooltip shown if the given string is not <link linkend="NULL:CAPS"><literal>NULL</literal></link>: <link linkend="GtkWidget--has-tooltip"><type>:has-tooltip</type></link>
4551
will automatically be set to <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> and there will be taken care of
4552
<link linkend="GtkWidget-query-tooltip"><type>::query-tooltip</type></link> in the default signal handler.</para>
4555
</para><para>Default value: NULL</para>
4559
<refsect2><title><anchor id="GtkWidget--visible"/>The :<literal>visible</literal> property</title>
4560
<indexterm><primary>GtkWidget:visible</primary></indexterm><programlisting> visible <link linkend="gboolean">gboolean</link> : Read / Write</programlisting>
4378
4561
<para>Whether the widget is visible.</para><para>Default value: FALSE</para>
4380
<refsect2><title><anchor id="GtkWidget--width-request"/>The "<literal>width-request</literal>" property</title>
4381
<indexterm><primary>GtkWidget:width-request</primary></indexterm><programlisting> "width-request" <link linkend="gint">gint</link> : Read / Write</programlisting>
4563
<refsect2><title><anchor id="GtkWidget--width-request"/>The :<literal>width-request</literal> property</title>
4564
<indexterm><primary>GtkWidget:width-request</primary></indexterm><programlisting> width-request <link linkend="gint">gint</link> : Read / Write</programlisting>
4382
4565
<para>Override for width request of the widget, or -1 if natural request should be used.</para><para>Allowed values: >= -1</para>
4383
4566
<para>Default value: -1</para>
4387
4570
<refsect1 role="style_properties_details">
4388
4571
<title role="style_properties_details.title">Style Property Details</title>
4389
<refsect2><title><anchor id="GtkWidget--cursor-aspect-ratio"/>The "<literal>cursor-aspect-ratio</literal>" style property</title>
4390
<indexterm><primary>GtkWidget:cursor-aspect-ratio</primary></indexterm><programlisting> "cursor-aspect-ratio" <link linkend="gfloat">gfloat</link> : Read</programlisting>
4572
<refsect2><title><anchor id="GtkWidget--cursor-aspect-ratio"/>The :<literal>cursor-aspect-ratio</literal> style property</title>
4573
<indexterm><primary>GtkWidget:cursor-aspect-ratio</primary></indexterm><programlisting> cursor-aspect-ratio <link linkend="gfloat">gfloat</link> : Read</programlisting>
4391
4574
<para>Aspect ratio with which to draw insertion cursor.</para><para>Allowed values: [0,1]</para>
4392
4575
<para>Default value: 0.04</para>
4394
<refsect2><title><anchor id="GtkWidget--cursor-color"/>The "<literal>cursor-color</literal>" style property</title>
4395
<indexterm><primary>GtkWidget:cursor-color</primary></indexterm><programlisting> "cursor-color" <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4577
<refsect2><title><anchor id="GtkWidget--cursor-color"/>The :<literal>cursor-color</literal> style property</title>
4578
<indexterm><primary>GtkWidget:cursor-color</primary></indexterm><programlisting> cursor-color <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4396
4579
<para>Color with which to draw insertion cursor.</para></refsect2>
4397
<refsect2><title><anchor id="GtkWidget--draw-border"/>The "<literal>draw-border</literal>" style property</title>
4398
<indexterm role="2.8"><primary>GtkWidget:draw-border</primary></indexterm><programlisting> "draw-border" <link linkend="GtkBorder">GtkBorder</link> : Read</programlisting>
4580
<refsect2><title><anchor id="GtkWidget--draw-border"/>The :<literal>draw-border</literal> style property</title>
4581
<indexterm role="2.8"><primary>GtkWidget:draw-border</primary></indexterm><programlisting> draw-border <link linkend="GtkBorder">GtkBorder</link> : Read</programlisting>
4400
The "draw-border" property defines the size of areas outside
4583
The "draw-border" style property defines the size of areas outside
4401
4584
the widget's allocation to draw.</para>
4404
4587
</para><para>Since 2.8
4407
<refsect2><title><anchor id="GtkWidget--focus-line-pattern"/>The "<literal>focus-line-pattern</literal>" style property</title>
4408
<indexterm><primary>GtkWidget:focus-line-pattern</primary></indexterm><programlisting> "focus-line-pattern" <link linkend="gchararray">gchararray</link> : Read</programlisting>
4590
<refsect2><title><anchor id="GtkWidget--focus-line-pattern"/>The :<literal>focus-line-pattern</literal> style property</title>
4591
<indexterm><primary>GtkWidget:focus-line-pattern</primary></indexterm><programlisting> focus-line-pattern <link linkend="gchararray">gchararray</link> : Read</programlisting>
4409
4592
<para>Dash pattern used to draw the focus indicator.</para><para>Default value: "\001\001"</para>
4411
<refsect2><title><anchor id="GtkWidget--focus-line-width"/>The "<literal>focus-line-width</literal>" style property</title>
4412
<indexterm><primary>GtkWidget:focus-line-width</primary></indexterm><programlisting> "focus-line-width" <link linkend="gint">gint</link> : Read</programlisting>
4594
<refsect2><title><anchor id="GtkWidget--focus-line-width"/>The :<literal>focus-line-width</literal> style property</title>
4595
<indexterm><primary>GtkWidget:focus-line-width</primary></indexterm><programlisting> focus-line-width <link linkend="gint">gint</link> : Read</programlisting>
4413
4596
<para>Width, in pixels, of the focus indicator line.</para><para>Allowed values: >= 0</para>
4414
4597
<para>Default value: 1</para>
4416
<refsect2><title><anchor id="GtkWidget--focus-padding"/>The "<literal>focus-padding</literal>" style property</title>
4417
<indexterm><primary>GtkWidget:focus-padding</primary></indexterm><programlisting> "focus-padding" <link linkend="gint">gint</link> : Read</programlisting>
4599
<refsect2><title><anchor id="GtkWidget--focus-padding"/>The :<literal>focus-padding</literal> style property</title>
4600
<indexterm><primary>GtkWidget:focus-padding</primary></indexterm><programlisting> focus-padding <link linkend="gint">gint</link> : Read</programlisting>
4418
4601
<para>Width, in pixels, between focus indicator and the widget 'box'.</para><para>Allowed values: >= 0</para>
4419
4602
<para>Default value: 1</para>
4421
<refsect2><title><anchor id="GtkWidget--interior-focus"/>The "<literal>interior-focus</literal>" style property</title>
4422
<indexterm><primary>GtkWidget:interior-focus</primary></indexterm><programlisting> "interior-focus" <link linkend="gboolean">gboolean</link> : Read</programlisting>
4604
<refsect2><title><anchor id="GtkWidget--interior-focus"/>The :<literal>interior-focus</literal> style property</title>
4605
<indexterm><primary>GtkWidget:interior-focus</primary></indexterm><programlisting> interior-focus <link linkend="gboolean">gboolean</link> : Read</programlisting>
4423
4606
<para>Whether to draw the focus indicator inside widgets.</para><para>Default value: TRUE</para>
4425
<refsect2><title><anchor id="GtkWidget--link-color"/>The "<literal>link-color</literal>" style property</title>
4426
<indexterm role="2.10"><primary>GtkWidget:link-color</primary></indexterm><programlisting> "link-color" <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4608
<refsect2><title><anchor id="GtkWidget--link-color"/>The :<literal>link-color</literal> style property</title>
4609
<indexterm role="2.10"><primary>GtkWidget:link-color</primary></indexterm><programlisting> link-color <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4428
The "link-color" property defines the color of unvisited links.</para>
4611
The "link-color" style property defines the color of unvisited links.</para>
4431
4614
</para><para>Since 2.10
4434
<refsect2><title><anchor id="GtkWidget--scroll-arrow-hlength"/>The "<literal>scroll-arrow-hlength</literal>" style property</title>
4435
<indexterm role="2.10"><primary>GtkWidget:scroll-arrow-hlength</primary></indexterm><programlisting> "scroll-arrow-hlength" <link linkend="gint">gint</link> : Read</programlisting>
4617
<refsect2><title><anchor id="GtkWidget--scroll-arrow-hlength"/>The :<literal>scroll-arrow-hlength</literal> style property</title>
4618
<indexterm role="2.10"><primary>GtkWidget:scroll-arrow-hlength</primary></indexterm><programlisting> scroll-arrow-hlength <link linkend="gint">gint</link> : Read</programlisting>
4437
The "scroll-arrow-hlength" property defines the length of
4620
The "scroll-arrow-hlength" style property defines the length of
4438
4621
horizontal scroll arrows.</para>
4455
4638
<para>Since 2.10
4458
<refsect2><title><anchor id="GtkWidget--secondary-cursor-color"/>The "<literal>secondary-cursor-color</literal>" style property</title>
4459
<indexterm><primary>GtkWidget:secondary-cursor-color</primary></indexterm><programlisting> "secondary-cursor-color" <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4641
<refsect2><title><anchor id="GtkWidget--secondary-cursor-color"/>The :<literal>secondary-cursor-color</literal> style property</title>
4642
<indexterm><primary>GtkWidget:secondary-cursor-color</primary></indexterm><programlisting> secondary-cursor-color <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4460
4643
<para>Color with which to draw the secondary insertion cursor when editing mixed right-to-left and left-to-right text.</para></refsect2>
4461
<refsect2><title><anchor id="GtkWidget--separator-height"/>The "<literal>separator-height</literal>" style property</title>
4462
<indexterm role="2.10"><primary>GtkWidget:separator-height</primary></indexterm><programlisting> "separator-height" <link linkend="gint">gint</link> : Read</programlisting>
4464
The "separator-height" property defines the height of separators.
4465
This property only takes effect if "wide-separators" is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.</para>
4468
</para><para>Allowed values: >= 0</para>
4469
<para>Default value: 0</para>
4473
<refsect2><title><anchor id="GtkWidget--separator-width"/>The "<literal>separator-width</literal>" style property</title>
4474
<indexterm role="2.10"><primary>GtkWidget:separator-width</primary></indexterm><programlisting> "separator-width" <link linkend="gint">gint</link> : Read</programlisting>
4476
The "separator-width" property defines the width of separators.
4477
This property only takes effect if "wide-separators" is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.</para>
4480
</para><para>Allowed values: >= 0</para>
4481
<para>Default value: 0</para>
4485
<refsect2><title><anchor id="GtkWidget--visited-link-color"/>The "<literal>visited-link-color</literal>" style property</title>
4486
<indexterm role="2.10"><primary>GtkWidget:visited-link-color</primary></indexterm><programlisting> "visited-link-color" <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4488
The "visited-link-color" property defines the color of visited links.</para>
4644
<refsect2><title><anchor id="GtkWidget--separator-height"/>The :<literal>separator-height</literal> style property</title>
4645
<indexterm role="2.10"><primary>GtkWidget:separator-height</primary></indexterm><programlisting> separator-height <link linkend="gint">gint</link> : Read</programlisting>
4647
The "separator-height" style property defines the height of separators.
4648
This property only takes effect if <link linkend="GtkWidget--wide-separators"><type>:wide-separators</type></link> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.</para>
4651
</para><para>Allowed values: >= 0</para>
4652
<para>Default value: 0</para>
4656
<refsect2><title><anchor id="GtkWidget--separator-width"/>The :<literal>separator-width</literal> style property</title>
4657
<indexterm role="2.10"><primary>GtkWidget:separator-width</primary></indexterm><programlisting> separator-width <link linkend="gint">gint</link> : Read</programlisting>
4659
The "separator-width" style property defines the width of separators.
4660
This property only takes effect if <link linkend="GtkWidget--wide-separators"><type>:wide-separators</type></link> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>.</para>
4663
</para><para>Allowed values: >= 0</para>
4664
<para>Default value: 0</para>
4668
<refsect2><title><anchor id="GtkWidget--visited-link-color"/>The :<literal>visited-link-color</literal> style property</title>
4669
<indexterm role="2.10"><primary>GtkWidget:visited-link-color</primary></indexterm><programlisting> visited-link-color <link linkend="GdkColor">GdkColor</link> : Read</programlisting>
4671
The "visited-link-color" style property defines the color of visited links.</para>
4491
4674
</para><para>Since 2.10
4494
<refsect2><title><anchor id="GtkWidget--wide-separators"/>The "<literal>wide-separators</literal>" style property</title>
4495
<indexterm role="2.10"><primary>GtkWidget:wide-separators</primary></indexterm><programlisting> "wide-separators" <link linkend="gboolean">gboolean</link> : Read</programlisting>
4677
<refsect2><title><anchor id="GtkWidget--wide-separators"/>The :<literal>wide-separators</literal> style property</title>
4678
<indexterm role="2.10"><primary>GtkWidget:wide-separators</primary></indexterm><programlisting> wide-separators <link linkend="gboolean">gboolean</link> : Read</programlisting>
4497
The "wide-separators" property defines whether separators have
4680
The "wide-separators" style property defines whether separators have
4498
4681
configurable width and should be drawn using a box instead of a line.</para>
4574
4757
<varlistentry><term><parameter>signal_id</parameter> :</term>
4575
4758
<listitem><simpara> the ID of a signal installed on <parameter>widget</parameter>
4576
4759
</simpara></listitem></varlistentry>
4577
<varlistentry><term><parameter>returns</parameter> :</term>
4578
<listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the signal can be activated.
4579
</simpara></listitem></varlistentry>
4580
4760
<varlistentry><term><parameter>user_data</parameter> :</term>
4581
4761
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4582
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-child-notify"/>The "child-notify" signal</title>
4762
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the signal can be activated.
4763
</simpara></listitem></varlistentry>
4764
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-child-notify"/>The <literal>::child-notify</literal> signal</title>
4583
4765
<indexterm><primary>GtkWidget::child-notify</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4584
4766
<link linkend="GParamSpec">GParamSpec</link> *pspec,
4585
4767
<link linkend="gpointer">gpointer</link> user_data) : Run First / No Recursion / Has Details / No Hooks</programlisting>
4587
The ::child-notify signal is emitted for each child property that has
4769
The ::child-notify signal is emitted for each
4770
<link linkend="child-properties">child property</link> that has
4588
4771
changed on an object. The signal's detail holds the property name.</para>
4591
4774
</para><variablelist role="params">
4592
4775
<varlistentry><term><parameter>widget</parameter> :</term>
4593
<listitem><simpara> the object which received the signal.
4776
<listitem><simpara> the object which received the signal
4594
4777
</simpara></listitem></varlistentry>
4595
4778
<varlistentry><term><parameter>pspec</parameter> :</term>
4596
<listitem><simpara> the <link linkend="GParamSpec"><type>GParamSpec</type></link> of the changed child property.
4779
<listitem><simpara> the <link linkend="GParamSpec"><type>GParamSpec</type></link> of the changed child property
4597
4780
</simpara></listitem></varlistentry>
4598
4781
<varlistentry><term><parameter>user_data</parameter> :</term>
4599
4782
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4600
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-client-event"/>The "client-event" signal</title>
4783
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-client-event"/>The <literal>::client-event</literal> signal</title>
4601
4784
<indexterm><primary>GtkWidget::client-event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4602
4785
<link linkend="GdkEventClient">GdkEventClient</link> *event,
4603
4786
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4692
4878
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> to stop other handlers from being invoked for the event.
4693
4879
<link linkend="FALSE:CAPS"><literal>FALSE</literal></link> to propagate the event further.
4694
4880
</simpara></listitem></varlistentry>
4695
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-direction-changed"/>The "direction-changed" signal</title>
4881
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-direction-changed"/>The <literal>::direction-changed</literal> signal</title>
4696
4882
<indexterm><primary>GtkWidget::direction-changed</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4697
<link linkend="GtkTextDirection">GtkTextDirection</link> arg1,
4698
<link linkend="gpointer">gpointer</link> user_data) : Run First</programlisting>
4883
<link linkend="GtkTextDirection">GtkTextDirection</link> previous_direction,
4884
<link linkend="gpointer">gpointer</link> user_data) : Run First</programlisting>
4886
The ::direction-changed signal is emitted when the text direction
4887
of a widget changes.</para>
4701
4890
</para><variablelist role="params">
4702
4891
<varlistentry><term><parameter>widget</parameter> :</term>
4703
<listitem><simpara>the object which received the signal.
4892
<listitem><simpara> the object on which the signal is emitted
4704
4893
</simpara></listitem></varlistentry>
4705
<varlistentry><term><parameter>arg1</parameter> :</term>
4894
<varlistentry><term><parameter>previous_direction</parameter> :</term>
4895
<listitem><simpara> the previous text direction of <parameter>widget</parameter>
4708
4896
</simpara></listitem></varlistentry>
4709
4897
<varlistentry><term><parameter>user_data</parameter> :</term>
4710
4898
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4711
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-begin"/>The "drag-begin" signal</title>
4899
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-begin"/>The <literal>::drag-begin</literal> signal</title>
4712
4900
<indexterm><primary>GtkWidget::drag-begin</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4713
4901
<link linkend="GdkDragContext">GdkDragContext</link> *drag_context,
4714
4902
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4716
The ::drag-begin signal is emitted on the drag source when a drag is started.
4717
A typical reason to connect to this signal is to set up a custom drag icon with
4718
<link linkend="gtk-drag-source-set-icon"><function>gtk_drag_source_set_icon()</function></link>.</para>
4904
The ::drag-begin signal is emitted on the drag source when a drag is
4905
started. A typical reason to connect to this signal is to set up a
4906
custom drag icon with <link linkend="gtk-drag-source-set-icon"><function>gtk_drag_source_set_icon()</function></link>.</para>
4721
4909
</para><variablelist role="params">
4722
4910
<varlistentry><term><parameter>widget</parameter> :</term>
4723
<listitem><simpara> the object which received the signal.
4911
<listitem><simpara> the object which received the signal
4724
4912
</simpara></listitem></varlistentry>
4725
4913
<varlistentry><term><parameter>drag_context</parameter> :</term>
4726
4914
<listitem><simpara> the drag context
4727
4915
</simpara></listitem></varlistentry>
4728
4916
<varlistentry><term><parameter>user_data</parameter> :</term>
4729
4917
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4730
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-data-delete"/>The "drag-data-delete" signal</title>
4918
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-data-delete"/>The <literal>::drag-data-delete</literal> signal</title>
4731
4919
<indexterm><primary>GtkWidget::drag-data-delete</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4732
4920
<link linkend="GdkDragContext">GdkDragContext</link> *drag_context,
4733
4921
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4790
4980
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4792
4982
The ::drag-data-received signal is emitted on the drop site when the dragged
4793
data has been received. If the data was received in order to determine whether
4794
the drop will be accepted, the handler is expected to call <link linkend="gdk-drag-status"><function>gdk_drag_status()</function></link>
4795
and <emphasis>not</emphasis> finish the drag. If the data was received in
4796
response to a ::drag-drop signal (and this is the last target to be received),
4797
the handler for this signal is expected to process the received data and then
4798
call <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link>, setting the <parameter>success</parameter> parameter depending on whether
4799
the data was processed successfully.
4983
data has been received. If the data was received in order to determine
4984
whether the drop will be accepted, the handler is expected to call
4985
<link linkend="gdk-drag-status"><function>gdk_drag_status()</function></link> and <emphasis>not</emphasis> finish the drag. If the
4986
data was received in response to a <link linkend="GtkWidget-drag-drop"><type>::drag-drop</type></link> signal (and this
4987
is the last target to be received), the handler for this signal is expected
4988
to process the received data and then call <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link>, setting the
4989
<parameter>success</parameter> parameter depending on whether the data was processed successfully.
4802
4992
The handler may inspect and modify <parameter>drag_context->action</parameter> before calling
4803
<link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link>, e.g. to implement <link linkend="GDK-ACTION-ASK:CAPS"><literal>GDK_ACTION_ASK</literal></link> as shown in the following
4993
<link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link>, e.g. to implement <link linkend="GDK-ACTION-ASK:CAPS"><literal>GDK_ACTION_ASK</literal></link> as shown in the
4805
4995
<informalexample><programlisting>
4807
4997
drag_data_received (GtkWidget *widget,
4875
5066
<link linkend="guint">guint</link> time,
4876
5067
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4878
The ::drag-drop signal is emitted on the drop site when the user drops the
4879
data onto the widget. The signal handler must determine whether the cursor
4880
position is in a drop zone or not. If it is not in a drop zone, it returns
4881
<link linkend="FALSE:CAPS"><literal>FALSE</literal></link> and no further processing is necessary. Otherwise, the handler returns
4882
<link linkend="TRUE:CAPS"><literal>TRUE</literal></link>. In this case, the handler must ensure that <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link> is called
4883
to let the source know that the drop is done. The call to <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link>
4884
can be done either directly or in a ::drag-data-received handler which gets
4885
triggered by calling <link linkend="gtk-drop-get-data"><function>gtk_drop_get_data()</function></link> to receive the data for one or more
4886
of the supported targets.</para>
5069
The ::drag-drop signal is emitted on the drop site when the user drops
5070
the data onto the widget. The signal handler must determine whether
5071
the cursor position is in a drop zone or not. If it is not in a drop
5072
zone, it returns <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> and no further processing is necessary.
5073
Otherwise, the handler returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>. In this case, the handler must
5074
ensure that <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link> is called to let the source know that
5075
the drop is done. The call to <link linkend="gtk-drag-finish"><function>gtk_drag_finish()</function></link> can be done either
5076
directly or in a <link linkend="GtkWidget-drag-data-received"><type>::drag-data-received</type></link> handler which gets
5077
triggered by calling <link linkend="gtk-drag-get-data"><function>gtk_drag_get_data()</function></link> to receive the data for one
5078
or more of the supported targets.</para>
4889
5081
</para><variablelist role="params">
4890
5082
<varlistentry><term><parameter>widget</parameter> :</term>
4891
<listitem><simpara> the object which received the signal.
5083
<listitem><simpara> the object which received the signal
4892
5084
</simpara></listitem></varlistentry>
4893
5085
<varlistentry><term><parameter>drag_context</parameter> :</term>
4894
5086
<listitem><simpara> the drag context
4907
5099
</simpara></listitem></varlistentry>
4908
5100
<varlistentry><term><parameter>user_data</parameter> :</term>
4909
5101
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4910
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-end"/>The "drag-end" signal</title>
5102
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-end"/>The <literal>::drag-end</literal> signal</title>
4911
5103
<indexterm><primary>GtkWidget::drag-end</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4912
5104
<link linkend="GdkDragContext">GdkDragContext</link> *drag_context,
4913
5105
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
4915
The ::drag-end signal is emitted on the drag source when a drag is finished.
4916
A typical reason to connect to this signal is to undo things done in ::drag-begin.</para>
4919
</para><variablelist role="params">
4920
<varlistentry><term><parameter>widget</parameter> :</term>
4921
<listitem><simpara> the object which received the signal.
4922
</simpara></listitem></varlistentry>
4923
<varlistentry><term><parameter>drag_context</parameter> :</term>
4924
<listitem><simpara> the drag context
4925
</simpara></listitem></varlistentry>
4926
<varlistentry><term><parameter>user_data</parameter> :</term>
4927
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
4928
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-leave"/>The "drag-leave" signal</title>
5107
The ::drag-end signal is emitted on the drag source when a drag is
5108
finished. A typical reason to connect to this signal is to undo
5109
things done in <link linkend="GtkWidget-drag-begin"><type>::drag-begin</type></link>.</para>
5112
</para><variablelist role="params">
5113
<varlistentry><term><parameter>widget</parameter> :</term>
5114
<listitem><simpara> the object which received the signal
5115
</simpara></listitem></varlistentry>
5116
<varlistentry><term><parameter>drag_context</parameter> :</term>
5117
<listitem><simpara> the drag context
5118
</simpara></listitem></varlistentry>
5119
<varlistentry><term><parameter>user_data</parameter> :</term>
5120
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5121
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-drag-failed"/>The <literal>::drag-failed</literal> signal</title>
5122
<indexterm role="2.12"><primary>GtkWidget::drag-failed</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5123
<link linkend="GdkDragContext">GdkDragContext</link> *drag_context,
5124
<link linkend="GtkDragResult">GtkDragResult</link> result,
5125
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5127
The ::drag-failed signal is emitted on the drag source when a drag has
5128
failed. The signal handler may hook custom code to handle a failed DND
5129
operation based on the type of error, it returns <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> is the failure has
5130
been already handled (not showing the default "drag operation failed"
5131
animation), otherwise it returns <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>.</para>
5134
</para><variablelist role="params">
5135
<varlistentry><term><parameter>widget</parameter> :</term>
5136
<listitem><simpara> the object which received the signal
5137
</simpara></listitem></varlistentry>
5138
<varlistentry><term><parameter>drag_context</parameter> :</term>
5139
<listitem><simpara> the drag context
5140
</simpara></listitem></varlistentry>
5141
<varlistentry><term><parameter>result</parameter> :</term>
5142
<listitem><simpara> the result of the drag operation
5143
</simpara></listitem></varlistentry>
5144
<varlistentry><term><parameter>user_data</parameter> :</term>
5145
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5146
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the failed drag operation has been already handled.
5148
</simpara></listitem></varlistentry>
5149
</variablelist><para>Since 2.12
5150
</para></refsect2><refsect2><title><anchor id="GtkWidget-drag-leave"/>The <literal>::drag-leave</literal> signal</title>
4929
5151
<indexterm><primary>GtkWidget::drag-leave</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
4930
5152
<link linkend="GdkDragContext">GdkDragContext</link> *drag_context,
4931
5153
<link linkend="guint">guint</link> time,
5264
5486
</simpara></listitem></varlistentry>
5265
5487
<varlistentry><term><parameter>user_data</parameter> :</term>
5266
5488
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5267
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-hierarchy-changed"/>The "hierarchy-changed" signal</title>
5489
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-hierarchy-changed"/>The <literal>::hierarchy-changed</literal> signal</title>
5268
5490
<indexterm><primary>GtkWidget::hierarchy-changed</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5269
<link linkend="GtkWidget">GtkWidget</link> *widget2,
5270
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5272
Emitted when there is a chance in the hierarchy to
5273
which a widget belong. More precisely, a widget is
5491
<link linkend="GtkWidget">GtkWidget</link> *previous_toplevel,
5492
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5494
The ::hierarchy-changed signal is emitted when the
5495
anchored state of a widget changes. A widget is anchored,
5496
if it has an ancestor that is a toplevel window.</para>
5498
Emitted when there is a change in the hierarchy to
5499
which a widget belongs. More precisely, a widget is
5274
5500
<firstterm>anchored</firstterm> when its toplevel
5275
5501
ancestor is a <link linkend="GtkWindow"><type>GtkWindow</type></link>. This signal is emitted when
5276
5502
a widget changes from un-anchored to anchored or vice-versa.
5277
5503
</para><variablelist role="params">
5278
5504
<varlistentry><term><parameter>widget</parameter> :</term>
5279
<listitem><simpara>the object which received the signal.
5505
<listitem><simpara> the object on which the signal is emitted
5280
5506
</simpara></listitem></varlistentry>
5281
<varlistentry><term><parameter>widget2</parameter> :</term>
5507
<varlistentry><term><parameter>previous_toplevel</parameter> :</term>
5508
<listitem><simpara> the previous toplevel ancestor, or <link linkend="NULL:CAPS"><literal>NULL</literal></link>
5509
if the widget was previously unanchored
5284
5510
</simpara></listitem></varlistentry>
5285
5511
<varlistentry><term><parameter>user_data</parameter> :</term>
5286
5512
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5287
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-key-press-event"/>The "key-press-event" signal</title>
5513
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-key-press-event"/>The <literal>::key-press-event</literal> signal</title>
5288
5514
<indexterm><primary>GtkWidget::key-press-event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5289
5515
<link linkend="GdkEventKey">GdkEventKey</link> *event,
5290
5516
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5320
5546
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> to stop other handlers from being invoked for the event. <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> to propagate the event further.
5322
5548
</simpara></listitem></varlistentry>
5323
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-leave-notify-event"/>The "leave-notify-event" signal</title>
5549
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-keynav-failed"/>The <literal>::keynav-failed</literal> signal</title>
5550
<indexterm role="2.12"><primary>GtkWidget::keynav-failed</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5551
<link linkend="GtkDirectionType">GtkDirectionType</link> direction,
5552
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5554
Gets emitted if keyboard navigation fails.
5555
See <link linkend="gtk-widget-keynav-failed"><function>gtk_widget_keynav_failed()</function></link> for details.</para>
5558
</para><variablelist role="params">
5559
<varlistentry><term><parameter>widget</parameter> :</term>
5560
<listitem><simpara> the object which received the signal
5561
</simpara></listitem></varlistentry>
5562
<varlistentry><term><parameter>direction</parameter> :</term>
5563
<listitem><simpara> the direction of movement
5564
</simpara></listitem></varlistentry>
5565
<varlistentry><term><parameter>user_data</parameter> :</term>
5566
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5567
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if stopping keyboard navigation is fine, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link>
5568
if the emitting widget should try to handle the keyboard
5569
navigation attempt in its parent container(s).
5571
</simpara></listitem></varlistentry>
5572
</variablelist><para>Since 2.12
5573
</para></refsect2><refsect2><title><anchor id="GtkWidget-leave-notify-event"/>The <literal>::leave-notify-event</literal> signal</title>
5324
5574
<indexterm><primary>GtkWidget::leave-notify-event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5325
5575
<link linkend="GdkEventCrossing">GdkEventCrossing</link> *event,
5326
5576
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5516
5782
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara><link linkend="TRUE:CAPS"><literal>TRUE</literal></link> to stop other handlers from being invoked for the event. <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> to propagate the event further.
5518
5784
</simpara></listitem></varlistentry>
5519
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-realize"/>The "realize" signal</title>
5785
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-query-tooltip"/>The <literal>::query-tooltip</literal> signal</title>
5786
<indexterm role="2.12"><primary>GtkWidget::query-tooltip</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5787
<link linkend="gint">gint</link> x,
5788
<link linkend="gint">gint</link> y,
5789
<link linkend="gboolean">gboolean</link> keyboard_mode,
5790
<link linkend="GtkTooltip">GtkTooltip</link> *tooltip,
5791
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5793
Emitted when the <link linkend="GtkSettings--gtk-tooltip-timeout"><type>:gtk-tooltip-timeout</type></link> has expired with
5794
the cursor hovering "above" <parameter>widget</parameter>; or emitted when <parameter>widget</parameter> got
5795
focus in keyboard mode.
5798
Using the given coordinates, the signal handler should determine
5799
whether a tooltip should be shown for <parameter>widget</parameter>. If this is the case
5800
<link linkend="TRUE:CAPS"><literal>TRUE</literal></link> should be returned, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise. Note that if
5801
<parameter>keyboard_mode</parameter> is <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, the values of <parameter>x</parameter> and <parameter>y</parameter> are undefined and
5805
The signal handler is free to manipulate <parameter>tooltip</parameter> with the therefore
5806
destined function calls.</para>
5809
</para><variablelist role="params">
5810
<varlistentry><term><parameter>widget</parameter> :</term>
5811
<listitem><simpara> the object which received the signal
5812
</simpara></listitem></varlistentry>
5813
<varlistentry><term><parameter>x</parameter> :</term>
5814
<listitem><simpara> the x coordinate of the cursor position where the request has been
5815
emitted, relative to <parameter>widget->window</parameter>
5816
</simpara></listitem></varlistentry>
5817
<varlistentry><term><parameter>y</parameter> :</term>
5818
<listitem><simpara> the y coordinate of the cursor position where the request has been
5819
emitted, relative to <parameter>widget->window</parameter>
5820
</simpara></listitem></varlistentry>
5821
<varlistentry><term><parameter>keyboard_mode</parameter> :</term>
5822
<listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if the tooltip was trigged using the keyboard
5823
</simpara></listitem></varlistentry>
5824
<varlistentry><term><parameter>tooltip</parameter> :</term>
5825
<listitem><simpara> a <link linkend="GtkTooltip"><type>GtkTooltip</type></link>
5826
</simpara></listitem></varlistentry>
5827
<varlistentry><term><parameter>user_data</parameter> :</term>
5828
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5829
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> <link linkend="TRUE:CAPS"><literal>TRUE</literal></link> if <parameter>tooltip</parameter> should be shown right now, <link linkend="FALSE:CAPS"><literal>FALSE</literal></link> otherwise.
5831
</simpara></listitem></varlistentry>
5832
</variablelist><para>Since 2.12
5833
</para></refsect2><refsect2><title><anchor id="GtkWidget-realize"/>The <literal>::realize</literal> signal</title>
5520
5834
<indexterm><primary>GtkWidget::realize</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5521
5835
<link linkend="gpointer">gpointer</link> user_data) : Run First</programlisting>
5528
5842
</simpara></listitem></varlistentry>
5529
5843
<varlistentry><term><parameter>user_data</parameter> :</term>
5530
5844
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5531
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-screen-changed"/>The "screen-changed" signal</title>
5845
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-screen-changed"/>The <literal>::screen-changed</literal> signal</title>
5532
5846
<indexterm><primary>GtkWidget::screen-changed</primary></indexterm><programlisting><link linkend="void">void</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5533
<link linkend="GdkScreen">GdkScreen</link> *arg1,
5534
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5847
<link linkend="GdkScreen">GdkScreen</link> *previous_screen,
5848
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>
5850
The ::screen-changed signal gets emitted when the
5851
screen of a widget has changed.</para>
5537
5854
</para><variablelist role="params">
5538
5855
<varlistentry><term><parameter>widget</parameter> :</term>
5539
<listitem><simpara>the object which received the signal.
5856
<listitem><simpara> the object on which the signal is emitted
5540
5857
</simpara></listitem></varlistentry>
5541
<varlistentry><term><parameter>arg1</parameter> :</term>
5858
<varlistentry><term><parameter>previous_screen</parameter> :</term>
5859
<listitem><simpara> the previous screen, or <link linkend="NULL:CAPS"><literal>NULL</literal></link> if the
5860
widget was not associated with a screen before
5544
5861
</simpara></listitem></varlistentry>
5545
5862
<varlistentry><term><parameter>user_data</parameter> :</term>
5546
5863
<listitem><simpara>user data set when the signal handler was connected.</simpara></listitem></varlistentry>
5547
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-scroll-event"/>The "scroll-event" signal</title>
5864
</variablelist></refsect2><refsect2><title><anchor id="GtkWidget-scroll-event"/>The <literal>::scroll-event</literal> signal</title>
5548
5865
<indexterm><primary>GtkWidget::scroll-event</primary></indexterm><programlisting><link linkend="gboolean">gboolean</link> user_function (<link linkend="GtkWidget">GtkWidget</link> *widget,
5549
5866
<link linkend="GdkEventScroll">GdkEventScroll</link> *event,
5550
5867
<link linkend="gpointer">gpointer</link> user_data) : Run Last</programlisting>