[gtk+] window: Get rid of gdk_drawable_get_size() usage



commit 99eae4e2084d081a5c2e8cdb920a7b97616b14e1
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:44:57 2010 +0200

    window: Get rid of gdk_drawable_get_size() usage

 gtk/gtkwindow.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 1e40a15..30602c2 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -3990,8 +3990,8 @@ gtk_window_get_size (GtkWindow *window,
 
   if (gtk_widget_get_mapped (GTK_WIDGET (window)))
     {
-      gdk_drawable_get_size (gtk_widget_get_window (GTK_WIDGET (window)),
-                             &w, &h);
+      w = gdk_window_get_width (gtk_widget_get_window (GTK_WIDGET (window)));
+      h = gdk_window_get_height (gtk_widget_get_window (GTK_WIDGET (window)));
     }
   else
     {



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