[gnome-media] Fix visual glitches on startup



commit 76e61c1abf071bfc39ab9a614e70b312d5ebe402
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 19 13:54:50 2009 +0100

    Fix visual glitches on startup
    
    When the dialog first appears, you can see the window title change from
    gnome-volume-control to "Sound Preferences". Also, the output volume
    slider visibly gets its initial allocation wrong.
    
    This is due to showing the dialog out of its constructor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=598887

 gnome-volume-control/src/gvc-mixer-dialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gnome-volume-control/src/gvc-mixer-dialog.c b/gnome-volume-control/src/gvc-mixer-dialog.c
index 7d7d566..c5c2279 100644
--- a/gnome-volume-control/src/gvc-mixer-dialog.c
+++ b/gnome-volume-control/src/gvc-mixer-dialog.c
@@ -1773,7 +1773,6 @@ gvc_mixer_dialog_constructor (GType                  type,
         gtk_box_pack_start (GTK_BOX (box),
                             self->priv->input_level_bar,
                             TRUE, TRUE, 0);
-        gtk_widget_show (self->priv->input_level_bar);
 
         ebox = gtk_hbox_new (FALSE, 6);
         gtk_box_pack_start (GTK_BOX (box),
@@ -1885,7 +1884,7 @@ gvc_mixer_dialog_constructor (GType                  type,
                           G_CALLBACK (on_control_card_removed),
                           self);
 
-        gtk_widget_show_all (GTK_WIDGET (self));
+        gtk_widget_show_all (main_vbox);
 
         streams = gvc_mixer_control_get_streams (self->priv->mixer_control);
         for (l = streams; l != NULL; l = l->next) {



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