[Summary] Add new functionality to class waves_dropdown

[Reviewed] GZharun
This commit is contained in:
nikolay 2014-09-08 16:20:14 +03:00
parent 97c335f6c2
commit 3800d69cc3
2 changed files with 8 additions and 0 deletions

View file

@ -46,6 +46,12 @@ WavesDropdown::add_menu_item (const std::string& item, void* cookie)
return _menu.items ().back ();
}
void
WavesDropdown::clear_items ()
{
_menu.items().clear ();
}
void
WavesDropdown::_on_menu_item (size_t item_number, void* cookie)
{

View file

@ -36,6 +36,8 @@ class WavesDropdown : public WavesIconButton
Gtk::MenuItem& add_menu_item (const std::string& item, void* cookie);
void clear_items ();
sigc::signal2<void, WavesDropdown*, void*> signal_menu_item_clicked;
private: