diff options
author | Robin Gareus <robin@gareus.org> | 2019-10-24 19:43:46 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2019-10-24 19:59:22 +0200 |
commit | 3f2f5172915973a98b550c70cabbe979553664b2 (patch) | |
tree | 7713bf254c2128d586eee0f41f7374fb1cd46a70 /gtk2_ardour/virtual_keyboard_window.h | |
parent | 7664f8fd29793be09899cd1c94695a2a3880215f (diff) |
Rough-in gtk-pianokeyboard C -> C++
Diffstat (limited to 'gtk2_ardour/virtual_keyboard_window.h')
-rw-r--r-- | gtk2_ardour/virtual_keyboard_window.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gtk2_ardour/virtual_keyboard_window.h b/gtk2_ardour/virtual_keyboard_window.h index 1f561c802d..2094d7696f 100644 --- a/gtk2_ardour/virtual_keyboard_window.h +++ b/gtk2_ardour/virtual_keyboard_window.h @@ -96,16 +96,6 @@ protected: bool on_focus_in_event (GdkEventFocus*); private: - static void _note_on_event_handler (GtkWidget*, int note, int vel, gpointer arg) - { - static_cast<VirtualKeyboardWindow*> (arg)->note_on_event_handler (note, vel); - } - - static void _note_off_event_handler (GtkWidget*, int note, gpointer arg) - { - static_cast<VirtualKeyboardWindow*> (arg)->note_off_event_handler (note); - } - void on_unmap (); bool on_key_press_event (GdkEventKey*); @@ -129,8 +119,7 @@ private: bool toggle_note_label (GdkEventButton*); bool send_panic_message (GdkEventButton*); - PianoKeyboard* _piano; - Gtk::Widget* _pianomm; + PianoKeyboard _piano; Gtk::SpinButton _piano_channel; Gtk::SpinButton _transpose_output; |