changeset 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 ada933d434cb
children 6e3b8a8a143f
files src/gtkconv.c
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkconv.c	Sat Mar 08 01:21:25 2003 +0000
+++ b/src/gtkconv.c	Sat Mar 08 02:33:43 2003 +0000
@@ -1986,10 +1986,19 @@
 		 child = child->next) {
 
 		GtkWidget *item = child->data;
+		GtkWidget *box;
+		GList *children;
 		GtkWidget *label;
 		const char *title;
 
-		label = gtk_bin_get_child(GTK_BIN(item));
+		box = gtk_bin_get_child(GTK_BIN(item));
+
+		children = gtk_container_get_children(GTK_CONTAINER(box));
+
+		if(g_list_length(children) < 2)
+			continue;
+
+		label = g_list_nth_data(children, 1);
 
 		if (!GTK_IS_LABEL(label))
 			continue;