+uint32_t
+UIConfiguration::color_by_name (const std::string& name)
+{
+ map<std::string,UIConfigVariable<uint32_t>* >::iterator i = canvas_colors.find (name);
+
+ if (i != canvas_colors.end()) {
+ return i->second->get();
+ }
+
+ // cerr << string_compose (_("Color %1 not found"), name) << endl;
+ return RGBA_TO_UINT (random()%256,random()%256,random()%256,0xff);
+}
+
+void
+UIConfiguration::set_dirty ()
+{
+ _dirty = true;
+}