mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
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
This commit is contained in:
parent
2e71cb2e26
commit
2863640a52
5 changed files with 73 additions and 28 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue