summaryrefslogtreecommitdiff
path: root/libmate-panel-applet/mate-panel-applet.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-16 16:57:05 +0200
committerinfirit <[email protected]>2014-05-16 16:57:05 +0200
commitf743caf3054bbbadc6b98c9e746fd8ae5114b142 (patch)
treeebdb7b63bbd6cd8aa9c5020f27002a8efdd58145 /libmate-panel-applet/mate-panel-applet.c
parent41ff2a970ebee68fc7ca335f10ae24a6210d1fd5 (diff)
downloadmate-panel-f743caf3054bbbadc6b98c9e746fd8ae5114b142.tar.bz2
mate-panel-f743caf3054bbbadc6b98c9e746fd8ae5114b142.tar.xz
Use gdk_window_get_width also for gtk2
It was introduced in gtk+-2.24
Diffstat (limited to 'libmate-panel-applet/mate-panel-applet.c')
-rw-r--r--libmate-panel-applet/mate-panel-applet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index efcca300..7a514c58 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -1461,12 +1461,10 @@ mate_panel_applet_get_pixmap (MatePanelApplet *applet,
}
#endif
-#if GTK_CHECK_VERSION(3, 0, 0)
width = gdk_window_get_width(window);
height = gdk_window_get_height(window);
+#if GTK_CHECK_VERSION(3, 0, 0)
surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
-#else
- gdk_drawable_get_size(GDK_DRAWABLE(window), &width, &height);
#endif
#if GTK_CHECK_VERSION (3, 0, 0)