[gtk+] GtkFontChooser: Adding the preview



commit f0eef60123a4742cb15c0ba1c4398dffb7974e8b
Author: Alberto Ruiz <aruiz gnome org>
Date:   Fri Apr 15 22:28:50 2011 +0100

    GtkFontChooser: Adding the preview

 gtk/gtkfontchooser.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 0bdcfec..fad7012 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -321,6 +321,9 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
   gtk_alignment_set_padding (alignment, 6, 0, 0, 0);
 
   preview_and_size = gtk_vbox_new (TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (preview_and_size), priv->preview, FALSE, TRUE, 0);
+  size_controls = gtk_hbox_new (TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (preview_and_size), size_controls, FALSE, TRUE, 0);
   gtk_container_add (GTK_CONTAINER (alignment), preview_and_size);
 
   /* Packing everything in the selection */



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