remove offset from icons when button is pushed
authorBen Loftis <ben@harrisonconsoles.com>
Thu, 28 Aug 2014 19:29:49 +0000 (14:29 -0500)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 28 Aug 2014 19:29:49 +0000 (14:29 -0500)
gtk2_ardour/ardour_button.cc

index 7e158b7e9c5989569c59d1d6b4c36bc5d7ba7b3a..5505385918c9000def41fafdd1092efba9c1b693 100644 (file)
@@ -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)) {