lib/rabbit/renderer/display/clutter-embed.rb in rabbit-2.1.6 vs lib/rabbit/renderer/display/clutter-embed.rb in rabbit-2.1.7
- old
+ new
@@ -252,15 +252,15 @@
reset_stage_color
set_map
set_expose_event
set_configure_event_after
- event_mask = Gdk::Event::BUTTON_PRESS_MASK
- event_mask |= Gdk::Event::BUTTON_RELEASE_MASK
- event_mask |= Gdk::Event::BUTTON1_MOTION_MASK
- event_mask |= Gdk::Event::BUTTON2_MOTION_MASK
- event_mask |= Gdk::Event::BUTTON3_MOTION_MASK
+ event_mask = Gdk::EventMask::BUTTON_PRESS_MASK
+ event_mask |= Gdk::EventMask::BUTTON_RELEASE_MASK
+ event_mask |= Gdk::EventMask::BUTTON1_MOTION_MASK
+ event_mask |= Gdk::EventMask::BUTTON2_MOTION_MASK
+ event_mask |= Gdk::EventMask::BUTTON3_MOTION_MASK
@embed.add_events(event_mask)
set_key_press_event(@embed)
set_button_event(@embed)
set_motion_notify_event
set_scroll_event
@@ -492,13 +492,13 @@
end
def grab
Gtk.grab_add(@embed)
Gdk.pointer_grab(@embed.window, false,
- Gdk::Event::BUTTON_PRESS_MASK |
- Gdk::Event::BUTTON_RELEASE_MASK |
- Gdk::Event::SCROLL_MASK |
- Gdk::Event::POINTER_MOTION_MASK,
+ Gdk::EventMask::BUTTON_PRESS_MASK |
+ Gdk::EventMask::BUTTON_RELEASE_MASK |
+ Gdk::EventMask::SCROLL_MASK |
+ Gdk::EventMask::POINTER_MOTION_MASK,
nil, nil,
Gdk::Event::CURRENT_TIME)
end
def ungrab