diff options
Diffstat (limited to 'libs/gtkmm2ext/cairo_packer.cc')
-rw-r--r-- | libs/gtkmm2ext/cairo_packer.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/gtkmm2ext/cairo_packer.cc b/libs/gtkmm2ext/cairo_packer.cc index 71f35fcf36..2f7b46f47d 100644 --- a/libs/gtkmm2ext/cairo_packer.cc +++ b/libs/gtkmm2ext/cairo_packer.cc @@ -65,6 +65,13 @@ CairoHPacker::on_expose_event (GdkEventExpose* ev) return HBox::on_expose_event (ev); } +void +CairoHPacker::on_size_allocate (Gtk::Allocation& alloc) +{ + get_parent()->queue_draw(); + HBox::on_size_allocate (alloc); +} + CairoVPacker::CairoVPacker () { } @@ -83,6 +90,13 @@ CairoVPacker::on_realize () CairoWidget::provide_background_for_cairo_widget (*this, get_bg()); } +void +CairoVPacker::on_size_allocate (Gtk::Allocation& alloc) +{ + get_parent()->queue_draw(); + VBox::on_size_allocate (alloc); +} + Gdk::Color CairoVPacker::get_bg () const { |