summaryrefslogtreecommitdiff
path: root/multiload/main.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 09:58:30 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 09:58:30 +0100
commit7ca1965de675c694a0a811c6d075b67a114edd3a (patch)
tree68c72937ff42d5bf24dd90465330cb861ba65e48 /multiload/main.c
parent7779705809b61a180aeb2371afcf8d0cba9ba0e3 (diff)
downloadmate-applets-7ca1965de675c694a0a811c6d075b67a114edd3a.tar.bz2
mate-applets-7ca1965de675c694a0a811c6d075b67a114edd3a.tar.xz
multiload: Add GTK3 support
Diffstat (limited to 'multiload/main.c')
-rw-r--r--multiload/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/multiload/main.c b/multiload/main.c
index 16075895..db94fdaf 100644
--- a/multiload/main.c
+++ b/multiload/main.c
@@ -19,14 +19,23 @@
#include <time.h>
#include <glibtop.h>
-#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
+#include <gdk/gdkkeysyms.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <gdk/gdkkeysyms-compat.h>
+#endif
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gio/gio.h>
#include <gio/gdesktopappinfo.h>
#include <mate-panel-applet.h>
#include <mate-panel-applet-gsettings.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define MATE_DESKTOP_USE_UNSTABLE_API
+#include <libmate-desktop/mate-desktop-utils.h>
+#define gdk_spawn_command_line_on_screen mate_gdk_spawn_command_line_on_screen
+#endif
+
#include "global.h"
static void