~paulbrianstewart/ubuntu/oneiric/gcompris/825448-Spelling-And-Grammar-Error

« back to all changes in this revision

Viewing changes to src/goocanvas/src/goocanvaswidget.c

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2010-06-27 22:51:30 UTC
  • mfrom: (1.1.16 upstream) (5.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100627225130-mf7h4m5r8m7bd9fb
Tags: 9.3-1
* New upstream release.
* Drop GTK_DISABLE_DEPRECATED patch, useless for now.
* Provide RELEASE_NOTE_9.3.txt downloaded from sourceforge.
* New voice package for Asturian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
 * Creates a new widget item.
99
99
 *
100
100
 * <!--PARAMETERS-->
101
 
 * 
 
101
 *
102
102
 * Here's an example showing how to create an entry widget centered at (100.0,
103
103
 * 100.0):
104
104
 *
109
109
 *                                                "anchor", GTK_ANCHOR_CENTER,
110
110
 *                                                NULL);
111
111
 * </programlisting></informalexample>
112
 
 * 
 
112
 *
113
113
 * Returns: a new widget item.
114
114
 **/
115
115
GooCanvasItem*
253
253
 
254
254
      if (simple->canvas)
255
255
        {
 
256
#if GTK_CHECK_VERSION(2, 19, 0)
 
257
          if (gtk_widget_get_realized (GTK_WIDGET(simple->canvas)))
 
258
#else
256
259
          if (GTK_WIDGET_REALIZED (simple->canvas))
 
260
#endif
257
261
            gtk_widget_set_parent_window (widget,
258
262
                                          simple->canvas->canvas_window);
259
263
 
382
386
 
383
387
          if (witem->widget)
384
388
            {
 
389
#if GTK_CHECK_VERSION(2, 19, 0)
 
390
              if (gtk_widget_get_realized (GTK_WIDGET(simple->canvas)))
 
391
#else
385
392
              if (GTK_WIDGET_REALIZED (simple->canvas))
 
393
#endif
386
394
                gtk_widget_set_parent_window (witem->widget,
387
395
                                              simple->canvas->canvas_window);
388
396