(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:
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user