diff options
author | Robin Gareus <robin@gareus.org> | 2013-07-16 22:18:51 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-07-16 22:18:51 +0200 |
commit | 920154702fcf690c762301a96c49848a9a241674 (patch) | |
tree | 6ad0dae641a72484f540cef1e2bd8bc9bdec48cc /gtk2_ardour/processor_box.cc | |
parent | 81412b95beea58ef8b17781a0756dfbc1d3a39cb (diff) |
fix re-drawing of splitting icon
Diffstat (limited to 'gtk2_ardour/processor_box.cc')
-rw-r--r-- | gtk2_ardour/processor_box.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc index 495845d2d4..7d2e39639b 100644 --- a/gtk2_ardour/processor_box.cc +++ b/gtk2_ardour/processor_box.cc @@ -655,10 +655,14 @@ PluginInsertProcessorEntry::SplittingIcon::on_expose_event (GdkEventExpose* ev) { cairo_t* cr = gdk_cairo_create (get_window()->gobj()); + cairo_rectangle (cr, ev->area.x, ev->area.y, ev->area.width, ev->area.height); + cairo_clip (cr); + cairo_set_line_width (cr, 1); - double const width = ev->area.width; - double const height = ev->area.height; + Gtk::Allocation a = get_allocation(); + double const width = a.get_width(); + double const height = a.get_height(); Gdk::Color const bg = get_style()->get_bg (STATE_NORMAL); cairo_set_source_rgb (cr, bg.get_red_p (), bg.get_green_p (), bg.get_blue_p ()); |