[gtk+] Don't assume widgets are containers when walking the focus tree
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't assume widgets are containers when walking the focus tree
- Date: Fri, 8 Oct 2010 23:28:45 +0000 (UTC)
commit f8b573766d5a9da7c0a48bcd1f1054158e67fcc0
Author: William Jon McCann <jmccann redhat com>
Date: Fri Oct 8 19:26:01 2010 -0400
Don't assume widgets are containers when walking the focus tree
This causes problems for links in labels.
gtk/gtkcontainer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index 3f6f287..055a2ea 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -1867,7 +1867,7 @@ gtk_container_real_set_focus_child (GtkContainer *container,
{
focus_child = priv->focus_child;
- while (gtk_container_get_focus_child (GTK_CONTAINER (focus_child)))
+ while (GTK_IS_CONTAINER (focus_child) && gtk_container_get_focus_child (GTK_CONTAINER (focus_child)))
{
focus_child = gtk_container_get_focus_child (GTK_CONTAINER (focus_child));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]