summaryrefslogtreecommitdiff
path: root/gtk/gtkoffscreenwindow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-20 16:39:41 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:44 +0200
commitdca859dfa12562fa3a4810c46345a0714155b27d (patch)
treeff12ec30a1fba7dcb0aeaf344d25db0ed7e0c013 /gtk/gtkoffscreenwindow.c
parent6eb6135e2df4ecf7df3f6634854cd559dc5d971c (diff)
downloadgtk+-dca859dfa12562fa3a4810c46345a0714155b27d.tar.gz
offscreenwindow: Get rid of gdk_drawable_get_size() usage
Diffstat (limited to 'gtk/gtkoffscreenwindow.c')
-rw-r--r--gtk/gtkoffscreenwindow.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c
index 9449df3abe..c945e4acfa 100644
--- a/gtk/gtkoffscreenwindow.c
+++ b/gtk/gtkoffscreenwindow.c
@@ -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;