Re: Fixing the GtkTreeModel::row-deleted inconsistency



Hi,

On Wed, 2007-05-09 at 14:06 +0200, Kristian Rietveld wrote:

> Currently this behavior is inconsistent in GTK+, as the GtkListStore and
> GtkTreeStore still emit row-deleted *after* deleting a node.  For the sake
> of consistency I would like to modify both models to also emit row-deleted
> before deleting a node.  This will also allow for other applications to
> release their references to objects in a model row before a row is really
> deleted.  It does however change the behavior if you are iterating
> through the model, the row in the process of being deleted will still be
> "visible", where it was "invisible" before.

Wouldn't it make more sense to introduce a new signal "row-delete" and
use that instead of changing the semantics of "row-deleted"? If that
would have been done in the first place, then you wouldn't have said
inconsistency now.

But then I have to admit that I probably just don't know enough about
the internals.


Sven





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]