diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-03 15:06:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-03 15:06:55 +0000 |
commit | bd69ec8b25e825e0bf6399e19e34e553189a0c28 (patch) | |
tree | 17602f56460d2acab2211517c5f05f260aec52d6 /gtk2_ardour/step_entry.cc | |
parent | 64f9fac9a8ad94182fca885f09fd53a228561c01 (diff) |
cairo-ify the PianoKeyboard widget
git-svn-id: svn://localhost/ardour2/branches/3.0@7531 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/step_entry.cc')
-rw-r--r-- | gtk2_ardour/step_entry.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/step_entry.cc b/gtk2_ardour/step_entry.cc index 666890996b..09bdb076d2 100644 --- a/gtk2_ardour/step_entry.cc +++ b/gtk2_ardour/step_entry.cc @@ -167,9 +167,10 @@ StepEntry::StepEntry (MidiTimeAxisView& mtv) _piano = (PianoKeyboard*) piano_keyboard_new (); piano = Glib::wrap ((GtkWidget*) _piano); + piano_keyboard_set_keyboard_cue (PIANO_KEYBOARD(_piano), 1); - g_signal_connect(G_OBJECT(_piano), "note-off", G_CALLBACK(_note_off_event_handler), this); - + g_signal_connect(G_OBJECT(_piano), "note-off", G_CALLBACK(_note_off_event_handler), this); + rest_button.signal_clicked().connect (sigc::mem_fun (*this, &StepEntry::rest_click)); chord_button.signal_toggled().connect (sigc::mem_fun (*this, &StepEntry::chord_toggled)); triplet_button.signal_toggled().connect (sigc::mem_fun (*this, &StepEntry::triplet_toggled)); |