Removed spurious add_events call
This commit is contained in:
parent
9d1054f838
commit
7e46bc504f
1 changed files with 5 additions and 7 deletions
|
|
@ -74,7 +74,11 @@ TimelineHeaderWidget::on_realize()
|
|||
attributes.width = allocation.get_width();
|
||||
attributes.height = allocation.get_height();
|
||||
|
||||
attributes.event_mask = get_events () | Gdk::EXPOSURE_MASK;
|
||||
attributes.event_mask = get_events () |
|
||||
Gdk::EXPOSURE_MASK |
|
||||
Gdk::POINTER_MOTION_MASK |
|
||||
Gdk::BUTTON_PRESS_MASK |
|
||||
Gdk::BUTTON_RELEASE_MASK;
|
||||
attributes.window_type = GDK_WINDOW_CHILD;
|
||||
attributes.wclass = GDK_INPUT_OUTPUT;
|
||||
|
||||
|
|
@ -89,12 +93,6 @@ TimelineHeaderWidget::on_realize()
|
|||
|
||||
// Make the widget receive expose events
|
||||
gdkWindow->set_user_data(gobj());
|
||||
|
||||
// Make the widget sensitive to mouse events
|
||||
add_events(
|
||||
Gdk::POINTER_MOTION_MASK |
|
||||
Gdk::BUTTON_PRESS_MASK |
|
||||
Gdk::BUTTON_RELEASE_MASK);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue