summaryrefslogtreecommitdiff
path: root/plugingui/checkbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/checkbox.cc')
-rw-r--r--plugingui/checkbox.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugingui/checkbox.cc b/plugingui/checkbox.cc
index 6419fc3..a218d44 100644
--- a/plugingui/checkbox.cc
+++ b/plugingui/checkbox.cc
@@ -28,17 +28,14 @@
#include "painter.h"
-#include <stdio.h>
-
-namespace GUI {
+namespace GUI
+{
CheckBox::CheckBox(Widget* parent)
: Widget(parent)
- , bg_on(":switch_back_on.png")
- , bg_off(":switch_back_off.png")
- , knob(":switch_front.png")
- , state(false)
- , middle(false)
+ , bg_on(getImageCache(), ":switch_back_on.png")
+ , bg_off(getImageCache(), ":switch_back_off.png")
+ , knob(getImageCache(), ":switch_front.png")
{
}