Re: gtk_tree_path_new_from_indices and gtk_tree_row_reference_new
- From: Torsten Schoenfeld <kaffeetisch web de>
- To: gtk-perl-list gnome org
- Subject: Re: gtk_tree_path_new_from_indices and gtk_tree_row_reference_new
- Date: Thu, 21 Aug 2003 22:13:46 +0200
On Thu, 21 Aug 2003 13:00:56 -0400 (EDT), muppet wrote:
well, the docs say to terminate the list with a -1, so we *will* have people
sticking a -1 in the list. gtk_tree_path_append_index asserts that index>=0,
and will put a warning on stderr[*] to that effect. should we trap that at
the wrapper level and print out a friendly message that says "you don't need a
sentinel"? there's nothing else intelligent we can do with a negative value,
because we don't have a model and thus can't consider it to be so many from
the end...
In general, I'd say a warning from within the wrapper would be nice.
But there's something different wrong here: I use GTK+ 2.2.2.
gtk_tree_path_append_index asserts index >= 0:
g_return_if_fail (index >= 0);
Despite that, when I do something like:
my $path = Gtk2::TreePath -> new_from_indices(1, 0, -1);
print $path -> to_string(), "\n";
or
my $path = Gtk2::TreePath -> new("1:0");
$path -> append_index(-1);
print $path -> to_string(), "\n";
"1:0:-1" is printed. Can anyone shed some light on this?
Bye,
-Torsten
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]