Use non-deprecated Widget::get_realized API in gtkmm2ext
This commit is contained in:
parent
12ab4b9816
commit
d632629b06
@ -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 ();
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user