Mercurial > pidgin.yaz
changeset 1828:643872269616
[gaim-migrate @ 1838]
i don't know if this matters
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Wed, 09 May 2001 05:24:50 +0000 |
parents | bb115612a2ed |
children | bdfb37ae28b4 |
files | src/buddy_chat.c |
diffstat | 1 files changed, 3 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/buddy_chat.c Tue May 08 05:48:27 2001 +0000 +++ b/src/buddy_chat.c Wed May 09 05:24:50 2001 +0000 @@ -55,17 +55,12 @@ static void destroy_prev_jc() { - GList *children, *curr; - GtkWidget *w; if (!jc_vbox) return; - children = g_list_copy(gtk_container_children(GTK_CONTAINER(jc_vbox))); - for (curr = children; curr != NULL; curr = g_list_next(curr)) { - w = (GtkWidget *)curr->data; - gtk_container_remove(GTK_CONTAINER(jc_vbox), w); - } - g_list_free(children); + while (GTK_BOX(jc_vbox)->children) + gtk_container_remove(GTK_CONTAINER(jc_vbox), + ((GtkBoxChild *)GTK_BOX(jc_vbox)->children->data)->widget); } static void destroy_join_chat()