Mercurial > pidgin.yaz
diff pidgin/plugins/gevolution/gevo-util.c @ 20028:a2b4eac83902
Part of #1332 to introduce pidgin_text_combo_box_new_entry and
accessor functions. I made some changes to:
* Not leak
* Popup the dropdown when up/down arrows are pressed, to imitate the old
behaviour to some extent.
* Change the accessor defines to accessor functions.
I think this all works OK now. Yell at me if things don't work, and then fix
it. :-P
| author | Sadrul Habib Chowdhury <imadil@gmail.com> |
|---|---|
| date | Fri, 14 Sep 2007 08:27:26 +0000 |
| parents | 44b4e8bd759b |
| children | ab2c3a93267e |
line wrap: on
line diff
--- a/pidgin/plugins/gevolution/gevo-util.c Fri Sep 14 06:00:03 2007 +0000 +++ b/pidgin/plugins/gevolution/gevo-util.c Fri Sep 14 08:27:26 2007 +0000 @@ -55,10 +55,13 @@ GList * gevo_get_groups(void) { - GList *list = NULL; + static GList *list = NULL; PurpleGroup *g; PurpleBlistNode *gnode; + g_list_free(list); + list = NULL; + if (purple_get_blist()->root == NULL) { list = g_list_append(list, (gpointer)_("Buddies"));
