[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gtk-app-devel
Subject:    Re: Bug in GtkTreeView or programming bug?
From:       Daniel Leidert <daniel.leidert.spam () gmx ! net>
Date:       2009-09-18 22:23:21
Message-ID: 1253312601.5320.64.camel () leidi
[Download RAW message or body]

Am Freitag, den 18.09.2009, 21:44 +0200 schrieb Kristian Rietveld:
> On Fri, Sep 18, 2009 at 6:22 PM, Daniel Leidert
> <daniel.leidert.spam@gmx.net> wrote:
> > Thanks for your hints. Yes, the code was incomplete. But I think the
> > attached code should work. It still returns:
> >
> > (<unknown>:20960): Gtk-CRITICAL **: gtk_tree_path_to_string: assertion
> > `path != NULL' failed
> > path=(null)
> >
> > Am I still doing something wrong?
> 
> Setting the cursor still fails because path "1:0" is not visible in
> the tree view (although the path does exist in the model).  It is not
> visible in the tree view because node "1" is collapsed.  If you expand
> node "1" first, then the call to gtk_tree_view_set_cursor() will
> succeed as well as the call to gtk_tree_view_get_cursor().

Many thanks. Expanding the GtkTreeView fixes the test-suite of perl-gtk2
and also my test program.

Regards, Daniel

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic