comparison finch/gntprefs.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 c61187e0c752
children b8572b937c09
comparison
equal deleted inserted replaced
18117:cd81f8f36788 18118:ab6d2763b8d8
87 87
88 static GList * 88 static GList *
89 get_status_titles() 89 get_status_titles()
90 { 90 {
91 GList *list = NULL; 91 GList *list = NULL;
92 const GList *iter; 92 GList *iter;
93 for (iter = purple_savedstatuses_get_all(); iter; iter = iter->next) { 93 for (iter = purple_savedstatuses_get_all(); iter; iter = iter->next) {
94 char *str; 94 char *str;
95 if (purple_savedstatus_is_transient(iter->data)) 95 if (purple_savedstatus_is_transient(iter->data))
96 continue; 96 continue;
97 str = g_strdup_printf("%ld", purple_savedstatus_get_creation_time(iter->data)); 97 str = g_strdup_printf("%ld", purple_savedstatus_get_creation_time(iter->data));