~ian-mcintosh/luz/bezier-curves-in-timelines

« back to all changes in this revision

Viewing changes to utils/addons/gtk-widget.rb

  • Committer: Ian McIntosh
  • Date: 2011-04-18 03:42:29 UTC
  • Revision ID: ian@openanswers.org-20110418034229-ktchezc72d19eyzi
- add slightly broken bezier support to timeline -- right click to change a point to a bezier control point

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        end
53
53
 
54
54
        def on_primary_mouse_button_double_click
55
 
                on_button_press { |event| yield event.x, event.y if (event.event_type == Gdk::Event::BUTTON_PRESS and event.button == 1) }
 
55
                on_button_press { |event| yield event.x, event.y if (event.event_type == Gdk::Event::BUTTON2_PRESS and event.button == 1) }
56
56
        end
57
57
        alias :on_click :on_primary_mouse_button_down
58
58