mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ TempoDialog::init (const Temporal::BBT_Time& when, double bpm, double end_bpm, d
|
||||||
tap_tempo_button.show ();
|
tap_tempo_button.show ();
|
||||||
get_vbox()->set_spacing (6);
|
get_vbox()->set_spacing (6);
|
||||||
get_vbox()->pack_end (tap_tempo_button);
|
get_vbox()->pack_end (tap_tempo_button);
|
||||||
tap_tempo_button.can_focus ();
|
tap_tempo_button.set_can_focus ();
|
||||||
tap_tempo_button.grab_focus ();
|
tap_tempo_button.grab_focus ();
|
||||||
|
|
||||||
set_name ("MetricDialog");
|
set_name ("MetricDialog");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue