summaryrefslogtreecommitdiff
path: root/typing-break/drwright.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-04 19:20:19 +0100
committerStefano Karapetsas <[email protected]>2014-02-04 19:20:19 +0100
commit6965a1269bc83414f78d82baa4202e8f6f4669c9 (patch)
tree9540bb61faa322ca7b9026f0273222be02b0d8c8 /typing-break/drwright.c
parentd6d686e6af7d95284e4a35b6d4d19a3209252777 (diff)
downloadmate-control-center-6965a1269bc83414f78d82baa4202e8f6f4669c9.tar.bz2
mate-control-center-6965a1269bc83414f78d82baa4202e8f6f4669c9.tar.xz
typing-break: Add GTK3 support
Diffstat (limited to 'typing-break/drwright.c')
-rw-r--r--typing-break/drwright.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/typing-break/drwright.c b/typing-break/drwright.c
index e3af80dc..acba892b 100644
--- a/typing-break/drwright.c
+++ b/typing-break/drwright.c
@@ -33,6 +33,12 @@
#include <libappindicator/app-indicator.h>
#endif /* HAVE_APP_INDICATOR */
+#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 "drwright.h"
#include "drw-break-window.h"
#include "drw-monitor.h"