diff options
-rw-r--r-- | gtk2_ardour/ui_config.cc | 4 | ||||
-rw-r--r-- | gtk2_ardour/ui_config.h | 7 |
2 files changed, 0 insertions, 11 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index f096adcf5a..1d3b4c82b5 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -320,18 +320,14 @@ UIConfiguration::get_variables (std::string which_node) #undef UI_CONFIG_VARIABLE #undef CANVAS_STRING_VARIABLE #undef CANVAS_FONT_VARIABLE -#undef CANVAS_BASE_COLOR #define UI_CONFIG_VARIABLE(Type,var,Name,value) if (node->name() == "UI") { var.add_to_node (*node); } #define CANVAS_STRING_VARIABLE(var,Name) if (node->name() == "Canvas") { var.add_to_node (*node); } #define CANVAS_FONT_VARIABLE(var,Name) if (node->name() == "Canvas") { var.add_to_node (*node); } -#define CANVAS_BASE_COLOR(var,Name,val) if (node->name() == "Canvas") { var.add_to_node (*node); } #include "ui_config_vars.h" #include "canvas_vars.h" -#include "base_colors.h" #undef UI_CONFIG_VARIABLE #undef CANVAS_STRING_VARIABLE #undef CANVAS_FONT_VARIABLE -#undef CANVAS_BASE_COLOR return *node; } diff --git a/gtk2_ardour/ui_config.h b/gtk2_ardour/ui_config.h index 294c6a36b9..881ed3b0fd 100644 --- a/gtk2_ardour/ui_config.h +++ b/gtk2_ardour/ui_config.h @@ -140,15 +140,10 @@ class UIConfiguration : public PBD::Stateful bool set_##var (Type val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; } #include "ui_config_vars.h" #undef UI_CONFIG_VARIABLE -#undef CANVAS_STRING_VARIABLE -#define CANVAS_STRING_VARIABLE(var,name) \ - std::string get_##var () const { return var.get(); } \ - bool set_##var (const std::string& val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; } #define CANVAS_FONT_VARIABLE(var,name) \ Pango::FontDescription get_##var () const { return ARDOUR_UI_UTILS::sanitized_font (var.get()); } \ bool set_##var (const std::string& val) { bool ret = var.set (val); if (ret) { ParameterChanged (name); } return ret; } #include "canvas_vars.h" -#undef CANVAS_STRING_VARIABLE #undef CANVAS_FONT_VARIABLE #undef CANVAS_BASE_COLOR @@ -172,10 +167,8 @@ class UIConfiguration : public PBD::Stateful #include "ui_config_vars.h" #undef UI_CONFIG_VARIABLE -#define CANVAS_STRING_VARIABLE(var,name) ARDOUR::ConfigVariable<std::string> var; #define CANVAS_FONT_VARIABLE(var,name) ARDOUR::ConfigVariable<std::string> var; #include "canvas_vars.h" -#undef CANVAS_STRING_VARIABLE #undef CANVAS_FONT_VARIABLE /* declare base color variables (these are modifiable by the user) */ |