Commit 2cf0d26f authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

* 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)
parent 5916da88
......@@ -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.
......
......@@ -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 ************************/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment