GNOME Bugzilla – Bug 626276
gtk_tree_selection_set_select_function() should allow function to be NULL
Last modified: 2010-08-10 11:36:05 UTC
It's unexpected that while the initial selection function in GtkTreeSelection is NULL, you can't reset it back to NULL after setting it to a custom function temporarily. This basically means that once you called gtk_tree_selection_set_select_function() you can't ever undo it any more. IMHO the g_return_if_fail (func != NULL); line in gtk_tree_selection_set_select_function() should simply be removed, the rest of the code already deals with NULL selection function just fine.