diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-17 13:37:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-17 13:37:52 +0000 |
commit | 2863640a52ddaea45ebe5bdd8aceb5567fe8989c (patch) | |
tree | e9bf16066afd70d5ad39ecfea6cad3fde49574d3 /gtk2_ardour/canvas-flag.cc | |
parent | 2e71cb2e26371b41f0715c8d659218afa742dd33 (diff) |
make it possible for canvas patch changes to receive kbd events, and along the way clean up a couple of related issues, providing noevent-pixbuf (which we should probably use for regionview names too)
git-svn-id: svn://localhost/ardour2/branches/3.0@12745 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-flag.cc')
-rw-r--r-- | gtk2_ardour/canvas-flag.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gtk2_ardour/canvas-flag.cc b/gtk2_ardour/canvas-flag.cc index d77de07359..75be80fb3f 100644 --- a/gtk2_ardour/canvas-flag.cc +++ b/gtk2_ardour/canvas-flag.cc @@ -5,6 +5,7 @@ #include "ardour_ui.h" #include "canvas-flag.h" +#include "canvas-noevent-pixbuf.h" #include "time_axis_view_item.h" #include "utils.h" @@ -28,7 +29,6 @@ CanvasFlag::CanvasFlag (MidiRegionView& region, , _line(0) , _rect(0) { - signal_event().connect (sigc::mem_fun (*this, &CanvasFlag::on_event)); } void @@ -49,7 +49,7 @@ CanvasFlag::set_text (const string& text) { delete_allocated_objects(); - _name_pixbuf = new ArdourCanvas::Pixbuf (*this); + _name_pixbuf = new ArdourCanvas::NoEventPixbuf (*this); name_pixbuf_width = Gtkmm2ext::pixel_width (text, TimeAxisViewItem::NAME_FONT) + 2; Gdk::Color c; set_color (c, _outline_color_rgba); @@ -75,15 +75,6 @@ CanvasFlag::~CanvasFlag() delete_allocated_objects(); } -bool -CanvasFlag::on_event(GdkEvent* /*ev*/) -{ - /* XXX if you change this function to actually do anything, be sure - to fix the connections commented out elsewhere in this file. - */ - return false; -} - void CanvasFlag::set_height (double h) { |