mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Allow to selectively use NSGLView Canvas
Various GdkEvents are not yet handled correctly, eg. unpacking a widget from its container does not unmap it, nor are remaining widgets in the contained re-positioned (size allocation does not change, nor does the mapping). This affects eg. Mixbus Strips
This commit is contained in:
parent
533a93daa6
commit
85b5741081
2 changed files with 8 additions and 0 deletions
|
|
@ -401,7 +401,13 @@ GtkCanvas::GtkCanvas ()
|
|||
add_events (Gdk::BUTTON_PRESS_MASK | Gdk::BUTTON_RELEASE_MASK | Gdk::POINTER_MOTION_MASK |
|
||||
Gdk::SCROLL_MASK | Gdk::ENTER_NOTIFY_MASK | Gdk::LEAVE_NOTIFY_MASK |
|
||||
Gdk::KEY_PRESS_MASK | Gdk::KEY_RELEASE_MASK);
|
||||
}
|
||||
|
||||
void
|
||||
GtkCanvas::use_nsglview ()
|
||||
{
|
||||
assert (!_nsglview);
|
||||
assert (!is_realized());
|
||||
#ifdef ARDOUR_CANVAS_NSVIEW_TAG // patched gdkquartz.h
|
||||
# ifndef __ppc__ // would need to flip RGBA <> RGBA
|
||||
_nsglview = Gtkmm2ext::nsglview_create (this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue