using namespace Gdk;
using namespace Gtk;
using namespace Glib;
+using namespace Gtkmm2ext;
LED::LED()
: _diameter (0.0)
LED::render (cairo_t* cr)
{
if (!_fixed_diameter) {
- _diameter = std::min (_width, _height);
+ _diameter = std::min (get_width(), get_height());
}
//background
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);
Color c;
switch (_visual_state) {
- case 0:
+ case VisualState(0):
c = style->get_fg (STATE_NORMAL);
break;
default: