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



commit 26b83f5ab5dc1db8e397c3f0f4b6f7652b5aec11
Author: Benjamin Otte <otte redhat com>
Date:   Mon Sep 20 16:39:41 2010 +0200

    offscreenwindow: Get rid of gdk_drawable_get_size() usage

 gtk/gtkoffscreenwindow.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c
index 6b57eb9..3a426f3 100644
--- a/gtk/gtkoffscreenwindow.c
+++ b/gtk/gtkoffscreenwindow.c
@@ -317,13 +317,10 @@ gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen)
 
   if (surface != NULL)
     {
-      gint width, height;
-
-      gdk_drawable_get_size (window, &width, &height);
-
       pixbuf = gdk_pixbuf_get_from_surface (NULL, surface,
                                             0, 0, 0, 0,
-                                            width, height);
+                                            gdk_window_get_width (window),
+                                            gdk_window_get_height (window));
     }
 
   return pixbuf;



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