summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2014-08-28 14:29:49 -0500
committerBen Loftis <ben@harrisonconsoles.com>2014-08-28 14:29:49 -0500
commita4bda23bbafa841ba151916a973fb038c369d7ac (patch)
tree26709b2c8a1d0ce2828f2f52e12e2576fdf9f27b /gtk2_ardour
parent730656863465250e8ed9f277cd5dd1409e9e46ac (diff)
remove offset from icons when button is pushed
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/ardour_button.cc12
1 files changed, 3 insertions, 9 deletions
diff --git a/gtk2_ardour/ardour_button.cc b/gtk2_ardour/ardour_button.cc
index 7e158b7e9c..5505385918 100644
--- a/gtk2_ardour/ardour_button.cc
+++ b/gtk2_ardour/ardour_button.cc
@@ -285,15 +285,9 @@ ArdourButton::render (cairo_t* cr, cairo_rectangle_t *)
cairo_translate (cr, -8,0 );
}
- if (_grabbed) {
- cairo_rectangle (cr, x+1, y+1, _pixbuf->get_width(), _pixbuf->get_height());
- gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x+1, y+1);
- cairo_fill (cr);
- } else {
- cairo_rectangle (cr, x, y, _pixbuf->get_width(), _pixbuf->get_height());
- gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x, y);
- cairo_fill (cr);
- }
+ cairo_rectangle (cr, x, y, _pixbuf->get_width(), _pixbuf->get_height());
+ gdk_cairo_set_source_pixbuf (cr, _pixbuf->gobj(), x, y);
+ cairo_fill (cr);
//..and then return to our previous drawing position
if (((_elements & Menu)==Menu)) {