lib/rabbit/renderer/display/gesture.rb in rabbit-2.1.6 vs lib/rabbit/renderer/display/gesture.rb in rabbit-2.1.7
- old
+ new
@@ -13,10 +13,10 @@
def init_gesture
@gesture = Rabbit::Gesture::Handler.new
pressed_info = nil
target_button = 3
- target_event_type = Gdk::Event::Type::BUTTON_PRESS
+ target_event_type = Gdk::EventType::BUTTON_PRESS
target_info = [target_button, target_event_type]
add_button_press_hook do |event|
pressed_info = [event.button, event.event_type]
if pressed_info == target_info and event.state.to_i.zero?