From 5bf088e8d17b46f0df246429e3cac50870007f7e Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Thu, 27 Jan 2022 21:25:07 +0100 Subject: [PATCH] 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. --- gtk2_ardour/tempo_dialog.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/tempo_dialog.cc b/gtk2_ardour/tempo_dialog.cc index 28f436384b..168fff3816 100644 --- a/gtk2_ardour/tempo_dialog.cc +++ b/gtk2_ardour/tempo_dialog.cc @@ -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");