Mercurial > pidgin.yaz
changeset 4164:a55c2a0ddcd4
[gaim-migrate @ 4393]
The chat list plugin wasn't working, due to a left-over variable that
is in a perpetual state of NULLness, and the checking of that variable
for a value before loading chats. Fixed.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Wed, 01 Jan 2003 03:03:25 +0000 |
parents | 986c175a607c |
children | 07a3d1fae88f |
files | plugins/chatlist.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/chatlist.c Tue Dec 31 21:00:55 2002 +0000 +++ b/plugins/chatlist.c Wed Jan 01 03:03:25 2003 +0000 @@ -28,7 +28,6 @@ static GtkWidget *item = NULL; /* this is the parent tree */ static GList *chat_rooms = NULL; -static GtkWidget *parent = NULL; /* this is the config thing where you can see the list */ static struct chat_page *cp = NULL; static void des_item() @@ -145,8 +144,6 @@ if (!text) return; - if (!parent) - return; len = strlen(text); @@ -196,6 +193,7 @@ cr = g_new0(struct chat_room, 1); strcpy(cr->name, name); cr->exchange = exchange; + printf("Adding '%s'\n", name); item = gtk_list_item_new_with_label(name); gtk_widget_show(item); items = g_list_append(items, item); @@ -388,10 +386,6 @@ G_MODULE_EXPORT void gaim_plugin_remove() { - if (parent) - gtk_widget_destroy(parent); - parent = NULL; - if (item) gtk_tree_remove_item(GTK_TREE(buddies), item); item = NULL;