[gtk+/open-with-dialog: 18/53] open-with-dialog: don't ever show_all()
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/open-with-dialog: 18/53] open-with-dialog: don't ever show_all()
- Date: Tue, 23 Nov 2010 16:52:45 +0000 (UTC)
commit 9ffe52c04996fe7075a5327aea901d9bae49adda
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Nov 18 00:02:59 2010 +0100
open-with-dialog: don't ever show_all()
As there might be some elements in the widget that we don't want to
always show.
gtk/gtkopenwithdialog.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkopenwithdialog.c b/gtk/gtkopenwithdialog.c
index 27ddfc2..eb5fa6b 100644
--- a/gtk/gtkopenwithdialog.c
+++ b/gtk/gtkopenwithdialog.c
@@ -307,9 +307,12 @@ build_dialog_ui (GtkOpenWithDialog *self)
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
-
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), vbox, TRUE, TRUE, 0);
+ gtk_widget_show (vbox);
+
vbox2 = gtk_vbox_new (FALSE, 6);
gtk_box_pack_start (GTK_BOX (vbox), vbox2, TRUE, TRUE, 0);
+ gtk_widget_show (vbox2);
self->priv->label = gtk_label_new ("");
gtk_widget_set_halign (self->priv->label, GTK_ALIGN_START);
@@ -334,9 +337,6 @@ build_dialog_ui (GtkOpenWithDialog *self)
gtk_label_set_single_line_mode (GTK_LABEL (self->priv->desc_label), FALSE);
gtk_box_pack_start (GTK_BOX (vbox2), self->priv->desc_label, FALSE, FALSE, 0);
- gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), vbox, TRUE, TRUE, 0);
- gtk_widget_show_all (vbox);
-
gtk_dialog_add_button (GTK_DIALOG (self),
GTK_STOCK_REMOVE,
RESPONSE_REMOVE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]