diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-08-16 20:52:23 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-08-16 20:52:23 +0000 |
commit | f50e3bbb474a43aef77ea40eaba0c9b1d4404d58 (patch) | |
tree | e1d2725818ecd68753af94918b74c5aea01bf1fe | |
parent | ed28e4ac7d20f0b822a0232912dd1c7ba4350a47 (diff) | |
download | gtk+-f50e3bbb474a43aef77ea40eaba0c9b1d4404d58.tar.gz |
Add some docs to the row-deleted signal. (#349128, Benedikt Meurer)
2006-08-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreemodel.c (gtk_tree_model_base_init): Add some
docs to the row-deleted signal. (#349128, Benedikt Meurer)
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 3 | ||||
-rw-r--r-- | gtk/gtktreemodel.c | 7 |
3 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,8 @@ 2006-08-16 Matthias Clasen <mclasen@redhat.com> + * gtk/gtktreemodel.c (gtk_tree_model_base_init): Add some + docs to the row-deleted signal. (#349128, Benedikt Meurer) + * gtk/gtkiconview.c: Update background upon style-set and state-changed. (#348634, Thomas Rydzynski) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 145304e74e..fde6f3630d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2006-08-16 Matthias Clasen <mclasen@redhat.com> + * gtk/gtktreemodel.c (gtk_tree_model_base_init): Add some + docs to the row-deleted signal. (#349128, Benedikt Meurer) + * gtk/gtkiconview.c: Update background upon style-set and state-changed. (#348634, Thomas Rydzynski) diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 15b547bf01..68ce31482b 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -231,6 +231,13 @@ gtk_tree_model_base_init (gpointer g_class) * * Note that no iterator is passed to the signal handler, * since the row is already deleted. + * + * Implementations of GtkTreeModel must emit row-deleted + * <emphasis>before</emphasis> removing the node from its + * internal data structures. This is because models and + * views which access and monitor this model might have + * references on the node which need to be released in the + * row-deleted handler. */ closure = g_closure_new_simple (sizeof (GClosure), NULL); g_closure_set_marshal (closure, row_deleted_marshal); |