Inconsistent compare function return values



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]