]> git.tdb.fi Git - libs/gltk.git/commitdiff
Add datafile statement for image widgets
authorMikko Rasa <tdb@tdb.fi>
Tue, 30 Jul 2013 15:56:09 +0000 (18:56 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 30 Jul 2013 15:56:09 +0000 (18:56 +0300)
source/panel.cpp

index 836d991eb73e3b226d859b5c2c4a2da7acf5037a..23657de506c6fc42f7bd8c02d8cadf07f28b201a 100644 (file)
@@ -8,6 +8,7 @@
 #include "entry.h"
 #include "grid.h"
 #include "hslider.h"
+#include "image.h"
 #include "indicator.h"
 #include "label.h"
 #include "list.h"
@@ -97,6 +98,7 @@ Panel::Loader::Loader(Panel &p, map<string, Widget *> &m):
        add("gravity",   &Loader::gravity);
        add("grid",      &Loader::grid);
        add("hslider",   &Loader::child<HSlider>);
+       add("image",     &Loader::child<Image>);
        add("indicator", &Loader::child<Indicator>);
        add("label",     &Loader::child<Label>);
        add("layout",    &Loader::layout);