From 48473b48e64d9d521d2d4519ba1f674f0efaa1dc Mon Sep 17 00:00:00 2001 From: Alberto Ruiz Date: Fri, 15 Apr 2011 23:22:38 +0100 Subject: [PATCH] GtkFontChooser: Set vbox to no homogeneus --- gtk/gtkfontchooser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c index 40dbeb8601..98c27552e5 100644 --- a/gtk/gtkfontchooser.c +++ b/gtk/gtkfontchooser.c @@ -59,6 +59,7 @@ #include "gtkprivate.h" #include "gtkalignment.h" #include "gtkscale.h" +#include "gtkbox.h" /** @@ -309,6 +310,7 @@ gtk_font_selection_init (GtkFontSelection *fontsel) (gdouble) font_sizes[0], (gdouble) font_sizes[FONT_SIZES_LENGTH - 1], 1.0); + priv->size_spin = gtk_spin_button_new (NULL, 1.0, 0); /* Main font family/face view */ @@ -320,6 +322,7 @@ gtk_font_selection_init (GtkFontSelection *fontsel) gtk_alignment_set_padding (alignment, PREVIEW_TOP_PADDING, 0, 0, 0); preview_and_size = gtk_vbox_new (TRUE, 0); + gtk_box_set_homogeneous (GTK_BOX (preview_and_size), FALSE); gtk_box_pack_start (GTK_BOX (preview_and_size), priv->preview, FALSE, TRUE, 0); gtk_widget_set_size_request (priv->preview, -1, PREVIEW_HEIGHT); @@ -329,7 +332,7 @@ gtk_font_selection_init (GtkFontSelection *fontsel) gtk_box_pack_start (GTK_BOX (size_controls), priv->size_slider, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (size_controls), priv->size_spin, FALSE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (preview_and_size), size_controls, FALSE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (preview_and_size), size_controls, FALSE, FALSE, 0); gtk_container_add (GTK_CONTAINER (alignment), preview_and_size); /* Packing everything in the selection */