summaryrefslogtreecommitdiff
path: root/libslab/document-tile.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-23 12:53:56 +0200
committerinfirit <[email protected]>2014-05-23 12:53:56 +0200
commit13d0f05fb98284839d1dea3fc667903c8a82a40b (patch)
treedb8e7ca3a31c15aba9c512a656301a260a319833 /libslab/document-tile.c
parent2ef5c18a22a9308857b5b0aa62dc80e4d680663f (diff)
downloadmate-control-center-13d0f05fb98284839d1dea3fc667903c8a82a40b.tar.bz2
mate-control-center-13d0f05fb98284839d1dea3fc667903c8a82a40b.tar.xz
Use g_spawn_async for gtk+-2 and gtk+-3
Diffstat (limited to 'libslab/document-tile.c')
-rw-r--r--libslab/document-tile.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libslab/document-tile.c b/libslab/document-tile.c
index 673ab4da..412be01b 100644
--- a/libslab/document-tile.c
+++ b/libslab/document-tile.c
@@ -1069,7 +1069,6 @@ user_docs_trigger (Tile *tile, TileEvent *event, TileAction *action)
update_user_list_menu_item (this);
}
-#if GTK_CHECK_VERSION (3, 0, 0)
/*
* Set the DISPLAY variable, to be use by g_spawn_async.
*/
@@ -1078,7 +1077,6 @@ set_environment (gpointer display)
{
g_setenv ("DISPLAY", display, TRUE);
}
-#endif
static void
send_to_trigger (Tile *tile, TileEvent *event, TileAction *action)
@@ -1120,17 +1118,12 @@ send_to_trigger (Tile *tile, TileEvent *event, TileAction *action)
}
}
-#if GTK_CHECK_VERSION (3, 0, 0)
char *display;
display = gdk_screen_make_display_name (gtk_widget_get_screen (GTK_WIDGET (tile)));
g_spawn_async (NULL, argv, NULL, G_SPAWN_SEARCH_PATH, set_environment,
&display, NULL, &error);
g_free (display);
-#else
- gdk_spawn_on_screen (gtk_widget_get_screen (GTK_WIDGET (tile)), NULL, argv, NULL,
- G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error);
-#endif
if (error)
handle_g_error (&error, "error in %s", G_STRFUNC);