gtk2_ardour: use set_can_focus() on Gtk::Button

The code was calling the Gtk::Widget::can_focus() getter as on odd
statement without side effects.

It seems like it meant to call set_can_focus, and thus prepare for
actually grabbing the focus in the next line.
This commit is contained in:
Mads Kiilerich 2022-01-27 21:25:07 +01:00 committed by Robin Gareus
parent cb4e10683d
commit 5bf088e8d1
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -255,7 +255,7 @@ TempoDialog::init (const Temporal::BBT_Time& when, double bpm, double end_bpm, d
tap_tempo_button.show ();
get_vbox()->set_spacing (6);
get_vbox()->pack_end (tap_tempo_button);
tap_tempo_button.can_focus ();
tap_tempo_button.set_can_focus ();
tap_tempo_button.grab_focus ();
set_name ("MetricDialog");