Inconsistent compare function return values
- From: Jeff Franks <jcf tpg com au>
- To: gtk-devel-list gnome org
- Subject: Inconsistent compare function return values
- Date: Thu, 19 Apr 2001 10:57:49 +1000
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.
Jeff.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]