From gtk-app-devel Fri Sep 18 22:23:21 2009 From: Daniel Leidert Date: Fri, 18 Sep 2009 22:23:21 +0000 To: gtk-app-devel Subject: Re: Bug in GtkTreeView or programming bug? Message-Id: <1253312601.5320.64.camel () leidi> X-MARC-Message: https://marc.info/?l=gtk-app-devel&m=125331262423127 Am Freitag, den 18.09.2009, 21:44 +0200 schrieb Kristian Rietveld: > On Fri, Sep 18, 2009 at 6:22 PM, Daniel Leidert > wrote: > > Thanks for your hints. Yes, the code was incomplete. But I think the > > attached code should work. It still returns: > > > > (: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