diff options
author | Tristan Van Berkom <tvb@src.gnome.org> | 2007-07-17 19:40:58 +0000 |
---|---|---|
committer | Tristan Van Berkom <tvb@src.gnome.org> | 2007-07-17 19:40:58 +0000 |
commit | c5033b38b3766ec51b41b35387add18d866dab67 (patch) | |
tree | ed4590ae3b7902081a3275b5dc13f8fe1fbadf9e | |
parent | f3e647a48eea3d51922deca10a9b9f69bd520902 (diff) | |
download | glade-c5033b38b3766ec51b41b35387add18d866dab67.tar.gz |
Dont connect event handlers to child objects of fixed containers that aregdl-integration-branchpoint
* gladeui/glade-fixed.c: Dont connect event handlers to child objects of fixed
containers that are not widgets.
svn path=/trunk/; revision=1484
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | gladeui/glade-fixed.c | 6 |
2 files changed, 8 insertions, 1 deletions
@@ -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 | |