summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-23 11:43:14 +0100
committerStefano Karapetsas <[email protected]>2014-01-23 11:43:14 +0100
commit21d81e6b1b6a9c060adb608a8eccfa201c320314 (patch)
treecc505874410f482c0818a01977a0653daa3bbaf2 /plugins
parent3e322a3b0f55d35d642c921fa04d161c808fd531 (diff)
downloadmate-settings-daemon-21d81e6b1b6a9c060adb608a8eccfa201c320314.tar.bz2
mate-settings-daemon-21d81e6b1b6a9c060adb608a8eccfa201c320314.tar.xz
xrandr: Fix gdk_spawn_command_line_on_screen usage with GTK3
Diffstat (limited to 'plugins')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 20695a4..0ffc6be 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -46,6 +46,11 @@
#include <libmate-desktop/mate-rr.h>
#include <libmate-desktop/mate-rr-labeler.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#include <libmate-desktop/mate-desktop-utils.h>
+#define gdk_spawn_command_line_on_screen mate_gdk_spawn_command_line_on_screen
+#endif
+
#ifdef HAVE_LIBNOTIFY
#include <libnotify/notify.h>
#endif