(init): Set the mode on the text cell

renderer to GTK_CELL_RENDERER_MODE_ACTIVATABLE so clicking on the
text doesn't change the status of the checkbox.  [Many thanks to
Jonathan Blandford for telling me how to do this!]

svn path=/trunk/; revision=23588
This commit is contained in:
Ettore Perazzoli
2003-12-02 20:31:02 +00:00
parent 00bae1514a
commit 3db4f804fd
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2003-12-02 Ettore Perazzoli <ettore@ximian.com>
* e-source-selector.c (init): Set the mode on the text cell
renderer to GTK_CELL_RENDERER_MODE_ACTIVATABLE so clicking on the
text doesn't change the status of the checkbox. [Many thanks to
Jonathan Blandford for telling me how to do this!]
2003-12-01 JP Rosevear <jpr@ximian.com>
* e-source-selector.c (class_init): list the signal args properly

View File

@ -469,6 +469,7 @@ init (ESourceSelector *selector)
g_signal_connect (cell_renderer, "toggled", G_CALLBACK (cell_toggled_callback), selector);
cell_renderer = gtk_cell_renderer_text_new ();
g_object_set (G_OBJECT (cell_renderer), "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL);
gtk_tree_view_column_pack_start (column, cell_renderer, TRUE);
gtk_tree_view_column_set_cell_data_func (column, cell_renderer, (GtkTreeCellDataFunc) text_cell_data_func, selector, NULL);