Properly handle model changes in GtkTreeSelection: (#322569, Milosz
2005-11-29 Matthias Clasen <mclasen@redhat.com> Properly handle model changes in GtkTreeSelection: (#322569, Milosz Derezynski) * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): Get a reference to the model, and stop the iteration if the model of the treeview is changed on the way. * gtk/gtktreeprivate.h: * gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New private function to emit the GtkTreeSelection::changed signal. * gtk/gtktreeview.c (gtk_tree_view_set_model): Call _gtk_tree_selection_emit_changed() when the model changes.
This commit is contained in:
committed by
Matthias Clasen
parent
62ed8cb115
commit
924765a2fe
@ -312,6 +312,7 @@ void _gtk_tree_selection_internal_select_node (GtkTreeSelection *select
|
||||
GtkTreePath *path,
|
||||
GtkTreeSelectMode mode,
|
||||
gboolean override_browse_mode);
|
||||
void _gtk_tree_selection_emit_changed (GtkTreeSelection *selection);
|
||||
gboolean _gtk_tree_view_find_node (GtkTreeView *tree_view,
|
||||
GtkTreePath *path,
|
||||
GtkRBTree **tree,
|
||||
|
||||
Reference in New Issue
Block a user