X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fdropdown.cpp;h=5f49b9ef33396dea8cd8141d92dcfe52386f9cfd;hp=bc44f27c3ec774a4b982ea9ab72c5dbf5bf40e71;hb=af13797a82b242a3cd8fdd405b057a9e311631ac;hpb=1a6d9006d0a85d8b8266266a4fc5e135f07448ae diff --git a/source/dropdown.cpp b/source/dropdown.cpp index bc44f27..5f49b9e 100644 --- a/source/dropdown.cpp +++ b/source/dropdown.cpp @@ -116,5 +116,17 @@ void Dropdown::list_item_selected(unsigned index, const std::string &item) signal_item_selected.emit(index, item); } + +Dropdown::Loader::Loader(Dropdown &d): + Widget::Loader(d) +{ + add("item", &Loader::item); +} + +void Dropdown::Loader::item(const string &str) +{ + static_cast(wdg).append(str); +} + } // namespace GLtk } // namespace Msp