# HG changeset patch # User Christian Hammond # Date 1041390205 0 # Node ID a55c2a0ddcd41c27befd20f0bfb54e8a2d3110fe # Parent 986c175a607c3df1cb3411f7c676614f97352e6c [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 diff -r 986c175a607c -r a55c2a0ddcd4 plugins/chatlist.c --- 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;