=== modified file 'gnome/gw/gtk-support.c'
--- gnome/gw/gtk-support.c	2008-07-03 15:08:23 +0000
+++ gnome/gw/gtk-support.c	2009-11-27 17:41:35 +0000
@@ -1012,10 +1012,14 @@
 }
 
 GdkRectangle*
-gtk_widget_get_allocation (GtkWidget *widget)
+_wrap_gtk_widget_get_allocation (GtkWidget *widget)
 {
     GdkRectangle *ret = g_new (GdkRectangle, 1);
+#if GTK_CHECK_VERSION(2,18,0)
+    gtk_widget_get_allocation (widget, (GtkAllocation*)ret);
+#else
     *ret = widget->allocation;
+#endif
     return ret;
 }
 

=== modified file 'gnome/gw/gtk-support.h'
--- gnome/gw/gtk-support.h	2008-04-09 22:13:19 +0000
+++ gnome/gw/gtk-support.h	2009-11-27 17:42:22 +0000
@@ -117,6 +117,6 @@
 guint _wrap_gtk_ui_manager_add_ui_from_string (GtkUIManager *ui, const gchar *string, GError **error);
 
 GdkWindow* gtk_widget_get_window (GtkWidget *widget);
-GdkRectangle* gtk_widget_get_allocation (GtkWidget *widget);
+GdkRectangle* _wrap_gtk_widget_get_allocation (GtkWidget *widget);
 void _wrap_gtk_drag_dest_set (GtkWidget *widget, GtkDestDefaults flags, const GList *types, GdkDragAction actions);
 GtkStateType gtk_widget_get_state (GtkWidget *widget);

=== modified file 'gnome/overrides/gtk.defs'
--- gnome/overrides/gtk.defs	2008-04-09 22:13:19 +0000
+++ gnome/overrides/gtk.defs	2009-11-27 17:38:38 +0000
@@ -848,7 +848,8 @@
 
 (define-method get-allocation
   (of-object "GtkWidget")
-  (c-name "gtk_widget_get_allocation")
+  (c-name "_wrap_gtk_widget_get_allocation")
+  (overrides "gtk_widget_get_allocation")
   (return-type "GdkRectangle*")) ;; same as GtkAllocation
 
 (define-method get_state

