Mercurial > pidgin.yaz
changeset 26696:892ffe359b51
Don't leak the GObject data and disable the Add/Register buttons when browsing.
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sat, 18 Apr 2009 06:51:59 +0000 |
parents | ba9876c35a5b |
children | 5149ecc8f456 |
files | pidgin/gtkdisco.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkdisco.c Fri Apr 17 16:34:03 2009 +0000 +++ b/pidgin/gtkdisco.c Sat Apr 18 06:51:59 2009 +0000 @@ -98,6 +98,9 @@ if (!gc) return; + gtk_widget_set_sensitive(dialog->add_button, FALSE); + gtk_widget_set_sensitive(dialog->register_button, FALSE); + if (dialog->discolist != NULL) { pdl = purple_disco_list_get_ui_data(dialog->discolist); gtk_widget_destroy(pdl->tree); @@ -160,7 +163,8 @@ info->list = dialog->discolist; info->service = service; - g_object_set_data(G_OBJECT(dialog->add_button), "disco-info", info); + g_object_set_data_full(G_OBJECT(dialog->add_button), "disco-info", + info, g_free); g_object_set_data(G_OBJECT(dialog->register_button), "disco-info", info); flags = purple_disco_service_get_flags(service);