[gtk+/rendering-cleanup-next: 174/199] plug: Get rid of gdk_drawable_get_size() usage



commit b9ad562aa2681ff8ddfb1629e052d6af2b9dcfef
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:39:54 2010 +0200

    plug: Get rid of gdk_drawable_get_size() usage

 gtk/gtkplug.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkplug.c b/gtk/gtkplug.c
index bdc5290..f1209cb 100644
--- a/gtk/gtkplug.c
+++ b/gtk/gtkplug.c
@@ -335,7 +335,6 @@ _gtk_plug_add_to_socket (GtkPlug   *plug,
 {
   GtkPlugPrivate *priv;
   GtkWidget *widget;
-  gint w, h;
   
   g_return_if_fail (GTK_IS_PLUG (plug));
   g_return_if_fail (GTK_IS_SOCKET (socket_));
@@ -359,8 +358,9 @@ _gtk_plug_add_to_socket (GtkPlug   *plug,
       GdkWindow *window;
 
       window = gtk_widget_get_window (widget);
-      gdk_drawable_get_size (GDK_DRAWABLE (window), &w, &h);
-      gdk_window_reparent (window, priv->socket_window, -w, -h);
+      gdk_window_reparent (window, priv->socket_window,
+                           -gdk_window_get_width (window),
+                           -gdk_window_get_height (window));
     }
 
   gtk_widget_set_parent (widget, GTK_WIDGET (socket_));



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]