summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/delete.c4
-rw-r--r--src/core/session.c2
-rw-r--r--src/core/util.c8
-rw-r--r--src/include/util.h4
4 files changed, 8 insertions, 10 deletions
diff --git a/src/core/delete.c b/src/core/delete.c
index 42360a5a..a93a2ac7 100644
--- a/src/core/delete.c
+++ b/src/core/delete.c
@@ -105,8 +105,8 @@ delete_ping_timeout_func (MetaDisplay *display,
dialog_pid =
meta_show_dialog ("--question",
- window_content, 0,
- window->screen->number,
+ window_content, NULL,
+ window->screen->screen_name,
_("_Wait"), _("_Force Quit"), window->xwindow,
NULL, NULL);
diff --git a/src/core/session.c b/src/core/session.c
index 80bf9a0d..495ac950 100644
--- a/src/core/session.c
+++ b/src/core/session.c
@@ -1809,7 +1809,7 @@ warn_about_lame_clients_and_finish_interact (gboolean shutdown)
"and will have to be restarted manually next time "
"you log in."),
"240",
- meta_screen_get_screen_number (meta_get_display()->active_screen),
+ meta_get_display()->active_screen->screen_name,
NULL, NULL,
None,
columns,
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)
{
diff --git a/src/include/util.h b/src/include/util.h
index b4e95be0..ba6a2754 100644
--- a/src/include/util.h
+++ b/src/include/util.h
@@ -99,9 +99,9 @@ char* meta_g_utf8_strndup (const gchar *src, gsize n);
void meta_free_gslist_and_elements (GSList *list_to_deep_free);
GPid meta_show_dialog (const char *type,
- const char *title,
const char *message,
- gint timeout,
+ const char *timeout,
+ const char *display,
const char *ok_text,
const char *cancel_text,
const int transient_for,