[gtk+/font-selection-new: 7/73] GtkFontSelection: Adding the alignment to the selection



commit 4019f17aaffbb92f4435efa1f04a5ede02c2e358
Author: Alberto Ruiz <aruiz gnome org>
Date:   Fri Apr 15 22:26:45 2011 +0100

    GtkFontSelection: Adding the alignment to the selection

 gtk/gtkfontsel.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 76df825..0bdcfec 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -288,6 +288,8 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
 
   GtkWidget               *scrolled_win;
   GtkWidget               *alignment;
+  GtkWidget               *preview_and_size;
+  GtkWidget               *size_controls;
   GList                   *focus_chain = NULL;
   AtkObject *atk_obj;
 
@@ -318,12 +320,13 @@ gtk_font_selection_init (GtkFontSelection *fontsel)
   alignment = gtk_alignment_new (0.5, 0.5, 1.0, 1.0);
   gtk_alignment_set_padding (alignment, 6, 0, 0, 0);
 
-  
-  
+  preview_and_size = gtk_vbox_new (TRUE, 0);
+  gtk_container_add (GTK_CONTAINER (alignment), preview_and_size);
 
   /* Packing everything in the selection */
   gtk_box_pack_start (GTK_BOX (fontsel), priv->search_entry, FALSE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (fontsel), scrolled_win, TRUE, TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (fontsel), GTK_WIDGET(alignment), FALSE, FALSE, 0);
 
   priv->size = 12 * PANGO_SCALE;
   priv->face = NULL;



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