summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-16 22:30:17 +0200
committerinfirit <[email protected]>2014-05-16 22:53:09 +0200
commit497b849a069dd5e64d08a1093ee4ceeb73ae1534 (patch)
treee9cae322927c1bc10dd53c18c5c0d9da7d6c0ad2
parent4534d11d0f99bc0f232f32db48aa87571f61a03c (diff)
downloadmate-panel-497b849a069dd5e64d08a1093ee4ceeb73ae1534.tar.bz2
mate-panel-497b849a069dd5e64d08a1093ee4ceeb73ae1534.tar.xz
Use g_spawn_async also for gtk+2
-rw-r--r--mate-panel/libpanel-util/panel-launch.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/mate-panel/libpanel-util/panel-launch.c b/mate-panel/libpanel-util/panel-launch.c
index 28824269..beed7c11 100644
--- a/mate-panel/libpanel-util/panel-launch.c
+++ b/mate-panel/libpanel-util/panel-launch.c
@@ -240,9 +240,7 @@ panel_launch_desktop_file_with_fallback (const char *desktop_file,
GError *local_error;
gboolean retval;
GPid pid;
-#if GTK_CHECK_VERSION (3, 0, 0)
char *display;
-#endif
g_return_val_if_fail (desktop_file != NULL, FALSE);
g_return_val_if_fail (fallback_exec != NULL, FALSE);
@@ -259,7 +257,6 @@ panel_launch_desktop_file_with_fallback (const char *desktop_file,
local_error = NULL;
}
-#if GTK_CHECK_VERSION (3, 0, 0)
display = gdk_screen_make_display_name (screen);
retval = g_spawn_async (NULL, /* working directory */
argv,
@@ -270,11 +267,6 @@ panel_launch_desktop_file_with_fallback (const char *desktop_file,
NULL,
&local_error);
g_free (display);
-#else
- retval = gdk_spawn_on_screen (screen, NULL, argv, NULL,
- G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
- NULL, NULL, &pid, &local_error);
-#endif
if (local_error == NULL && retval == TRUE) {
g_child_watch_add (pid, dummy_child_watch, NULL);