summaryrefslogtreecommitdiff
path: root/plugins/xrandr/msd-xrandr-manager.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-01-12 14:30:21 +0300
committerStefano Karapetsas <[email protected]>2015-01-13 12:00:20 +0100
commit62f256795823995becd16dd51bacfd0f76c2afd9 (patch)
tree247f2fb0f4868b075cc4afdd0b92c499cd098339 /plugins/xrandr/msd-xrandr-manager.c
parentaeca00c1e9c995ca2a3969a12cb93d2e08d694aa (diff)
downloadmate-settings-daemon-62f256795823995becd16dd51bacfd0f76c2afd9.tar.bz2
mate-settings-daemon-62f256795823995becd16dd51bacfd0f76c2afd9.tar.xz
xrandr: use mate_gdk_spawn_command_line_on_screen always
Closes https://github.com/mate-desktop/mate-settings-daemon/pull/93
Diffstat (limited to 'plugins/xrandr/msd-xrandr-manager.c')
-rw-r--r--plugins/xrandr/msd-xrandr-manager.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/xrandr/msd-xrandr-manager.c b/plugins/xrandr/msd-xrandr-manager.c
index 8d90c2e..0aeba33 100644
--- a/plugins/xrandr/msd-xrandr-manager.c
+++ b/plugins/xrandr/msd-xrandr-manager.c
@@ -41,15 +41,10 @@
#include <dbus/dbus-glib.h>
#define MATE_DESKTOP_USE_UNSTABLE_API
-
#include <libmate-desktop/mate-rr-config.h>
#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>
@@ -1641,7 +1636,7 @@ run_display_capplet (GtkWidget *widget)
screen = gdk_screen_get_default ();
error = NULL;
- if (!gdk_spawn_command_line_on_screen (screen, MSD_XRANDR_DISPLAY_CAPPLET, &error)) {
+ if (!mate_gdk_spawn_command_line_on_screen (screen, MSD_XRANDR_DISPLAY_CAPPLET, &error)) {
GtkWidget *dialog;
dialog = gtk_message_dialog_new_with_markup (NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK,