diff options
author | infirit <[email protected]> | 2014-10-24 16:31:11 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-10-24 16:36:19 +0200 |
commit | 49e91bc9093010e269816da1df763a0374dbc515 (patch) | |
tree | cc62723c60743e4df53286c0bc9a9f13c645ef1b /src/core/util.c | |
parent | bbdef45fbb7c7addea5a3be99fbebf823d83192d (diff) | |
download | marco-49e91bc9093010e269816da1df763a0374dbc515.tar.bz2 marco-49e91bc9093010e269816da1df763a0374dbc515.tar.xz |
Update meta_show_dialog for gtk's removal of --screen
gtk3 no longer has the --screen command-line argument, which
metacity was passing to zenity. Use --display (with an
explicitly-specified screen number) instead.
Author: Dan Winship
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=687938
Based on metacity commit: 8d19afdcccaec28a5512b0a707d8238b9dd4e2f3
Diffstat (limited to 'src/core/util.c')
-rw-r--r-- | src/core/util.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/util.c b/src/core/util.c index b3239976..1cb7793c 100644 --- a/src/core/util.c +++ b/src/core/util.c @@ -542,7 +542,7 @@ GPid meta_show_dialog (const char *type, const char *message, const char *timeout, - const gint screen_number, + const char *display, const char *ok_text, const char *cancel_text, const int transient_for, @@ -550,7 +550,6 @@ meta_show_dialog (const char *type, GSList *entries) { GError *error = NULL; - char *screen_number_text = g_strdup_printf("%d", screen_number); GSList *tmp; int i=0; GPid child_pid; @@ -561,8 +560,8 @@ meta_show_dialog (const char *type, argvl[i++] = "zenity"; argvl[i++] = type; - argvl[i++] = "--screen"; - argvl[i++] = screen_number_text; + argvl[i++] = "--display"; + argvl[i++] = display; argvl[i++] = "--class"; argvl[i++] = "marco-dialog"; argvl[i++] = "--title"; @@ -627,7 +626,6 @@ meta_show_dialog (const char *type, unsetenv ("WINDOWID"); g_free (argvl); - g_free (screen_number_text); if (error) { |