comparison finch/libgnt/gnttree.c @ 18118:ab6d2763b8d8

Re-fix the DBus list handling code by killing const GList* / const GSList* everywhere. Now we maintain a list of functions which return a GList or GSList which must not be freed. Ideally at some point this will be replaced with code that looks at the Doxygen comment for the function and honors @constreturn, which I've declared as a macro around @return that prints a @note about not modifying or freeing the returned value.
author Richard Laager <rlaager@wiktel.com>
date Sat, 16 Jun 2007 19:44:59 +0000
parents 1c8853f6bfc6
children 99969affedf5
comparison
equal deleted inserted replaced
18117:cd81f8f36788 18118:ab6d2763b8d8
1015 if (!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_NO_BORDER)) 1015 if (!GNT_WIDGET_IS_FLAG_SET(widget, GNT_WIDGET_NO_BORDER))
1016 ret -= 2; 1016 ret -= 2;
1017 return ret; 1017 return ret;
1018 } 1018 }
1019 1019
1020 const GList *gnt_tree_get_rows(GntTree *tree) 1020 GList *gnt_tree_get_rows(GntTree *tree)
1021 { 1021 {
1022 return tree->list; 1022 return tree->list;
1023 } 1023 }
1024 1024
1025 void gnt_tree_scroll(GntTree *tree, int count) 1025 void gnt_tree_scroll(GntTree *tree, int count)