[glade] GladeEditorProperty: Minimum width of 8 chars for combo boxes (before wrapping)



commit 64ed9edbbe263a1cf3053349d50d0a27e908904d
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Thu May 2 14:40:51 2013 +0900

    GladeEditorProperty: Minimum width of 8 chars for combo boxes (before wrapping)

 gladeui/glade-editor-property.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index f812293..e811de6 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -901,7 +901,8 @@ glade_eprop_enum_create_input (GladeEditorProperty *eprop)
   cell_renderer = gtk_cell_renderer_text_new ();
   g_object_set (cell_renderer,
                "wrap-mode", PANGO_WRAP_WORD,
-               "wrap-width", 10,
+               "wrap-width", 1,
+               "width-chars", 8,
                NULL);
   gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (eprop_enum->combo_box),
                               cell_renderer, TRUE);


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