diff options
author | Robin Gareus <robin@gareus.org> | 2014-08-30 01:40:16 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-08-30 01:43:10 +0200 |
commit | 926d4eb36e6ca58413052fafe456e4df224b7e0a (patch) | |
tree | 0baef6678516612e2c3bead67e246cf781c5aacf /gtk2_ardour/ardour_button.cc | |
parent | 4efa0fd77c46694462c129c1071205ae71eadc3d (diff) |
remove cruft
Diffstat (limited to 'gtk2_ardour/ardour_button.cc')
-rw-r--r-- | gtk2_ardour/ardour_button.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc index 6c35512e62..1e5184b874 100644 --- a/gtk2_ardour/ardour_button.cc +++ b/gtk2_ardour/ardour_button.cc @@ -216,20 +216,6 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *) _diameter = std::min (get_width(), get_height()); } -#if 0 // clear background - "transparent" round corners - /* Alas, neither get_style()->get_bg nor get_parent()->get_style()->get_bg - * does work for all places in ardour where a button is used. - * gtk style are sadly inconsisent throughout ardour. - * -> disabled for now. - */ - if (get_parent ()) { - Gdk::Color c = get_parent ()->get_style ()->get_bg (get_parent ()->get_state ()); - CairoWidget::set_source_rgb_a (cr, c); - cairo_rectangle (cr, 0, 0, get_width(), get_height()); - cairo_fill(cr); - } -#endif - // background fill if ((_elements & Body)==Body) { rounded_function (cr, 1, 1, get_width() - 2, get_height() - 2, _corner_radius); |