Re: custom TreeModel

On Aug 22, 2005, at 5:53 AM, Jens Luedicke wrote:

muppet wrote:

On Aug 21, 2005, at 3:38 PM, Jens Luedicke wrote:

if I call Filer::ListStore->new:

Can't locate object method "new" via package "Filer::ListStore" at
/home/jens/devel/filer/Filer/ line 96.

I wonder why it doesn't work - my implementation is basically the same
thing as CustomList.


This is how it looks like now (code attached).

the following error comes up after clearing and appending new items:

Gtk-CRITICAL **: file gtktreeview.c: line 4827 (validate_visible_area):
assertion `has_next' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel.  This generally means that the model has changed
without letting the view know.  Any display from now on is likely to
be incorrect.

I guess my clear() method isn't perfect.

I can't recreate this with a little test program, so obviously i'm not exercising the broken code. Can you post some driver code that exhibits the problem?

Examples really shouldn't include unexploded ordnance.
  -- Joe Smith, referring to an example program i wrote.

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