diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 15:35:58 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-18 15:35:58 +0000 |
commit | 8ad4133d26a098e15c6de984a6a6aff5d9271c24 (patch) | |
tree | 2f6110558c20ecb743e6900e875f38ed118fcaed /gtk2_ardour/led.cc | |
parent | e5329ca777caea45a754ef1b57e031602c9a61ab (diff) |
don't cache width & height for CairoWidget; provide option for all CairoWidgets to not draw their backgrounds; provide a static method to allow any (Container, probably) widget to provide background color to a CairoWidget without the requirement that it have its own window; remove existing cursor from clocks; clock text no longer has background attribute set, to correct a mistake in my understanding of pango attributes
git-svn-id: svn://localhost/ardour2/branches/3.0@10673 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/led.cc')
-rw-r--r-- | gtk2_ardour/led.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/led.cc b/gtk2_ardour/led.cc index fe8cf419bb..474ffe508b 100644 --- a/gtk2_ardour/led.cc +++ b/gtk2_ardour/led.cc @@ -45,7 +45,7 @@ void LED::render (cairo_t* cr) { if (!_fixed_diameter) { - _diameter = std::min (_width, _height); + _diameter = std::min (get_width(), get_height()); } //background @@ -75,7 +75,7 @@ LED::render (cairo_t* cr) cairo_fill(cr); #endif - cairo_translate(cr, _width/2, _height/2); + cairo_translate(cr, get_width()/2, get_height()/2); //inset cairo_pattern_t *pat = cairo_pattern_create_linear (0.0, 0.0, 0.0, _diameter); |