gtkmm: use get_mapped instead of deprecated Gtk::Widget::is_mapped()
This commit is contained in:
committed by
Robin Gareus
parent
539ef331d1
commit
d52c727ec5
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user