[gtk+/font-chooser: 4/84] GtkFontChooser: Avoid using show_all explicitely



commit 54ea6af975b5522c8a4c4a7c6d2c27dd798c455b
Author: Alberto Ruiz <aruiz gnome org>
Date:   Fri Apr 15 21:49:46 2011 +0100

    GtkFontChooser: Avoid using show_all explicitely

 gtk/gtkfontchooser.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index a2fc26c..aba2cd9 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -312,10 +312,15 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
                                                             sizeof (guint16)) - 1],
                                                 1);
 
+  gtk_box_pack_start (GTK_BOX (fontsel), priv->search_entry, FALSE, TRUE, 0);
+
   priv->size = 12 * PANGO_SCALE;
   priv->face = NULL;
   priv->family = NULL;
 
+  gtk_widget_show_all (GTK_WIDGET (fontsel));
+  gtk_widget_hide (GTK_WIDGET (fontsel));
+
   gtk_widget_pop_composite_child();
 }
 



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