From 6074ae0a4678aaa9071fc98ba8b95cd00dd52a37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sede=C3=B1o=20Fern=C3=A1ndez?= Date: Thu, 10 Jun 2004 21:34:39 +0000 Subject: [PATCH] http://bugzilla.gnome.org/show_bug.cgi?id=136483 * main.c (run_revert_dialog, cb_dialog_response) : Hide the configuration dialog and center the confirmation one. --- capplets/display/ChangeLog | 6 ++++++ capplets/display/main.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/capplets/display/ChangeLog b/capplets/display/ChangeLog index f8dc41bb4..b3f7d2390 100644 --- a/capplets/display/ChangeLog +++ b/capplets/display/ChangeLog @@ -1,3 +1,9 @@ +2004-06-10 David Sedeņo + + http://bugzilla.gnome.org/show_bug.cgi?id=136483 + * main.c (run_revert_dialog, cb_dialog_response) : Hide + the configuration dialog and center the confirmation one. + 2004-06-09 David Sedeņo http://bugzilla.gnome.org/show_bug.cgi?id=137579 diff --git a/capplets/display/main.c b/capplets/display/main.c index d58ea20ec..d514e0ff1 100644 --- a/capplets/display/main.c +++ b/capplets/display/main.c @@ -624,6 +624,7 @@ run_revert_dialog (struct DisplayInfo *info, gtk_container_set_border_width (GTK_CONTAINER (dialog), 12); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); gtk_window_set_title (GTK_WINDOW (dialog), _("Keep Resolution")); + gtk_window_set_position(GTK_WINDOW(dialog),GTK_WIN_POS_CENTER_ALWAYS); label = gtk_label_new (NULL); str = g_strdup_printf ("%s", _("Do you want to keep this resolution?")); @@ -757,8 +758,10 @@ cb_dialog_response (GtkDialog *dialog, gint response_id, struct DisplayInfo *inf if (apply_config (info)) { + gtk_widget_hide(GTK_WIDGET(dialog)); if (!run_revert_dialog (info, GTK_WIDGET (dialog))) { + gtk_widget_show(GTK_WIDGET(dialog)); revert_config (info); return; }