gtkmm: use get_mapped instead of deprecated Gtk::Widget::is_mapped()

This commit is contained in:
Mads Kiilerich 2022-01-26 21:17:53 +01:00 committed by Robin Gareus
parent 539ef331d1
commit d52c727ec5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
19 changed files with 33 additions and 33 deletions

View file

@ -63,9 +63,9 @@ bool
VisibilityTracker::fully_visible () const
{
if (_use_window_manager_visibility) {
return _window.is_mapped() && (_visibility == GDK_VISIBILITY_UNOBSCURED);
return _window.get_mapped() && (_visibility == GDK_VISIBILITY_UNOBSCURED);
} else {
return _window.is_mapped();
return _window.get_mapped();
}
}
@ -73,9 +73,9 @@ bool
VisibilityTracker::not_visible () const
{
if (_use_window_manager_visibility) {
return !_window.is_mapped() || (_visibility == GDK_VISIBILITY_FULLY_OBSCURED);
return !_window.get_mapped() || (_visibility == GDK_VISIBILITY_FULLY_OBSCURED);
} else {
return !_window.is_mapped();
return !_window.get_mapped();
}
}
@ -83,8 +83,8 @@ bool
VisibilityTracker::partially_visible () const
{
if (_use_window_manager_visibility) {
return _window.is_mapped() && ((_visibility == GDK_VISIBILITY_PARTIAL) || (_visibility == GDK_VISIBILITY_UNOBSCURED));
return _window.get_mapped() && ((_visibility == GDK_VISIBILITY_PARTIAL) || (_visibility == GDK_VISIBILITY_UNOBSCURED));
} else {
return _window.is_mapped();
return _window.get_mapped();
}
}

View file

@ -128,7 +128,7 @@ WindowProxy::toggle()
/* we'd like to just call this and nothing else */
_window->present ();
} else {
if (_window->is_mapped()) {
if (_window->get_mapped()) {
save_pos_and_size();
}
@ -138,7 +138,7 @@ WindowProxy::toggle()
_window->present ();
}
if (_window->is_mapped()) {
if (_window->get_mapped()) {
if (_width != -1 && _height != -1) {
_window->set_default_size (_width, _height);
}
@ -261,7 +261,7 @@ WindowProxy::configure_handler (GdkEventConfigure* ev)
the difference is generally down to window manager framing.
*/
if (!visible() || !_window->is_mapped()) {
if (!visible() || !_window->get_mapped()) {
return false;
}
save_pos_and_size ();