[gtk+/font-selection-new: 4/73] GtkFontSelection: Avoid using show_all explicitely



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

    GtkFontSelection: Avoid using show_all explicitely

 gtk/gtkfontsel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index a2fc26c..aba2cd9 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.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]