summaryrefslogtreecommitdiff
path: root/applets/notification_area/na-grid.c
diff options
context:
space:
mode:
authormark.herbert <[email protected]>2025-07-18 11:42:38 +0300
committerlukefromdc <[email protected]>2025-09-04 10:12:14 -0400
commitd68c23bd8e07612f305dcc7825f3a8ee448544f5 (patch)
treea0de3e3b98337639b75279a1d58ea52b276d82bb /applets/notification_area/na-grid.c
parent7867d2d5888f48369bc34c1182d5171c4c224b13 (diff)
downloadmate-panel-d68c23bd8e07612f305dcc7825f3a8ee448544f5.tar.bz2
mate-panel-d68c23bd8e07612f305dcc7825f3a8ee448544f5.tar.xz
Wayland-only-build attempt 3 - changes from other branch removed
Diffstat (limited to 'applets/notification_area/na-grid.c')
-rw-r--r--applets/notification_area/na-grid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/applets/notification_area/na-grid.c b/applets/notification_area/na-grid.c
index 9a4c45d9..0fa82494 100644
--- a/applets/notification_area/na-grid.c
+++ b/applets/notification_area/na-grid.c
@@ -29,7 +29,10 @@
#include "na-grid.h"
+#ifdef HAVE_X11
#include "system-tray/na-tray.h"
+#endif
+
#include "status-notifier/sn-host-v0.h"
#define MIN_ICON_SIZE_DEFAULT 24
@@ -324,6 +327,7 @@ na_grid_realize (GtkWidget *widget)
display = gdk_display_get_default ();
/* Instantiate the hosts now we have a screen */
screen = gtk_widget_get_screen (GTK_WIDGET (self));
+#ifdef HAVE_X11
if (GDK_IS_X11_DISPLAY (display))
{
GtkOrientation orientation;
@@ -337,6 +341,7 @@ na_grid_realize (GtkWidget *widget)
add_host (self, tray_host);
}
+#endif
settings = g_settings_new ("org.mate.panel");
if (g_settings_get_boolean (settings, "enable-sni-support"))
add_host (self, sn_host_v0_new ());