summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-06-10 14:39:08 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-10 14:39:28 -0400
commitc56d309bd779c5a10be44c1ced6424c1b518c22f (patch)
tree6a4bd3772afbfdec7037a74297cdf1193c914355 /gtk2_ardour
parent324ef3b08558155b560b14397c5eb6e003f70b9f (diff)
make the icon set selector actually do something
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor.cc9
-rw-r--r--gtk2_ardour/editor.h1
-rw-r--r--gtk2_ardour/theme_manager.cc8
-rw-r--r--gtk2_ardour/theme_manager.h1
4 files changed, 19 insertions, 0 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc
index 68e3a2ee55..510cdcc849 100644
--- a/gtk2_ardour/editor.cc
+++ b/gtk2_ardour/editor.cc
@@ -748,6 +748,7 @@ Editor::Editor ()
Session::AskAboutPlaylistDeletion.connect_same_thread (*this, boost::bind (&Editor::playlist_deletion_dialog, this, _1));
Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&Editor::parameter_changed, this, _1), gui_context());
+ ARDOUR_UI::config()->ParameterChanged.connect (sigc::mem_fun (*this, &Editor::ui_parameter_changed));
TimeAxisView::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&Editor::timeaxisview_deleted, this, _1), gui_context());
@@ -5437,3 +5438,11 @@ Editor::zoom_vertical_modifier_released()
{
_stepping_axis_view = 0;
}
+
+void
+Editor::ui_parameter_changed (string parameter)
+{
+ if (parameter == "icon-set") {
+ _cursors->set_cursor_set (ARDOUR_UI::config()->get_icon_set());
+ }
+}
diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h
index df01fccc44..d520452f82 100644
--- a/gtk2_ardour/editor.h
+++ b/gtk2_ardour/editor.h
@@ -702,6 +702,7 @@ class Editor : public PublicEditor, public PBD::ScopedConnectionList, public ARD
VerboseCursor* _verbose_cursor;
void parameter_changed (std::string);
+ void ui_parameter_changed (std::string);
bool track_canvas_motion (GdkEvent*);
diff --git a/gtk2_ardour/theme_manager.cc b/gtk2_ardour/theme_manager.cc
index 8c9a039453..454a5da67c 100644
--- a/gtk2_ardour/theme_manager.cc
+++ b/gtk2_ardour/theme_manager.cc
@@ -167,6 +167,7 @@ ThemeManager::ThemeManager()
waveform_gradient_depth.signal_value_changed().connect (sigc::mem_fun (*this, &ThemeManager::on_waveform_gradient_depth_change));
timeline_item_gradient_depth.signal_value_changed().connect (sigc::mem_fun (*this, &ThemeManager::on_timeline_item_gradient_depth_change));
all_dialogs.signal_toggled().connect (sigc::mem_fun (*this, &ThemeManager::on_all_dialogs_toggled));
+ icon_set_dropdown.signal_changed().connect (sigc::mem_fun (*this, &ThemeManager::on_icon_set_changed));
Gtkmm2ext::UI::instance()->set_tip (all_dialogs,
string_compose (_("Mark all floating windows to be type \"Dialog\" rather than using \"Utility\" for some.\n"
@@ -349,6 +350,13 @@ ThemeManager::on_timeline_item_gradient_depth_change ()
}
void
+ThemeManager::on_icon_set_changed ()
+{
+ string new_set = icon_set_dropdown.get_active_text();
+ ARDOUR_UI::config()->set_icon_set (new_set);
+}
+
+void
ThemeManager::on_dark_theme_button_toggled()
{
if (!dark_button.get_active()) return;
diff --git a/gtk2_ardour/theme_manager.h b/gtk2_ardour/theme_manager.h
index 8b0a9bdd56..cd90427688 100644
--- a/gtk2_ardour/theme_manager.h
+++ b/gtk2_ardour/theme_manager.h
@@ -49,6 +49,7 @@ class ThemeManager : public ArdourWindow
void on_waveform_gradient_depth_change ();
void on_timeline_item_gradient_depth_change ();
void on_all_dialogs_toggled ();
+ void on_icon_set_changed ();
private:
struct ColorDisplayModelColumns : public Gtk::TreeModel::ColumnRecord {