summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--gladeui/glade-fixed.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e034772b..be01cb18 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,9 @@
GladeDesignLayout and dispatch the event through glade_design_layout_widget_event()
(this fixes multiple projects recieving the same events, bug 456013).
+ * gladeui/glade-fixed.c: Dont connect event handlers to child objects of fixed
+ containers that are not widgets.
+
2006-07-16 Tristan Van Berkom <tvb@gnome.org>
* src/glade-window.c: Now undocked windows can be redocked by hitting
diff --git a/gladeui/glade-fixed.c b/gladeui/glade-fixed.c
index ff4d1387..2162721a 100644
--- a/gladeui/glade-fixed.c
+++ b/gladeui/glade-fixed.c
@@ -676,7 +676,11 @@ glade_fixed_add_child_impl (GladeWidget *gwidget_fixed,
/* Chain up for the basic parenting */
GLADE_WIDGET_CLASS (parent_class)->add_child
(GLADE_WIDGET (fixed), child, at_mouse);
-
+
+ /* We only operate on widgets here */
+ if (!GTK_IS_WIDGET (child->object))
+ return;
+
gtk_widget_add_events (GTK_WIDGET (child->object),
GDK_POINTER_MOTION_MASK |
GDK_POINTER_MOTION_HINT_MASK |