Re: Inconsistent compare function return values
- From: jrb redhat com
- To: Jeff Franks <jcf tpg com au>
- Cc: gtk-devel-list gnome org
- Subject: Re: Inconsistent compare function return values
- Date: 20 Apr 2001 12:36:49 -0400
Jeff Franks <jcf tpg com au> writes:
> Hi,
>
> 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.
Fixed.
-Jonathan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]