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:
parent
cb4e10683d
commit
5bf088e8d1
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue
Block a user