[gtk+/font-chooser] Make the fontchooser dialog come up in a reasonable size



commit 647f3dc2c9cbedde693811331399f52aab49e360
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Aug 9 16:13:58 2011 +0200

    Make the fontchooser dialog come up in a reasonable size
    
    This is not a perfect solution; we really just want to set
    a nice default size, but GTK+ does not make that easy.

 gtk/gtkfontchooser.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkfontchooser.c b/gtk/gtkfontchooser.c
index 63cbbd5..cdf1384 100644
--- a/gtk/gtkfontchooser.c
+++ b/gtk/gtkfontchooser.c
@@ -573,6 +573,7 @@ gtk_font_chooser_init (GtkFontChooser *fontchooser)
                                   GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
   gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolled_win),
                                        GTK_SHADOW_ETCHED_IN);
+  gtk_widget_set_size_request (scrolled_win, 400, 300);
   gtk_container_add (GTK_CONTAINER (scrolled_win),
                      priv->family_face_list);
 



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