~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to docs/reference/gdk/html/gdk-Windows.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2010-02-24 10:01:31 UTC
  • mfrom: (1.10.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100224100131-ffa6289zwkyknce7
Tags: 2.19.6-1
* New upstream development release:
  + debian/patches/070_mandatory-relibtoolize.patch:
    - Regenerated for the new version.
  + debian/rules,
    debian/libgtk-directfb-2.0-0.symbols,
    debian/libgtk2.0-0.symbols:
    - Update SHVER to 2.19.6 for the new API and add new symbols.
* debian/patches/090_directfb-map-virtual-modifiers.patch:
  + Update to add just another stub to fix the build.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
<link rel="up" href="reference.html" title="API Reference">
9
9
<link rel="prev" href="gdk-Cursors.html" title="Cursors">
10
10
<link rel="next" href="gdk-Events.html" title="Events">
11
 
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
 
11
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="reference" href="reference.html" title="API Reference">
14
14
<link rel="index" href="api-index-full.html" title="Index of all symbols">
388
388
<a name="gdk-Windows.description"></a><h2>Description</h2>
389
389
<p>
390
390
A <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> is a rectangular region on the screen. It's a low-level object,
391
 
used to implement high-level objects such as <span class="type">GtkWidget</span> and <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> on the
 
391
used to implement high-level objects such as <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="type">GtkWidget</span></a> and <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> on the
392
392
GTK+ level. A <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> is a toplevel window, the thing a user might think of
393
393
as a "window" with a titlebar and so on; a <a href="http://library.gnome.org/devel/gtk/unstable/GtkWindow.html"><span class="type">GtkWindow</span></a> may contain many <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>.
394
394
For example, each <a href="http://library.gnome.org/devel/gtk/unstable/GtkButton.html"><span class="type">GtkButton</span></a> has a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> associated with it.
404
404
</p>
405
405
<div class="example">
406
406
<a name="composited-window-example"></a><p class="title"><b>Example 7. Composited windows</b></p>
407
 
<div class="example-contents">
408
 
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
409
 
    <tbody>
410
 
      <tr>
411
 
        <td class="listing_lines" align="right"><pre>1
412
 
2
413
 
3
414
 
4
415
 
5
416
 
6
417
 
7
418
 
8
419
 
9
420
 
10
421
 
11
422
 
12
423
 
13
424
 
14
425
 
15
426
 
16
427
 
17
428
 
18
429
 
19
430
 
20
431
 
21
432
 
22
433
 
23
434
 
24
435
 
25
436
 
26
437
 
27
438
 
28
439
 
29
440
 
30
441
 
31
442
 
32
443
 
33
444
 
34
445
 
35
446
 
36
447
 
37
448
 
38
449
 
39
450
 
40
451
 
41
452
 
42
453
 
43
454
 
44
455
 
45
456
 
46
457
 
47
458
 
48
459
 
49
460
 
50
461
 
51
462
 
52
463
 
53
464
 
54
465
 
55
466
 
56
467
 
57
468
 
58
469
 
59
470
 
60
471
 
61
472
 
62
473
 
63
474
 
64
475
 
65
476
 
66
477
 
67
478
 
68
479
 
69
480
 
70
481
 
71
482
 
72
483
 
73
484
 
74
485
 
75
486
 
76
487
 
77
488
 
78
489
 
79
490
 
80
491
 
81
492
 
82
493
 
83
494
 
84
495
 
85
496
 
86
497
 
87
498
 
88
499
 
89
500
 
90
501
 
91
502
 
92
503
 
93
504
 
94
505
 
95
506
 
96
507
 
97
508
 
98
509
 
99
510
 
100
511
 
101
512
 
102
513
 
103
514
 
104
515
 
105
516
 
106
517
 
107
518
 
108
519
 
109
520
 
110
521
 
111
522
 
112
523
 
113</pre></td>
524
 
        <td class="listing_code"><pre class="programlisting"><span class="preproc">#include </span><span class="number">&lt;gtk/gtk.h&gt;</span>
525
 
<span class="comment">/*</span><span class="comment"> The expose event handler for the event box.</span>
526
 
<span class="comment"> *</span>
527
 
<span class="comment"> * This function simply draws a transparency onto a widget on the area</span>
528
 
<span class="comment"> * for which it receives expose events.  This is intended to give the</span>
529
 
<span class="comment"> * event box a &quot;transparent&quot; background.</span>
530
 
<span class="comment"> *</span>
531
 
<span class="comment"> * In order for this to work properly, the widget must have an RGBA</span>
532
 
<span class="comment"> * colourmap.  The widget should also be set as app-paintable since it</span>
533
 
<span class="comment"> * doesn't make sense for GTK+ to draw a background if we are drawing it</span>
534
 
<span class="comment"> * (and because GTK+ might actually replace our transparency with its</span>
535
 
<span class="comment"> * default background colour).</span>
536
 
<span class="comment"> </span><span class="comment">*/</span>
537
 
<span class="type">static</span> gboolean
 
407
<div class="example-contents"><pre class="programlisting">
 
408
#include &lt;gtk/gtk.h&gt;
 
409
/* The expose event handler for the event box.
 
410
 *
 
411
 * This function simply draws a transparency onto a widget on the area
 
412
 * for which it receives expose events.  This is intended to give the
 
413
 * event box a "transparent" background.
 
414
 *
 
415
 * In order for this to work properly, the widget must have an RGBA
 
416
 * colourmap.  The widget should also be set as app-paintable since it
 
417
 * doesn't make sense for GTK+ to draw a background if we are drawing it
 
418
 * (and because GTK+ might actually replace our transparency with its
 
419
 * default background colour).
 
420
 */
 
421
static gboolean
538
422
transparent_expose (GtkWidget      *widget,
539
423
                    GdkEventExpose *event)
540
424
{
544
428
  gdk_cairo_region (cr, event-&gt;region);
545
429
  cairo_fill (cr);
546
430
  cairo_destroy (cr);
547
 
  <span class="keyword">return</span> FALSE;
 
431
  return FALSE;
548
432
}
549
 
<span class="comment">/*</span><span class="comment"> The expose event handler for the window.</span>
550
 
<span class="comment"> *</span>
551
 
<span class="comment"> * This function performs the actual compositing of the event box onto</span>
552
 
<span class="comment"> * the already-existing background of the window at 50% normal opacity.</span>
553
 
<span class="comment"> *</span>
554
 
<span class="comment"> * In this case we do not want app-paintable to be set on the widget</span>
555
 
<span class="comment"> * since we want it to draw its own (red) background. Because of this,</span>
556
 
<span class="comment"> * however, we must ensure that we use g_signal_connect_after so that</span>
557
 
<span class="comment"> * this handler is called after the red has been drawn. If it was</span>
558
 
<span class="comment"> * called before then GTK would just blindly paint over our work.</span>
559
 
<span class="comment"> *</span>
560
 
<span class="comment"> * Note: if the child window has children, then you need a cairo 1.6</span>
561
 
<span class="comment"> * feature to make this work correctly.</span>
562
 
<span class="comment"> </span><span class="comment">*/</span>
563
 
<span class="type">static</span> gboolean
 
433
/* The expose event handler for the window.
 
434
 *
 
435
 * This function performs the actual compositing of the event box onto
 
436
 * the already-existing background of the window at 50% normal opacity.
 
437
 *
 
438
 * In this case we do not want app-paintable to be set on the widget
 
439
 * since we want it to draw its own (red) background. Because of this,
 
440
 * however, we must ensure that we use g_signal_connect_after so that
 
441
 * this handler is called after the red has been drawn. If it was
 
442
 * called before then GTK would just blindly paint over our work.
 
443
 *
 
444
 * Note: if the child window has children, then you need a cairo 1.6
 
445
 * feature to make this work correctly.
 
446
 */
 
447
static gboolean
564
448
window_expose_event (GtkWidget      *widget,
565
449
                     GdkEventExpose *event)
566
450
{
567
451
  GdkRegion *region;
568
452
  GtkWidget *child;
569
453
  cairo_t *cr;
570
 
  <span class="comment">/*</span><span class="comment"> get our child (in this case, the event box) </span><span class="comment">*/</span>
 
454
  /* get our child (in this case, the event box) */
571
455
  child = gtk_bin_get_child (GTK_BIN (widget));
572
 
  <span class="comment">/*</span><span class="comment"> create a cairo context to draw to the window </span><span class="comment">*/</span>
 
456
  /* create a cairo context to draw to the window */
573
457
  cr = gdk_cairo_create (widget-&gt;window);
574
 
  <span class="comment">/*</span><span class="comment"> the source data is the (composited) event box </span><span class="comment">*/</span>
 
458
  /* the source data is the (composited) event box */
575
459
  gdk_cairo_set_source_pixmap (cr, child-&gt;window,
576
460
                               child-&gt;allocation.x,
577
461
                               child-&gt;allocation.y);
578
 
  <span class="comment">/*</span><span class="comment"> draw no more than our expose event intersects our child </span><span class="comment">*/</span>
 
462
  /* draw no more than our expose event intersects our child */
579
463
  region = gdk_region_rectangle (&amp;child-&gt;allocation);
580
464
  gdk_region_intersect (region, event-&gt;region);
581
465
  gdk_cairo_region (cr, region);
582
466
  cairo_clip (cr);
583
 
  <span class="comment">/*</span><span class="comment"> composite, with a 50% opacity </span><span class="comment">*/</span>
 
467
  /* composite, with a 50% opacity */
584
468
  cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
585
 
  cairo_paint_with_alpha (cr, <span class="number">0.5</span>);
586
 
  <span class="comment">/*</span><span class="comment"> we're done </span><span class="comment">*/</span>
 
469
  cairo_paint_with_alpha (cr, 0.5);
 
470
  /* we're done */
587
471
  cairo_destroy (cr);
588
 
  <span class="keyword">return</span> FALSE;
 
472
  return FALSE;
589
473
}
590
 
<span class="type">int</span>
591
 
main (<span class="type">int</span> argc, <span class="type">char</span> **argv)
 
474
int
 
475
main (int argc, char **argv)
592
476
{
593
477
  GtkWidget *window, *event, *button;
594
478
  GdkScreen *screen;
595
479
  GdkColormap *rgba;
596
480
  GdkColor red;
597
481
  gtk_init (&amp;argc, &amp;argv);
598
 
  <span class="comment">/*</span><span class="comment"> Make the widgets </span><span class="comment">*/</span>
599
 
  button = gtk_button_new_with_label (<span class="number">&quot;A Button&quot;</span>);
 
482
  /* Make the widgets */
 
483
  button = gtk_button_new_with_label ("A Button");
600
484
  event = gtk_event_box_new ();
601
485
  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
602
 
  <span class="comment">/*</span><span class="comment"> Put a red background on the window </span><span class="comment">*/</span>
603
 
  gdk_color_parse (<span class="number">&quot;red&quot;</span>, &amp;red);
 
486
  /* Put a red background on the window */
 
487
  gdk_color_parse ("red", &amp;red);
604
488
  gtk_widget_modify_bg (window, GTK_STATE_NORMAL, &amp;red);
605
 
  <span class="comment">/*</span><span class="comment"> Set the colourmap for the event box.</span>
606
 
<span class="comment">   * Must be done before the event box is realised.</span>
607
 
<span class="comment">   </span><span class="comment">*/</span>
 
489
  /* Set the colourmap for the event box.
 
490
   * Must be done before the event box is realised.
 
491
   */
608
492
  screen = gtk_widget_get_screen (event);
609
493
  rgba = gdk_screen_get_rgba_colormap (screen);
610
494
  gtk_widget_set_colormap (event, rgba);
611
 
  <span class="comment">/*</span><span class="comment"> Set our event box to have a fully-transparent background</span>
612
 
<span class="comment">   * drawn on it. Currently there is no way to simply tell GTK+</span>
613
 
<span class="comment">   * that &quot;transparency&quot; is the background colour for a widget.</span>
614
 
<span class="comment">   </span><span class="comment">*/</span>
 
495
  /* Set our event box to have a fully-transparent background
 
496
   * drawn on it. Currently there is no way to simply tell GTK+
 
497
   * that "transparency" is the background colour for a widget.
 
498
   */
615
499
  gtk_widget_set_app_paintable (GTK_WIDGET (event), TRUE);
616
 
  g_signal_connect (event, <span class="number">&quot;expose-event&quot;</span>,
617
 
                    G_CALLBACK (transparent_expose), <span class="number">NULL</span>);
618
 
  <span class="comment">/*</span><span class="comment"> Put them inside one another </span><span class="comment">*/</span>
619
 
  gtk_container_set_border_width (GTK_CONTAINER (window), <span class="number">10</span>);
 
500
  g_signal_connect (event, "expose-event",
 
501
                    G_CALLBACK (transparent_expose), NULL);
 
502
  /* Put them inside one another */
 
503
  gtk_container_set_border_width (GTK_CONTAINER (window), 10);
620
504
  gtk_container_add (GTK_CONTAINER (window), event);
621
505
  gtk_container_add (GTK_CONTAINER (event), button);
622
 
  <span class="comment">/*</span><span class="comment"> Realise and show everything </span><span class="comment">*/</span>
 
506
  /* Realise and show everything */
623
507
  gtk_widget_show_all (window);
624
 
  <span class="comment">/*</span><span class="comment"> Set the event box GdkWindow to be composited.</span>
625
 
<span class="comment">   * Obviously must be performed after event box is realised.</span>
626
 
<span class="comment">   </span><span class="comment">*/</span>
 
508
  /* Set the event box GdkWindow to be composited.
 
509
   * Obviously must be performed after event box is realised.
 
510
   */
627
511
  gdk_window_set_composited (event-&gt;window, TRUE);
628
 
  <span class="comment">/*</span><span class="comment"> Set up the compositing handler.</span>
629
 
<span class="comment">   * Note that we do _after_ so that the normal (red) background is drawn</span>
630
 
<span class="comment">   * by gtk before our compositing occurs.</span>
631
 
<span class="comment">   </span><span class="comment">*/</span>
632
 
  g_signal_connect_after (window, <span class="number">&quot;expose-event&quot;</span>,
633
 
                          G_CALLBACK (window_expose_event), <span class="number">NULL</span>);
 
512
  /* Set up the compositing handler.
 
513
   * Note that we do _after_ so that the normal (red) background is drawn
 
514
   * by gtk before our compositing occurs.
 
515
   */
 
516
  g_signal_connect_after (window, "expose-event",
 
517
                          G_CALLBACK (window_expose_event), NULL);
634
518
  gtk_main ();
635
 
  <span class="keyword">return</span> <span class="number">0</span>;
636
 
}</pre></td>
637
 
      </tr>
638
 
    </tbody>
639
 
  </table>
640
 
</div>
 
519
  return 0;
 
520
}
641
521
 
 
522
</pre></div>
642
523
</div>
643
524
<br class="example-break"><p>
644
525
In the example <a class="xref" href="gdk-Windows.html#composited-window-example" title="Example 7. Composited windows">Example 7, “Composited windows”</a>, a button is
912
793
Here's an example of how the terminal example would be implemented, assuming
913
794
a terminal area widget called "terminal" and a toplevel window "toplevel":
914
795
</p>
915
 
<div class="informalexample">
916
 
  <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
917
 
    <tbody>
918
 
      <tr>
919
 
        <td class="listing_lines" align="right"><pre>1
920
 
2
921
 
3
922
 
4
923
 
5
924
 
6
925
 
7
926
 
8
927
 
9
928
 
10
929
 
11
930
 
12
931
 
13</pre></td>
932
 
        <td class="listing_code"><pre class="programlisting">GdkGeometry hints;
933
 
        hints.base_width = terminal-&gt;char_width;
 
796
<div class="informalexample"><pre class="programlisting">
 
797
        GdkGeometry hints;
 
798
        hints.base_width = terminal-&gt;char_width;
934
799
        hints.base_height = terminal-&gt;char_height;
935
800
        hints.min_width = terminal-&gt;char_width;
936
801
        hints.min_height = terminal-&gt;char_height;
937
802
        hints.width_inc = terminal-&gt;char_width;
938
803
        hints.height_inc = terminal-&gt;char_height;
939
 
        gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
940
 
                                       GTK_WIDGET (terminal),
941
 
                                       &amp;hints,
942
 
                                       GDK_HINT_RESIZE_INC |
 
804
        gtk_window_set_geometry_hints (GTK_WINDOW (toplevel),
 
805
                                       GTK_WIDGET (terminal),
 
806
                                       &amp;hints,
 
807
                                       GDK_HINT_RESIZE_INC |
943
808
                                       GDK_HINT_MIN_SIZE |
944
 
                                       GDK_HINT_BASE_SIZE);</pre></td>
945
 
      </tr>
946
 
    </tbody>
947
 
  </table>
948
 
</div>
949
 
 
 
809
                                       GDK_HINT_BASE_SIZE);
 
810
</pre></div>
950
811
<p>
951
812
</p>
952
813
<p>
1526
1387
<p><code class="literal">gdk_window_ref</code> is deprecated and should not be used in newly-written code.</p>
1527
1388
</div>
1528
1389
<p>
1529
 
Deprecated equivalent of <a href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-ref"><code class="function">g_object_ref()</code></a>
 
1390
Deprecated equivalent of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>
1530
1391
</p>
1531
1392
<div class="variablelist"><table border="0">
1532
1393
<col align="left" valign="top">
1547
1408
<p><code class="literal">gdk_window_unref</code> is deprecated and should not be used in newly-written code.</p>
1548
1409
</div>
1549
1410
<p>
1550
 
Deprecated equivalent of <a href="/usr/share/gtk-doc/html/libmissioncontrol-server/libmissioncontrol-server-mcd-debug.html#g-object-unref"><code class="function">g_object_unref()</code></a>
 
1411
Deprecated equivalent of <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>
1551
1412
</p>
1552
1413
</div>
1553
1414
<hr>
1619
1480
is <a class="link" href="gdk-Windows.html#gdk-window-hide" title="gdk_window_hide ()"><code class="function">gdk_window_hide()</code></a>.
1620
1481
</p>
1621
1482
<p>
1622
 
When implementing a <span class="type">GtkWidget</span>, you should call this function on the widget's
 
1483
When implementing a <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="type">GtkWidget</span></a>, you should call this function on the widget's
1623
1484
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> as part of the "map" method.</p>
1624
1485
<div class="variablelist"><table border="0">
1625
1486
<col align="left" valign="top">
1660
1521
For toplevel windows, withdraws them, so they will no longer be
1661
1522
known to the window manager; for all windows, unmaps them, so
1662
1523
they won't be displayed. Normally done automatically as
1663
 
part of <code class="function">gtk_widget_hide()</code>.</p>
 
1524
part of <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-hide"><code class="function">gtk_widget_hide()</code></a>.</p>
1664
1525
<div class="variablelist"><table border="0">
1665
1526
<col align="left" valign="top">
1666
1527
<tbody><tr>
2652
2513
</tr>
2653
2514
<tr>
2654
2515
<td><p><span class="term"><em class="parameter"><code>sibling</code></em> :</span></p></td>
2655
 
<td> a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that is a sibling of <em class="parameter"><code>window</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
2656
 
</td>
 
2516
<td> a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> that is a sibling of <em class="parameter"><code>window</code></em>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
2657
2517
</tr>
2658
2518
<tr>
2659
2519
<td><p><span class="term"><em class="parameter"><code>above</code></em> :</span></p></td>
2928
2788
Therefore in most cases, application code need not call
2929
2789
<a class="link" href="gdk-Windows.html#gdk-window-begin-paint-region" title="gdk_window_begin_paint_region ()"><code class="function">gdk_window_begin_paint_region()</code></a>. (You can disable the automatic
2930
2790
calls around expose events on a widget-by-widget basis by calling
2931
 
<code class="function">gtk_widget_set_double_buffered()</code>.)
 
2791
<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-set-double-buffered"><code class="function">gtk_widget_set_double_buffered()</code></a>.)
2932
2792
</p>
2933
2793
<p>
2934
2794
If you call this function multiple times before calling the
2996
2856
</tr>
2997
2857
<tr>
2998
2858
<td><p><span class="term"><em class="parameter"><code>rect</code></em> :</span></p></td>
2999
 
<td> rectangle to invalidate or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to invalidate the whole
3000
 
     window
3001
 
</td>
 
2859
<td>allow-none. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
3002
2860
</tr>
3003
2861
<tr>
3004
2862
<td><p><span class="term"><em class="parameter"><code>invalidate_children</code></em> :</span></p></td>
3343
3201
<p>
3344
3202
For most purposes this function is deprecated in favor of
3345
3203
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-set-data"><code class="function">g_object_set_data()</code></a>. However, for historical reasons GTK+ stores
3346
 
the <span class="type">GtkWidget</span> that owns a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> as user data on the
 
3204
the <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="type">GtkWidget</span></a> that owns a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> as user data on the
3347
3205
<a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>. So, custom widget implementations should use
3348
3206
this function for that. If GTK+ receives an event for a <a class="link" href="gdk-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>,
3349
3207
and the user data for the window is non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, GTK+ will assume the
3350
 
user data is a <span class="type">GtkWidget</span>, and forward the event to that widget.</p>
 
3208
user data is a <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="type">GtkWidget</span></a>, and forward the event to that widget.</p>
3351
3209
<div class="variablelist"><table border="0">
3352
3210
<col align="left" valign="top">
3353
3211
<tbody>
3793
3651
</tr>
3794
3652
<tr>
3795
3653
<td><p><span class="term"><em class="parameter"><code>mask</code></em> :</span></p></td>
3796
 
<td> shape mask, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
3797
 
</td>
 
3654
<td> shape mask, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
3798
3655
</tr>
3799
3656
<tr>
3800
3657
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
4042
3899
                                                         const <a class="link" href="gdk-Colormaps-and-Colors.html#GdkColor" title="GdkColor"><span class="returnvalue">GdkColor</span></a> *color);</pre>
4043
3900
<p>
4044
3901
Sets the background color of <em class="parameter"><code>window</code></em>. (However, when using GTK+,
4045
 
set the background of a widget with <code class="function">gtk_widget_modify_bg()</code> - if
 
3902
set the background of a widget with <a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#gtk-widget-modify-bg"><code class="function">gtk_widget_modify_bg()</code></a> - if
4046
3903
you're an application - or <a href="http://library.gnome.org/devel/gtk/unstable/GtkStyle.html#gtk-style-set-background"><code class="function">gtk_style_set_background()</code></a> - if you're
4047
3904
implementing a custom widget.)
4048
3905
</p>
4106
3963
</tr>
4107
3964
<tr>
4108
3965
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
4109
 
<td> a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
4110
 
</td>
 
3966
<td> a <a class="link" href="gdk-Bitmaps-and-Pixmaps.html#GdkPixmap"><span class="type">GdkPixmap</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
4111
3967
</tr>
4112
3968
<tr>
4113
3969
<td><p><span class="term"><em class="parameter"><code>parent_relative</code></em> :</span></p></td>
6082
5938
</div>
6083
5939
<div class="footer">
6084
5940
<hr>
6085
 
          Generated by GTK-Doc V1.12</div>
 
5941
          Generated by GTK-Doc V1.13</div>
6086
5942
</body>
6087
5943
</html>
 
 
b'\\ No newline at end of file'