comparison src/gtkconv.c @ 4671:ac9756f48544

[gaim-migrate @ 4982] i'll clean this up with a less hackish fix later, but for now it'd be nice to have it un-broken. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 08 Mar 2003 02:33:43 +0000
parents d715736164ae
children 049ea04f99d9
comparison
equal deleted inserted replaced
4670:ada933d434cb 4671:ac9756f48544
1984 for (child = gtk_container_get_children(GTK_CONTAINER(menu)); 1984 for (child = gtk_container_get_children(GTK_CONTAINER(menu));
1985 child != NULL; 1985 child != NULL;
1986 child = child->next) { 1986 child = child->next) {
1987 1987
1988 GtkWidget *item = child->data; 1988 GtkWidget *item = child->data;
1989 GtkWidget *box;
1990 GList *children;
1989 GtkWidget *label; 1991 GtkWidget *label;
1990 const char *title; 1992 const char *title;
1991 1993
1992 label = gtk_bin_get_child(GTK_BIN(item)); 1994 box = gtk_bin_get_child(GTK_BIN(item));
1995
1996 children = gtk_container_get_children(GTK_CONTAINER(box));
1997
1998 if(g_list_length(children) < 2)
1999 continue;
2000
2001 label = g_list_nth_data(children, 1);
1993 2002
1994 if (!GTK_IS_LABEL(label)) 2003 if (!GTK_IS_LABEL(label))
1995 continue; 2004 continue;
1996 2005
1997 title = gtk_label_get_text(GTK_LABEL(label)); 2006 title = gtk_label_get_text(GTK_LABEL(label));