summaryrefslogtreecommitdiff
path: root/mate-session/gsm-manager.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-07-26 15:29:18 +0200
committerStefano Karapetsas <[email protected]>2013-07-26 15:29:18 +0200
commit22223bf64027da1dbfb8435a7e410f146a94bbd8 (patch)
treece53d0ef7777cf07dd3e8ef9326f2b315d063310 /mate-session/gsm-manager.c
parentbe18c20c9ec7de9a18e9bec1bb076c092ecc8a31 (diff)
downloadmate-session-manager-22223bf64027da1dbfb8435a7e410f146a94bbd8.tar.bz2
mate-session-manager-22223bf64027da1dbfb8435a7e410f146a94bbd8.tar.xz
mate-session: Add support for GTK3
Diffstat (limited to 'mate-session/gsm-manager.c')
-rw-r--r--mate-session/gsm-manager.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mate-session/gsm-manager.c b/mate-session/gsm-manager.c
index 1e393ac..8143d1f 100644
--- a/mate-session/gsm-manager.c
+++ b/mate-session/gsm-manager.c
@@ -1001,9 +1001,13 @@ manager_switch_user (GsmManager *manager)
MDM_FLEXISERVER_ARGS);
error = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ res = g_spawn_command_line_sync (command, NULL, NULL, NULL, &error);
+#else
res = gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
command,
&error);
+#endif
g_free (command);
@@ -1019,9 +1023,13 @@ manager_switch_user (GsmManager *manager)
GDM_FLEXISERVER_ARGS);
error = NULL;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ res = g_spawn_command_line_sync (command, NULL, NULL, NULL, &error);
+#else
res = gdk_spawn_command_line_on_screen (gdk_screen_get_default (),
command,
&error);
+#endif
g_free (command);