diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-07-17 18:15:51 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-07-17 18:15:51 +0100 |
commit | 5f15bc9f9fe8decfab02db7821b7b15e1d7d95ac (patch) | |
tree | 643463d8f156a7ee6b4daa1c776e5ae2a9da16e0 /gtk2_ardour/processor_box.cc | |
parent | eeabf89d19214bb075709009a76b3354c4332ccf (diff) | |
parent | 82d351f6ca3214ef77df555aca853e18137b7ab4 (diff) |
Merge branch 'windows' of git.ardour.org:ardour/ardour into windows
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 c119a1d824..5e8be81074 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 ()); |