summaryrefslogtreecommitdiff
path: root/stickynotes/util.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-19 21:36:42 +0100
committerStefano Karapetsas <[email protected]>2014-01-19 21:36:42 +0100
commit3da42cef82ee714a2271849275dfeea3b03ed508 (patch)
treec998ccf81021603e037f6f20f872fd792adc95a8 /stickynotes/util.c
parentbc342abd6a3f49a1b1eff3b9d7121841e29053e3 (diff)
downloadmate-applets-3da42cef82ee714a2271849275dfeea3b03ed508.tar.bz2
mate-applets-3da42cef82ee714a2271849275dfeea3b03ed508.tar.xz
stickynotes: Add GTK3 support
Diffstat (limited to 'stickynotes/util.c')
-rw-r--r--stickynotes/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stickynotes/util.c b/stickynotes/util.c
index 43139f4f..6748c7fc 100644
--- a/stickynotes/util.c
+++ b/stickynotes/util.c
@@ -28,6 +28,10 @@
#include <gdk/gdkx.h>
#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define GDK_WINDOW_XWINDOW GDK_WINDOW_XID
+#endif
+
/* Returns the current date in a customizable form, the default
* looks like this: "Nov 30, '78" */
gchar * get_current_date(const gchar *format)