diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-03-29 13:22:18 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-03-29 13:22:18 -0400 |
commit | 7e43059e841d0455227e6e64b4853700d8df89c4 (patch) | |
tree | a7e5f066251c5c4e4e29a461398e95f2644f3c44 /gtk/gtktoolpalette.c | |
parent | 133e3e84a7ddfc3ff403540834fde983a9f16085 (diff) | |
download | gtk+-7e43059e841d0455227e6e64b4853700d8df89c4.tar.gz |
Added missing default events in realize() implementations
Added gtk_widget_get_events() to the event masks declared by
GtkToolPalette & GtkToolItemGroup.
Diffstat (limited to 'gtk/gtktoolpalette.c')
-rw-r--r-- | gtk/gtktoolpalette.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c index e7b94007a7..fa37edcc56 100644 --- a/gtk/gtktoolpalette.c +++ b/gtk/gtktoolpalette.c @@ -662,9 +662,10 @@ gtk_tool_palette_realize (GtkWidget *widget) attributes.wclass = GDK_INPUT_OUTPUT; attributes.visual = gtk_widget_get_visual (widget); attributes.colormap = gtk_widget_get_colormap (widget); - attributes.event_mask = GDK_VISIBILITY_NOTIFY_MASK | GDK_EXPOSURE_MASK - | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK - | GDK_BUTTON_MOTION_MASK; + attributes.event_mask = gtk_widget_get_events (widget) + | GDK_VISIBILITY_NOTIFY_MASK | GDK_EXPOSURE_MASK + | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK + | GDK_BUTTON_MOTION_MASK; widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask); |