From c11a2ac7a568b83fb0327e831519981a465bc51f Mon Sep 17 00:00:00 2001 From: ZenWalker Date: Sat, 5 Aug 2017 00:42:08 +0200 Subject: avoid deprecated gdk_screen_get_n_monitors --- src/capplet/mate-notification-properties.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/capplet/mate-notification-properties.c') 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); -- cgit v1.2.1