diff options
author | monsta <[email protected]> | 2018-01-31 08:55:47 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-01-31 08:55:47 +0300 |
commit | ed089f5ae005664d17a967e29310bdfc3df1c163 (patch) | |
tree | c75f97ffe8591feb44dc25d3f0614b796eb4458b /applets/notification_area/status-notifier/sn-item.c | |
parent | 254617d029aac1ddbff9b4b7d1fb8b3e559ac45c (diff) | |
download | mate-panel-ed089f5ae005664d17a967e29310bdfc3df1c163.tar.bz2 mate-panel-ed089f5ae005664d17a967e29310bdfc3df1c163.tar.xz |
remove unneeded nested GTK_CHECK_VERSION block
it's already inside !GTK_CHECK_VERSION one, so it's a no-op
Diffstat (limited to 'applets/notification_area/status-notifier/sn-item.c')
-rw-r--r-- | applets/notification_area/status-notifier/sn-item.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/applets/notification_area/status-notifier/sn-item.c b/applets/notification_area/status-notifier/sn-item.c index 27121503..d2d86ec0 100644 --- a/applets/notification_area/status-notifier/sn-item.c +++ b/applets/notification_area/status-notifier/sn-item.c @@ -194,12 +194,7 @@ sn_item_popup_menu_position_func (GtkMenu *menu, GtkRequisition menu_req; GdkWindow *window; GdkScreen *screen; -#if GTK_CHECK_VERSION (3, 22, 0) - GdkMonitor *monitor_num; - GdkDisplay *display; -#else gint monitor_num; -#endif GdkRectangle monitor; gtk_widget_get_allocation (widget, &widget_alloc); @@ -212,14 +207,8 @@ sn_item_popup_menu_position_func (GtkMenu *menu, *y += widget_alloc.y; screen = gtk_widget_get_screen (widget); -#if GTK_CHECK_VERSION (3, 22, 0) - display = gdk_screen_get_display (screen); - monitor_num = gdk_display_get_monitor_at_point (display, *x, *y); - gdk_monitor_get_geometry (monitor_num, &monitor); -#else monitor_num = gdk_screen_get_monitor_at_point (screen, *x, *y); gdk_screen_get_monitor_geometry (screen, monitor_num, &monitor); -#endif /* put the menu on the left if we can't put it on the right */ if (*x + menu_req.width > monitor.x + monitor.width) |