[libepc] gtk4: Remove calls to gtk_widget_show_all().



commit 57cdf72a91aa13c49a0311e373d84820d6d1b0d9
Author: Murray Cumming <murrayc murrayc com>
Date:   Fri Mar 17 21:25:55 2017 +0100

    gtk4: Remove calls to gtk_widget_show_all().

 examples/consumer-ui.c      |    1 -
 libepc-ui/password-dialog.c |    2 --
 libepc-ui/progress-window.c |    1 -
 3 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/examples/consumer-ui.c b/examples/consumer-ui.c
index fd520d9..2b0925d 100644
--- a/examples/consumer-ui.c
+++ b/examples/consumer-ui.c
@@ -164,7 +164,6 @@ create_lookup_dialog (EpcConsumer *consumer,
   gtk_widget_set_margin_bottom (vbox, 6);
   gtk_widget_set_margin_start (vbox, 6);
   gtk_widget_set_margin_end (vbox, 6);
-  gtk_widget_show_all (vbox);
 
   /* Create the dialog widget. */
 
diff --git a/libepc-ui/password-dialog.c b/libepc-ui/password-dialog.c
index c660348..68b3d8f 100644
--- a/libepc-ui/password-dialog.c
+++ b/libepc-ui/password-dialog.c
@@ -196,8 +196,6 @@ epc_password_dialog_init (EpcPasswordDialog *self)
   gtk_widget_set_hexpand (self->priv->anonymous, true);
   gtk_widget_set_vexpand (self->priv->anonymous, false);
 
-  gtk_widget_show_all (grid);
-
   gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))),
                       grid, TRUE, TRUE);
 }
diff --git a/libepc-ui/progress-window.c b/libepc-ui/progress-window.c
index 9b5894e..49789d8 100644
--- a/libepc-ui/progress-window.c
+++ b/libepc-ui/progress-window.c
@@ -99,7 +99,6 @@ epc_progress_window_init (EpcProgressWindow *self)
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->title, FALSE, TRUE);
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->progress, FALSE, TRUE);
   gtk_box_pack_start (GTK_BOX (vbox), self->priv->message, FALSE, TRUE);
-  gtk_widget_show_all (vbox);
 
   gtk_window_set_position (GTK_WINDOW (self), GTK_WIN_POS_CENTER_ALWAYS);
   gtk_window_set_skip_pager_hint (GTK_WINDOW (self), TRUE);


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