summaryrefslogtreecommitdiff
path: root/applets
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 /applets
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 'applets')
-rw-r--r--applets/notification_area/fixedtip.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/applets/notification_area/fixedtip.c b/applets/notification_area/fixedtip.c
index 7bd61409..ded3dbb6 100644
--- a/applets/notification_area/fixedtip.c
+++ b/applets/notification_area/fixedtip.c
@@ -179,12 +179,8 @@ na_fixed_tip_position (NaFixedTip *fixedtip)
#endif
gdk_window_get_origin (parent_window, &root_x, &root_y);
-#if GTK_CHECK_VERSION(3, 0, 0)
parent_width = gdk_window_get_width(parent_window);
parent_height = gdk_window_get_height(parent_window);
-#else
- gdk_drawable_get_size(GDK_DRAWABLE(parent_window), &parent_width, &parent_height);
-#endif
screen_width = gdk_screen_get_width (screen);
screen_height = gdk_screen_get_height (screen);