2006-09-26 Iain Holmes <iain@openedhand.com>
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Mon, 25 Sep 2006 14:26:01 +0000 (14:26 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Mon, 25 Sep 2006 14:26:01 +0000 (14:26 +0000)
* hildon-wizard-dialog.c: Show all created widgets so that a
gtk_widget_show is all that is required to display the dialog
correctly. Fixes MB#432.

ChangeLog
hildon-widgets/hildon-wizard-dialog.c

index c6cd32e..a6dd101 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-26  Iain Holmes  <iain@openedhand.com>
+
+       * hildon-wizard-dialog.c: Show all created widgets so that a
+       gtk_widget_show is all that is required to display the dialog
+       correctly. Fixes MB#432. 
+
 2006-09-25  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        * hildon-widgets/hildon-number-editor.c: Applying a patch by Fernando
index 89614c4..5872e62 100644 (file)
@@ -238,6 +238,9 @@ init (HildonWizardDialog *wizard_dialog)
     /* Set initial button states: previous and finish buttons are disabled */
     make_buttons_sensitive (wizard_dialog, FALSE, FALSE, TRUE);
 
+    /* Show all the internal widgets */
+    gtk_widget_show_all (GTK_WIDGET (dialog->vbox));
+
     /* connect to dialog's response signal */
     g_signal_connect (G_OBJECT (dialog), "response",
             G_CALLBACK (response), NULL);
@@ -285,6 +288,10 @@ set_property (GObject      *object,
             gtk_notebook_set_show_border (priv->notebook, FALSE);
             gtk_box_pack_start_defaults (GTK_BOX( priv->box), GTK_WIDGET (priv->notebook));
 
+            /* Show the notebook so that a gtk_widget_show on the dialog is
+             * all that is required to display the dialog correctly */
+            gtk_widget_show (priv->notebook);
+
             /* Update dialog title to reflect current page stats etc */        
             if (priv->wizard_name)
                 create_title (HILDON_WIZARD_DIALOG (object));