[gtk+/font-chooser] GtkFontChooser: Fix expand and fill properties for the grid layout
- From: Alberto Ruiz <aruiz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/font-chooser] GtkFontChooser: Fix expand and fill properties for the grid layout
- Date: Wed, 13 Jul 2011 22:07:42 +0000 (UTC)
commit 7090984565f70f4301b9fa2098b8789da175904d
Author: Alberto Ruiz <aruiz gnome org>
Date: Wed Jul 13 23:06:43 2011 +0100
GtkFontChooser: Fix expand and fill properties for the grid layout
gtk/gtkfontchooser.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 8195db7..d8082be 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -564,7 +564,11 @@ gtk_font_chooser_init (GtkFontChooser *fontchooser)
gtk_grid_attach (GTK_GRID (grid), priv->size_slider, 0, 3, 2, 1);
gtk_grid_attach (GTK_GRID (grid), priv->size_spin, 2, 3, 1, 1);
- gtk_box_pack_start (GTK_BOX (fontchooser), grid, TRUE, FALSE, 0);
+ gtk_widget_set_hexpand (GTK_WIDGET (scrolled_win), TRUE);
+ gtk_widget_set_vexpand (GTK_WIDGET (scrolled_win), TRUE);
+ gtk_widget_set_hexpand (GTK_WIDGET (priv->search_entry), TRUE);
+
+ gtk_box_pack_start (GTK_BOX (fontchooser), grid, TRUE, TRUE, 0);
/* Setting the adjustment values for the size slider */
gtk_adjustment_set_value (gtk_range_get_adjustment (GTK_RANGE (priv->size_slider)),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]