From 44adf811ea3831573566b75c686a0c89f5141ed3 Mon Sep 17 00:00:00 2001 From: Davyd Madeley Date: Mon, 24 Aug 2009 15:41:37 +1000 Subject: [PATCH] [GtkSizeGroup] don't recurse into yourself --- gtk/gtksizegroup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c index 5926b52557..6cd02c0e2e 100644 --- a/gtk/gtksizegroup.c +++ b/gtk/gtksizegroup.c @@ -223,6 +223,10 @@ queue_resize_on_widget (GtkWidget *widget, if (widget == parent) real_queue_resize (parent); } + else if (tmp_list->data == widget) + { + g_warning ("A container and its child are part of this SizeGroup"); + } else queue_resize_on_widget (tmp_list->data, FALSE); @@ -249,6 +253,10 @@ queue_resize_on_widget (GtkWidget *widget, if (widget == parent) real_queue_resize (parent); } + else if (tmp_list->data == widget) + { + g_warning ("A container and its child are part of this SizeGroup"); + } else queue_resize_on_widget (tmp_list->data, FALSE);