Use non-deprecated Widget::get_realized API in gtkmm2ext

This commit is contained in:
Tim Mayberry 2014-12-06 21:00:36 +07:00
parent 12ab4b9816
commit d632629b06
2 changed files with 2 additions and 2 deletions

View File

@ -369,7 +369,7 @@ PixFader::on_size_allocate (Gtk::Allocation& alloc)
_span = alloc.get_width ();
}
if (is_realized() && ((old_girth != _girth) || (old_span != _span))) {
if (get_realized() && ((old_girth != _girth) || (old_span != _span))) {
/* recreate patterns in case we've changed size */
create_patterns ();
}

View File

@ -311,7 +311,7 @@ TearOff::set_state (const XMLNode& node)
sscanf (prop->value().c_str(), "%d", &own_window_ypos);
}
if (own_window.is_realized()) {
if (own_window.get_realized()) {
own_window.set_default_size (own_window_width, own_window_height);
own_window.move (own_window_xpos, own_window_ypos);
}