[gnome-control-center] Fix up issues with the speaker test dialog



commit 6e848ce81acc2c001e99969119c0a67e780000d6
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Jan 20 13:38:50 2011 -0500

    Fix up issues with the speaker test dialog
    
    Set a parent on the dialog, and add a close button.
    Also hide the resize grip (even though that should happen automatically).
    https://bugzilla.gnome.org/show_bug.cgi?id=636898

 panels/sound/gvc-mixer-dialog.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/panels/sound/gvc-mixer-dialog.c b/panels/sound/gvc-mixer-dialog.c
index 8059e88..1bd5562 100644
--- a/panels/sound/gvc-mixer-dialog.c
+++ b/panels/sound/gvc-mixer-dialog.c
@@ -1571,13 +1571,14 @@ on_test_speakers_clicked (GvcComboBox *widget,
                  profile->profile, gvc_mixer_card_get_name (card));
 
         title = g_strdup_printf (_("Speaker Testing for %s"), gvc_mixer_card_get_name (card));
-        // FIXME
-        // set parent dialogue
-        // https://bugzilla.gnome.org/show_bug.cgi?id=621940
         d = gtk_dialog_new_with_buttons (title,
-                                         NULL,
+                                         GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (widget))),
                                          GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
+                                         GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
                                          NULL);
+        /* FIXME: this should not be necessary */
+        gtk_window_set_has_resize_grip (GTK_WINDOW (d), FALSE);
+
         g_free (title);
         speaker_test = gvc_speaker_test_new (dialog->priv->mixer_control,
                                              card);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]