diff options
Diffstat (limited to 'gtk2_ardour/ui_config.cc')
-rw-r--r-- | gtk2_ardour/ui_config.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 86f03bbd95..215df25e7f 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -59,6 +59,15 @@ UIConfiguration::~UIConfiguration () { } +void +UIConfiguration::map_parameters (boost::function<void (std::string)>& functor) +{ +#undef UI_CONFIG_VARIABLE +#define UI_CONFIG_VARIABLE(Type,var,Name,value) functor (Name); +#include "ui_config_vars.h" +#undef UI_CONFIG_VARIABLE +} + int UIConfiguration::load_defaults () { @@ -278,7 +287,7 @@ UIConfiguration::color_by_name (const std::string& name) } // cerr << string_compose (_("Color %1 not found"), name) << endl; - return RGBA_TO_UINT (random()%256,random()%256,random()%256,0xff); + return RGBA_TO_UINT (g_random_int()%256,g_random_int()%256,g_random_int()%256,0xff); } void |