[glade3] * gladeui/glade-signal-editor.c: - Reordered support icon to come before the signal name and let



commit 2cf0d26f393a762150ed7b5100481bd8292e86ad
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Mon Mar 29 16:46:25 2010 -0400

    	* gladeui/glade-signal-editor.c:
    	  - Reordered support icon to come before the signal name and let the column be user
    	    resizable along with the others (non-resizable unellipzised signal name columns expand over time)

 ChangeLog                     |    2 ++
 gladeui/glade-signal-editor.c |   27 ++++++++++++++++-----------
 2 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b53b4c1..8727b97 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -11,6 +11,8 @@
 	  - Now show an icon and tooltip in rows for signals that are only
 	    supported in the future, refresh them when support changes.
 	  - Dont show swapped column in libglade mode
+	  - Reordered support icon to come before the signal name and let the column be user
+	    resizable along with the others (non-resizable unellipzised signal name columns expand over time)
 
 	* gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Added some version checking macros.
 
diff --git a/gladeui/glade-signal-editor.c b/gladeui/glade-signal-editor.c
index c9d5952..2898629 100644
--- a/gladeui/glade-signal-editor.c
+++ b/gladeui/glade-signal-editor.c
@@ -815,26 +815,31 @@ glade_signal_editor_construct_signals_list (GladeSignalEditor *editor)
 	column = gtk_tree_view_column_new ();
 	column_header_widget (column, _("Signal"), _("The name of the signal to connect to"));
 
- 	renderer = gtk_cell_renderer_text_new ();
+	renderer = gtk_cell_renderer_pixbuf_new ();
+	g_object_set (G_OBJECT (renderer), "icon-name", GTK_STOCK_DIALOG_WARNING, NULL);
+
 	gtk_tree_view_column_pack_start (column, renderer, FALSE);
 	gtk_tree_view_column_set_attributes (column, renderer, 
-					     "text", GSE_COLUMN_SIGNAL, 
+					     "visible", GSE_COLUMN_WARN, 
 					     NULL);
 
 
+ 	renderer = gtk_cell_renderer_text_new ();
+	g_object_set (G_OBJECT (renderer),
+		      "ellipsize", PANGO_ELLIPSIZE_END,
+		      "width-chars", 20,
+		      NULL);
+	gtk_tree_view_column_pack_end (column, renderer, TRUE);
+	gtk_tree_view_column_set_attributes (column, renderer, 
+					     "text", GSE_COLUMN_SIGNAL, 
+					     NULL);
+
 	gtk_tree_view_column_set_cell_data_func (column, renderer,
 						 glade_signal_editor_signal_cell_data_func,
 						 NULL, NULL);
 
-
-	renderer = gtk_cell_renderer_pixbuf_new ();
-	g_object_set (G_OBJECT (renderer), "icon-name", GTK_STOCK_DIALOG_WARNING, NULL);
-
-	gtk_tree_view_column_pack_end (column, renderer, FALSE);
-	gtk_tree_view_column_set_attributes (column, renderer, 
-					     "visible", GSE_COLUMN_WARN, 
-					     NULL);
-
+ 	gtk_tree_view_column_set_resizable (column, TRUE);
+ 	gtk_tree_view_column_set_expand (column, TRUE);
  	gtk_tree_view_append_column (view, column);
 
 	/************************ handler column ************************/



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