[glade] GladeEditorProperty: Enable word wrapping in combo boxes.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] GladeEditorProperty: Enable word wrapping in combo boxes.
- Date: Wed, 1 May 2013 16:37:54 +0000 (UTC)
commit 0863f386bf19a5305a14d587abe1c77c2469e1fb
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Thu May 2 01:37:32 2013 +0900
GladeEditorProperty: Enable word wrapping in combo boxes.
gladeui/glade-editor-property.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index d5f0a7e..f812293 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -899,6 +899,10 @@ glade_eprop_enum_create_input (GladeEditorProperty *eprop)
gtk_widget_set_hexpand (eprop_enum->combo_box, TRUE);
cell_renderer = gtk_cell_renderer_text_new ();
+ g_object_set (cell_renderer,
+ "wrap-mode", PANGO_WRAP_WORD,
+ "wrap-width", 10,
+ NULL);
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (eprop_enum->combo_box),
cell_renderer, TRUE);
gtk_cell_layout_add_attribute (GTK_CELL_LAYOUT (eprop_enum->combo_box),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]