summaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-06-17 22:15:47 +0000
committerraveit65 <[email protected]>2019-06-23 10:12:24 +0200
commitb852dfa8c677f1a95cee98d1350d99c6bb28f50c (patch)
tree21a17f705423713ac56c596c05c856c7044f6791 /applets
parent8c378192fd449f2877525ea603ca9083c202cfcb (diff)
downloadmate-panel-b852dfa8c677f1a95cee98d1350d99c6bb28f50c.tar.bz2
mate-panel-b852dfa8c677f1a95cee98d1350d99c6bb28f50c.tar.xz
Make system-tray X11-only
Diffstat (limited to 'applets')
-rw-r--r--applets/notification_area/system-tray/fixedtip.c6
-rw-r--r--applets/notification_area/system-tray/na-tray.h6
2 files changed, 10 insertions, 2 deletions
diff --git a/applets/notification_area/system-tray/fixedtip.c b/applets/notification_area/system-tray/fixedtip.c
index f5817cdd..f7b28d7b 100644
--- a/applets/notification_area/system-tray/fixedtip.c
+++ b/applets/notification_area/system-tray/fixedtip.c
@@ -20,6 +20,12 @@
* 02110-1301, USA.
*/
+#include <config.h>
+
+#ifndef HAVE_X11
+#error file should only be compiled when HAVE_X11 is enabled
+#endif
+
#include <gdk/gdkx.h>
#include "fixedtip.h"
diff --git a/applets/notification_area/system-tray/na-tray.h b/applets/notification_area/system-tray/na-tray.h
index 9f9d2bef..74e242c7 100644
--- a/applets/notification_area/system-tray/na-tray.h
+++ b/applets/notification_area/system-tray/na-tray.h
@@ -26,9 +26,11 @@
#include <config.h>
-#ifdef HAVE_X11
-#include <gdk/gdkx.h>
+#ifndef HAVE_X11
+#error file should only be included when HAVE_X11 is enabled
#endif
+
+#include <gdk/gdkx.h>
#include <gtk/gtk.h>
#include "na-host.h"