diff options
author | Doug McLain <doug@nostar.net> | 2007-06-29 21:12:52 +0000 |
---|---|---|
committer | Doug McLain <doug@nostar.net> | 2007-06-29 21:12:52 +0000 |
commit | 685fa95e729e5d510b28b4c715da062e9db580d9 (patch) | |
tree | 00cecdbb300b0c72261ecdb20dd18a2b9b10ce2a /gtk2_ardour/theme_manager.cc | |
parent | 69ea58691945606219de487a41532de376e7047e (diff) |
only do the widget packing style hack once, instead of everytime there is a theme change
git-svn-id: svn://localhost/ardour2/trunk@2091 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/theme_manager.cc')
-rw-r--r-- | gtk2_ardour/theme_manager.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc index fd7d7d92b5..d89ca812f8 100644 --- a/gtk2_ardour/theme_manager.cc +++ b/gtk2_ardour/theme_manager.cc @@ -178,7 +178,7 @@ ThemeManager::button_press_event (GdkEventButton* ev) } void -load_rc_file (const string& filename) +load_rc_file (const string& filename, bool themechange) { sys::path rc_file_path; @@ -196,7 +196,7 @@ load_rc_file (const string& filename) info << "Loading ui configuration file " << rc_file_path.to_string() << endmsg; - Gtkmm2ext::UI::instance()->load_rcfile (rc_file_path.to_string()); + Gtkmm2ext::UI::instance()->load_rcfile (rc_file_path.to_string(), themechange); } void @@ -205,7 +205,7 @@ ThemeManager::on_dark_theme_button_toggled() if (!dark_button.get_active()) return; ARDOUR_UI::config()->ui_rc_file.set("ardour2_ui_dark.rc"); - load_rc_file (ARDOUR_UI::config()->ui_rc_file.get()); + load_rc_file (ARDOUR_UI::config()->ui_rc_file.get(), true); } void @@ -214,7 +214,7 @@ ThemeManager::on_light_theme_button_toggled() if (!light_button.get_active()) return; ARDOUR_UI::config()->ui_rc_file.set("ardour2_ui_light.rc"); - load_rc_file (ARDOUR_UI::config()->ui_rc_file.get()); + load_rc_file (ARDOUR_UI::config()->ui_rc_file.get(), true); } void @@ -254,6 +254,6 @@ ThemeManager::setup_theme () light_button.set_active(); } - load_rc_file(rcfile); + load_rc_file(rcfile, false); } |