diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-03-09 19:19:16 +0000 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-03-09 19:19:16 +0000 |
commit | 37b0e8ac90aae8d5359f67a7a32bfe78ad6422af (patch) | |
tree | 83703827b06406f0e045f584a18a36b1a8ed95dc /gtk2_ardour/tempo_dialog.h | |
parent | f7a2df1c9a8c540f7e5778561c8527c525874b84 (diff) |
Use ev->time rather than g_get_monotonic_time() for tap tempo
Connect signal_button_press_event of 'Tap Tempo' button rather than
signal_clicked so we can use the time member of GdkEventButton to calculate
the tapped tempo. It seems to me that this is the right thing to do.
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r-- | gtk2_ardour/tempo_dialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index da924ac859..67e6e6ec76 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -53,12 +53,12 @@ private: bool bpm_button_release (GdkEventButton* ); bool entry_key_release (GdkEventKey* ); void pulse_change (); - void tap_tempo (); + bool tap_tempo_button_press (GdkEventButton* ); typedef std::map<std::string,float> NoteTypes; NoteTypes note_types; - gint64 last_tap; + guint32 last_tap; double average_interval; Gtk::ComboBoxText pulse_selector; |