diff options
author | ZenWalker <[email protected]> | 2017-08-05 00:42:08 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-10 20:57:33 +0200 |
commit | c11a2ac7a568b83fb0327e831519981a465bc51f (patch) | |
tree | a8825590954425ab595d8a6d2d5b32ed852edc15 /src/capplet/mate-notification-properties.c | |
parent | 296116088fca1ea8a261c49233fec407bd9098f6 (diff) | |
download | mate-notification-daemon-c11a2ac7a568b83fb0327e831519981a465bc51f.tar.bz2 mate-notification-daemon-c11a2ac7a568b83fb0327e831519981a465bc51f.tar.xz |
avoid deprecated gdk_screen_get_n_monitors
Diffstat (limited to 'src/capplet/mate-notification-properties.c')
-rw-r--r-- | src/capplet/mate-notification-properties.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/capplet/mate-notification-properties.c b/src/capplet/mate-notification-properties.c index a1e322e..22229d3 100644 --- a/src/capplet/mate-notification-properties.c +++ b/src/capplet/mate-notification-properties.c @@ -213,7 +213,11 @@ static void notification_properties_dialog_setup_monitors(NotificationAppletDial screen = gdk_display_get_default_screen(display); g_assert(screen != NULL); +#if GTK_CHECK_VERSION (3, 22, 0) + num_monitors = gdk_display_get_n_monitors(display); +#else num_monitors = gdk_screen_get_n_monitors(screen); +#endif g_assert(num_monitors >= 1); store = gtk_list_store_new(N_COLUMNS_MONITOR, G_TYPE_INT); |