]> Pileus Git - ~andy/gtk/commitdiff
offscreenwindow: Get rid of gdk_drawable_get_size() usage
authorBenjamin Otte <otte@redhat.com>
Mon, 20 Sep 2010 14:39:41 +0000 (16:39 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:44 +0000 (15:11 +0200)
gtk/gtkoffscreenwindow.c

index 9449df3abe934b0541dff606b550fdd15bc1e4d7..c945e4acfabefaead41751dbd64f1d6c78367f57 100644 (file)
@@ -316,13 +316,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;