diff options
author | Alexei Sorokin <[email protected]> | 2017-01-17 00:10:40 +0300 |
---|---|---|
committer | Alexei Sorokin <[email protected]> | 2017-01-17 00:10:40 +0300 |
commit | 5d4416aa5853de486e62ca97207ee1da4b35b199 (patch) | |
tree | 41a3450d67f77f98b4b70392eec923ea54013cc0 /src/gs-job.c | |
parent | 6672c9811a6c6fe76810d2c66c69c4727910d91d (diff) | |
download | mate-screensaver-5d4416aa5853de486e62ca97207ee1da4b35b199.tar.bz2 mate-screensaver-5d4416aa5853de486e62ca97207ee1da4b35b199.tar.xz |
GTK+3.22: fix some GdkScreen related deprecations
Diffstat (limited to 'src/gs-job.c')
-rw-r--r-- | src/gs-job.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gs-job.c b/src/gs-job.c index 009de4d..e0d4d3e 100644 --- a/src/gs-job.c +++ b/src/gs-job.c @@ -260,9 +260,10 @@ nice_process (int pid, static GPtrArray * get_env_vars (GtkWidget *widget) { - GPtrArray *env; - char *str; - int i; + GPtrArray *env; + const gchar *display_name; + gchar *str; + int i; static const char *allowed_env_vars [] = { "PATH", @@ -276,9 +277,8 @@ get_env_vars (GtkWidget *widget) env = g_ptr_array_new (); - str = gdk_screen_make_display_name (gtk_widget_get_screen (widget)); - g_ptr_array_add (env, g_strdup_printf ("DISPLAY=%s", str)); - g_free (str); + display_name = gdk_display_get_name (gtk_widget_get_display (widget)); + g_ptr_array_add (env, g_strdup_printf ("DISPLAY=%s", display_name)); g_ptr_array_add (env, g_strdup_printf ("HOME=%s", g_get_home_dir ())); |