[glade3] * gladui/glade-editor-property.c: Set a width-chars on the eprop label so that line wrapping kic



commit 356e9f421d39dc1019349f16407c404d077a121f
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Dec 27 13:56:31 2010 +0900

    	* gladui/glade-editor-property.c: Set a width-chars on the eprop label so that
    	  line wrapping kicks in.

 ChangeLog                       |    3 +++
 gladeui/glade-editor-property.c |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5592589..8e4ecbe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,9 @@
 	* gladui/glade-editor-table.c: Align name field on the right with all the other
 	  properties.
 
+	* gladui/glade-editor-property.c: Set a width-chars on the eprop label so that
+	  line wrapping kicks in.
+
 2010-12-23  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-widget.c: Check if object is actually in the parent when rebuilding
diff --git a/gladeui/glade-editor-property.c b/gladeui/glade-editor-property.c
index 255de0f..c8d15d2 100644
--- a/gladeui/glade-editor-property.c
+++ b/gladeui/glade-editor-property.c
@@ -286,6 +286,7 @@ glade_editor_property_constructor (GType                  type,
 	hbox = gtk_hbox_new (FALSE, 4);
 
 	gtk_label_set_line_wrap (GTK_LABEL(eprop->label), TRUE);
+	gtk_label_set_width_chars (GTK_LABEL(eprop->label), 10);
 	gtk_label_set_line_wrap_mode (GTK_LABEL(eprop->label), PANGO_WRAP_WORD_CHAR);
 
 	gtk_misc_set_alignment (GTK_MISC(eprop->label), 1.0, 0.5);



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