[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 16:22:47
Message-ID: 1253290967.5320.51.camel () leidi
[Download RAW message or body]
Am Freitag, den 18.09.2009, 13:23 +0200 schrieb Kristian Rietveld:
> On Wed, Sep 16, 2009 at 10:56 PM, Daniel Leidert
> <daniel.leidert.spam@gmx.net> wrote:
> >> Doh! Attached.
>
> The program in the attachment tries to set the cursor on a path that
> does not exist in the tree view. This path does not exist in the
> view, because the view is not connected to a model. Because of this,
> the call to gtk_tree_view_set_cursor() will print the assertion as an
> invalid path has been provided. And because
> gtk_tree_view_set_cursor() failed to set the cursor,
> gtk_tree_view_get_cursor() will return a NULL path.
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?
The problem I'm trying to reproduce is the testcase from
http://git.gnome.org/cgit/perl-Gtk2/tree/t/GtkTreeView.t. This one fails
in line 233 (->to_string()) on recent Debian system, because it seems
the path returned is NULL. So I'm trying to program this in C to check,
if the result is the same. And it seems to be the case.
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