Re: Inconsistent compare function return values
- From: Havoc Pennington <hp redhat com>
- To: Jeff Franks <jcf tpg com au>
- Cc: gtk-devel-list gnome org
- Subject: Re: Inconsistent compare function return values
- Date: 18 Apr 2001 22:07:56 -0400
Jeff Franks <jcf tpg com au> writes:
>
> I have come across two compare functions whose return values are
> inconsistant. For two objects lhs and rhs 'gtk_tree_path_compare'
> returns 1 if lhs appears in the tree before rhs and -1 if it appears
> after rhs, whereas 'gtk_text_iter_compare' returns -1 if lhs appears in
> the text buffer before rhs and 1 if it appears after rhs. For the sake
> of consistancy and to avoid confusion shouldn't 'gtk_tree_path_compare'
> return its positive and negative values the other way around.
>
I would think so, but then I wrote the text iter one. ;-)
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]