summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-tray.c
diff options
context:
space:
mode:
Diffstat (limited to 'applets/notification_area/na-tray.c')
-rw-r--r--applets/notification_area/na-tray.c4
1 files changed, 4 insertions, 0 deletions
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;
}