mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Use non-deprecated Gtk::Widget::get_is_toplevel API in gtk2_ardour
This commit is contained in:
parent
8a98f12898
commit
8f5713d78d
3 changed files with 4 additions and 4 deletions
|
|
@ -5789,7 +5789,7 @@ ARDOUR_UI::reset_focus (Gtk::Widget* w)
|
||||||
|
|
||||||
Gtk::Widget* top = w->get_toplevel();
|
Gtk::Widget* top = w->get_toplevel();
|
||||||
|
|
||||||
if (!top || !top->is_toplevel()) {
|
if (!top || !top->get_is_toplevel()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5797,7 +5797,7 @@ ARDOUR_UI::reset_focus (Gtk::Widget* w)
|
||||||
|
|
||||||
while (w) {
|
while (w) {
|
||||||
|
|
||||||
if (w->is_toplevel()) {
|
if (w->get_is_toplevel()) {
|
||||||
/* Setting the focus widget to a Gtk::Window causes all
|
/* Setting the focus widget to a Gtk::Window causes all
|
||||||
* subsequent calls to ::has_focus() on the nominal
|
* subsequent calls to ::has_focus() on the nominal
|
||||||
* focus widget in that window to return
|
* focus widget in that window to return
|
||||||
|
|
|
||||||
|
|
@ -536,7 +536,7 @@ MonitorSection::leave_handler (GdkEventCrossing* ev)
|
||||||
|
|
||||||
Widget* top = get_toplevel();
|
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<Window*> (top);
|
Window* win = dynamic_cast<Window*> (top);
|
||||||
gtk_window_set_focus (win->gobj(), 0);
|
gtk_window_set_focus (win->gobj(), 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2253,7 +2253,7 @@ ProcessorBox::leave_notify (GdkEventCrossing* ev)
|
||||||
|
|
||||||
Widget* top = get_toplevel();
|
Widget* top = get_toplevel();
|
||||||
|
|
||||||
if (top->is_toplevel()) {
|
if (top->get_is_toplevel()) {
|
||||||
Window* win = dynamic_cast<Window*> (top);
|
Window* win = dynamic_cast<Window*> (top);
|
||||||
gtk_window_set_focus (win->gobj(), 0);
|
gtk_window_set_focus (win->gobj(), 0);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue