[Progressing] Topbar buttons

This commit is contained in:
VKamyshniy 2014-09-09 07:46:51 +03:00
parent 88639c0168
commit e69e36ceaa
2 changed files with 10 additions and 2 deletions

View file

@ -71,7 +71,8 @@
text="sample rate" text="sample rate"
bgnormal="#43919A" bgnormal="#43919A"
fgnormal="#ffffff" fgnormal="#ffffff"
fgactive="#7f7f7f" fgactive="#ffffff"
fghover="#ffffff"
winfont ="Arial 8" winfont ="Arial 8"
macfont ="Helvetica 8" macfont ="Helvetica 8"
x="269" x="269"

View file

@ -43,7 +43,14 @@ WavesDropdown::add_menu_item (const std::string& item, void* cookie)
items.push_back (Gtk::Menu_Helpers::MenuElem (item, sigc::bind (sigc::mem_fun(*this, &WavesDropdown::_on_menu_item), items.size (), cookie))); items.push_back (Gtk::Menu_Helpers::MenuElem (item, sigc::bind (sigc::mem_fun(*this, &WavesDropdown::_on_menu_item), items.size (), cookie)));
return _menu.items ().back (); Gtk::MenuItem& menuitem = _menu.items ().back ();
ensure_style();
Widget* child = menuitem.get_child ();
if (child) {
child->set_style (get_style());
}
return menuitem;
} }
void void