Mercurial > pidgin.yaz
comparison gtk/gtkblist.c @ 15027:b9d24ed4cfce
[gaim-migrate @ 17809]
Unleak
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 22 Nov 2006 18:15:01 +0000 |
parents | 36cfa2e714b7 |
children | 0570155bed53 |
comparison
equal
deleted
inserted
replaced
15026:c039c920e11c | 15027:b9d24ed4cfce |
---|---|
3725 return result; | 3725 return result; |
3726 } | 3726 } |
3727 | 3727 |
3728 static void account_modified(GaimAccount *account, GaimGtkBuddyList *gtkblist) | 3728 static void account_modified(GaimAccount *account, GaimGtkBuddyList *gtkblist) |
3729 { | 3729 { |
3730 GList *list; | |
3730 if (!gtkblist) | 3731 if (!gtkblist) |
3731 return; | 3732 return; |
3732 | 3733 |
3733 if (gaim_accounts_get_all_active()) | 3734 if ((list = gaim_accounts_get_all_active()) != NULL) { |
3734 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 1); | 3735 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 1); |
3735 else | 3736 g_list_free(list); |
3737 } else | |
3736 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 0); | 3738 gtk_notebook_set_current_page(GTK_NOTEBOOK(gtkblist->notebook), 0); |
3737 | 3739 |
3738 update_menu_bar(gtkblist); | 3740 update_menu_bar(gtkblist); |
3739 } | 3741 } |
3740 | 3742 |