applets: help the build without X11 support

This commit is contained in:
Pierre Pronchery 2023-10-08 20:02:03 +02:00
parent 8cde7329ec
commit 53d0fc0a95
8 changed files with 32 additions and 16 deletions

View File

@ -20,8 +20,10 @@
#include <string.h>
#include <errno.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/Xatom.h>
#endif
#include <System.h>
#include "Panel/applet.h"
#define _(string) gettext(string)

View File

@ -17,8 +17,10 @@
#include <string.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/X.h>
#endif
#include "Panel/applet.h"
#define _(string) gettext(string)
#define N_(string) string

View File

@ -20,9 +20,11 @@
#include <string.h>
#include <errno.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/XKBlib.h>
# include <X11/extensions/XKBfile.h>
#endif
#include <System.h>
#include "Panel/applet.h"
#define _(string) gettext(string)

View File

@ -29,7 +29,9 @@
#include <errno.h>
#include <libintl.h>
#include <gtk/gtk.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
#endif
#if GTK_CHECK_VERSION(3, 0, 0)
# include <gtk/gtkx.h>
#endif

View File

@ -19,8 +19,10 @@
#include <string.h>
#include <errno.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/Xatom.h>
#endif
#include <System.h>
#include <Desktop.h>
#include "Panel/applet.h"

View File

@ -23,8 +23,10 @@
#if GTK_CHECK_VERSION(3, 0, 0)
# include <gtk/gtkx.h>
#endif
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/Xatom.h>
#endif
#include <System.h>
#include "Panel/applet.h"
#define N_(string) string

View File

@ -20,8 +20,10 @@
#include <string.h>
#include <errno.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/Xatom.h>
#endif
#include <System.h>
#include <Desktop.h>
#include "Panel/applet.h"

View File

@ -20,8 +20,10 @@
#include <string.h>
#include <errno.h>
#include <libintl.h>
#ifdef GDK_WINDOWING_X11
# include <gdk/gdkx.h>
# include <X11/Xatom.h>
#endif
#include <System.h>
#include "Panel/applet.h"
#define _(string) gettext(string)