summaryrefslogtreecommitdiff
path: root/src/gs-job.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-20 23:35:35 +0300
committermonsta <[email protected]>2016-11-20 23:35:35 +0300
commit030632057c5c65a46d218c9ed2ffed5277513c6e (patch)
tree5c642707d54df4c9fef0dd20d7e77e6dea41fd35 /src/gs-job.c
parentcceaaea0b336b9d288ac9399979427f5fd78b74d (diff)
downloadmate-screensaver-030632057c5c65a46d218c9ed2ffed5277513c6e.tar.bz2
mate-screensaver-030632057c5c65a46d218c9ed2ffed5277513c6e.tar.xz
move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option
and require libmatekbd and libmate-desktop >= 1.17
Diffstat (limited to 'src/gs-job.c')
-rw-r--r--src/gs-job.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/gs-job.c b/src/gs-job.c
index 4296f64..009de4d 100644
--- a/src/gs-job.c
+++ b/src/gs-job.c
@@ -339,7 +339,6 @@ spawn_on_widget (GtkWidget *widget,
env = get_env_vars (widget);
error = NULL;
-#if GTK_CHECK_VERSION (3, 0, 0)
result = g_spawn_async_with_pipes (NULL,
argv,
(char **)env->pdata,
@@ -351,20 +350,7 @@ spawn_on_widget (GtkWidget *widget,
NULL,
&standard_error,
&error);
-#else
- result = gdk_spawn_on_screen_with_pipes (gtk_widget_get_screen (widget),
- NULL,
- argv,
- (char **)env->pdata,
- G_SPAWN_SEARCH_PATH | G_SPAWN_DO_NOT_REAP_CHILD,
- NULL,
- NULL,
- &child_pid,
- NULL,
- NULL,
- &standard_error,
- &error);
-#endif
+
for (i = 0; i < env->len; i++)
{
g_free (g_ptr_array_index (env, i));