From a14d2b7ddde3bc2713b31e692331f74f0b5ceb68 Mon Sep 17 00:00:00 2001 From: Wolfgang Ulbrich Date: Thu, 11 Feb 2016 07:31:27 +0100 Subject: GTK+3: do not use deprecated n_screens since gtk+-3.10 screen is always 1 taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=be976a0 https://git.gnome.org/browse/gnome-panel/commit/?id=272f680 --- applets/notification_area/na-tray.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'applets/notification_area/na-tray.c') diff --git a/applets/notification_area/na-tray.c b/applets/notification_area/na-tray.c index c1b24da8..0232983b 100644 --- a/applets/notification_area/na-tray.c +++ b/applets/notification_area/na-tray.c @@ -646,12 +646,16 @@ na_tray_constructor (GType type, if (!initialized) { +#if GTK_CHECK_VERSION (3, 0, 0) + trays_screens = g_new0 (TraysScreen, 1); +#else GdkDisplay *display; int n_screens; display = gdk_display_get_default (); n_screens = gdk_display_get_n_screens (display); trays_screens = g_new0 (TraysScreen, n_screens); +#endif initialized = TRUE; } -- cgit v1.2.1