From a9965e9b93088e41f45062c0ac02ba0b6fe50834 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Wed, 26 Jan 2022 23:08:55 +0100 Subject: [PATCH] gtkmm: use get_is_toplevel() instead of deprecated Gtk::Widget::is_toplevel() --- gtk2_ardour/ardour_ui3.cc | 4 ++-- gtk2_ardour/monitor_section.cc | 2 +- gtk2_ardour/processor_box.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/ardour_ui3.cc b/gtk2_ardour/ardour_ui3.cc index 7d592fd9fe..4cd2ef1585 100644 --- a/gtk2_ardour/ardour_ui3.cc +++ b/gtk2_ardour/ardour_ui3.cc @@ -80,7 +80,7 @@ ARDOUR_UI::reset_focus (Gtk::Widget* w) Gtk::Widget* top = w->get_toplevel(); - if (!top || !top->is_toplevel()) { + if (!top || !top->get_is_toplevel()) { return; } @@ -88,7 +88,7 @@ ARDOUR_UI::reset_focus (Gtk::Widget* w) while (w) { - if (w->is_toplevel()) { + if (w->get_is_toplevel()) { /* Setting the focus widget to a Gtk::Window causes all * subsequent calls to ::has_focus() on the nominal * focus widget in that window to return diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc index 3c7a5f126e..c889eb4860 100644 --- a/gtk2_ardour/monitor_section.cc +++ b/gtk2_ardour/monitor_section.cc @@ -560,7 +560,7 @@ MonitorSection::leave_handler (GdkEventCrossing* ev) Widget* top = get_toplevel(); - if (top->is_toplevel() && top != &_tearoff->tearoff_window()) { + if (top->get_is_toplevel() && top != &_tearoff->tearoff_window()) { Window* win = dynamic_cast (top); gtk_window_set_focus (win->gobj(), 0); } diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 413390b1bf..799bf4e361 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -2422,7 +2422,7 @@ ProcessorBox::leave_notify (GdkEventCrossing* ev) Widget* top = get_toplevel(); - if (top->is_toplevel()) { + if (top->get_is_toplevel()) { Window* win = dynamic_cast (top); gtk_window_set_focus (win->gobj(), 0); }