[gtk+] [GtkSizeGroup] don't recurse into yourself
- From: Davyd Madeley <davyd src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk+] [GtkSizeGroup] don't recurse into yourself
- Date: Sun, 30 Aug 2009 00:48:03 +0000 (UTC)
commit 44adf811ea3831573566b75c686a0c89f5141ed3
Author: Davyd Madeley <davyd madeley id au>
Date: Mon Aug 24 15:41:37 2009 +1000
[GtkSizeGroup] don't recurse into yourself
gtk/gtksizegroup.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtksizegroup.c b/gtk/gtksizegroup.c
index 5926b52..6cd02c0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]