diff options
author | monsta <[email protected]> | 2018-01-28 21:33:09 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-01-30 14:03:10 +0100 |
commit | 336743475664829a64d13bbd70a2c97a58375d0c (patch) | |
tree | 2f3498fee5dc93d489e8768c54d01228c5863629 /plugins/media-keys/msd-media-keys-manager.c | |
parent | eaad50f7624c8946e57ca075f8b7e383b1715bcc (diff) | |
download | mate-settings-daemon-336743475664829a64d13bbd70a2c97a58375d0c.tar.bz2 mate-settings-daemon-336743475664829a64d13bbd70a2c97a58375d0c.tar.xz |
require GTK+ 3.22 and GLib 2.50
Diffstat (limited to 'plugins/media-keys/msd-media-keys-manager.c')
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index a9d36c1..5fab74e 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -401,11 +401,7 @@ dialog_show (MsdMediaKeysManager *manager) GtkRequisition win_req; GdkScreen *pointer_screen; GdkRectangle geometry; -#if GTK_CHECK_VERSION (3, 22, 0) GdkMonitor *monitor; -#else - int monitor; -#endif gtk_window_set_screen (GTK_WINDOW (manager->priv->dialog), manager->priv->current_screen); @@ -443,28 +439,12 @@ dialog_show (MsdMediaKeysManager *manager) /* The pointer isn't on the current screen, so just * assume the default monitor */ -#if GTK_CHECK_VERSION (3, 22, 0) monitor = gdk_display_get_monitor (display, 0); -#else - monitor = 0; -#endif } else { -#if GTK_CHECK_VERSION (3, 22, 0) monitor = gdk_display_get_monitor_at_point (display, pointer_x, pointer_y); -#else - monitor = gdk_screen_get_monitor_at_point (manager->priv->current_screen, - pointer_x, - pointer_y); -#endif } -#if GTK_CHECK_VERSION (3, 22, 0) gdk_monitor_get_geometry (monitor, &geometry); -#else - gdk_screen_get_monitor_geometry (manager->priv->current_screen, - monitor, - &geometry); -#endif screen_w = geometry.width; screen_h = geometry.height; |