Re: Bug in GtkTreeView or programming bug?
- From: Daniel Leidert <daniel leidert spam gmx net>
- To: Kristian Rietveld <kris gtk org>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Bug in GtkTreeView or programming bug?
- Date: Fri, 18 Sep 2009 18:22:47 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]