Changeset 73603 in webkit


Ignore:
Timestamp:
Dec 9, 2010 3:18:48 AM (13 years ago)
Author:
kov@webkit.org
Message:

2010-12-09 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>

Build fix for GTK+3. Use functions added for GTK+ 2.24 to get the
GDK window size.

  • plugins/gtk/gtk2xtbin.c: (gtk_xtbin_realize):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r73602 r73603  
     12010-12-09  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
     2
     3        Build fix for GTK+3. Use functions added for GTK+ 2.24 to get the
     4        GDK window size.
     5
     6        * plugins/gtk/gtk2xtbin.c:
     7        (gtk_xtbin_realize):
     8
    192010-12-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
    210
  • trunk/WebCore/plugins/gtk/gtk2xtbin.c

    r70677 r73603  
    275275  GtkAllocation widget_allocation;
    276276#endif
     277
     278#ifdef DEBUG_XTBIN
     279  printf("gtk_xtbin_realize()\n");
     280#endif
     281
     282  g_return_if_fail (GTK_IS_XTBIN (widget));
     283
     284  xtbin = GTK_XTBIN (widget);
     285
     286  /* caculate the allocation before realize */
     287#if GTK_CHECK_VERSION(2, 24, 0)
     288  allocation.width = gdk_window_get_width(xtbin->parent_window);
     289  allocation.height = gdk_window_get_height(xtbin->parent_window);
     290#else
    277291  gint  x, y, w, h, d; /* geometry of window */
    278 
    279 #ifdef DEBUG_XTBIN
    280   printf("gtk_xtbin_realize()\n");
    281 #endif
    282 
    283   g_return_if_fail (GTK_IS_XTBIN (widget));
    284 
    285   xtbin = GTK_XTBIN (widget);
    286 
    287   /* caculate the allocation before realize */
    288292  gdk_window_get_geometry(xtbin->parent_window, &x, &y, &w, &h, &d);
    289293  allocation.width = w;
    290294  allocation.height = h;
     295#endif
    291296  gtk_widget_size_allocate (widget, &allocation);
    292297
Note: See TracChangeset for help on using the changeset viewer.