diff options
author | David Robillard <d@drobilla.net> | 2010-12-17 00:58:50 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-17 00:58:50 +0000 |
commit | 95b4da8350d77e28f2c37a58a18be5684c90a450 (patch) | |
tree | ec61ce80dac451f70a68bf871362ba28bd12f40e | |
parent | 280c2711b52ac5a5e9768d10c532680c49542b80 (diff) | |
download | machina-95b4da8350d77e28f2c37a58a18be5684c90a450.tar.gz machina-95b4da8350d77e28f2c37a58a18be5684c90a450.tar.bz2 machina-95b4da8350d77e28f2c37a58a18be5684c90a450.zip |
Disable entire evolution toolbar when not compiled against eugene.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@2729 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/MachinaGUI.cpp | 4 | ||||
-rw-r--r-- | src/gui/MachinaGUI.hpp | 1 | ||||
-rw-r--r-- | src/gui/machina.glade | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 8520258..0d697b2 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -81,6 +81,7 @@ MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine) xml->get_widget("zoom_full_but", _zoom_full_button); xml->get_widget("arrange_but", _arrange_button); xml->get_widget("load_target_but", _load_target_button); + xml->get_widget("evolve_toolbar", _evolve_toolbar); xml->get_widget("evolve_but", _evolve_button); xml->get_widget("mutate_but", _mutate_button); xml->get_widget("compress_but", _compress_button); @@ -184,8 +185,7 @@ MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine) _evolve_button->signal_clicked().connect(sigc::mem_fun(this, &MachinaGUI::evolve_toggled)); Glib::signal_timeout().connect(sigc::mem_fun(this, &MachinaGUI::evolve_callback), 1000); #else - _evolve_button->set_sensitive(false); - _load_target_button->set_sensitive(false); + _evolve_toolbar->set_sensitive(false); #endif _canvas->build(engine->machine(), _menu_view_labels->get_active()); diff --git a/src/gui/MachinaGUI.hpp b/src/gui/MachinaGUI.hpp index 0777b0f..75d4c04 100644 --- a/src/gui/MachinaGUI.hpp +++ b/src/gui/MachinaGUI.hpp @@ -131,6 +131,7 @@ protected: Gtk::ToolButton* _zoom_full_button; Gtk::ToolButton* _arrange_button; Gtk::ToolButton* _load_target_button; + Gtk::Toolbar* _evolve_toolbar; Gtk::ToggleToolButton* _evolve_button; Gtk::ToolButton* _mutate_button; Gtk::ToolButton* _compress_button; diff --git a/src/gui/machina.glade b/src/gui/machina.glade index 9ce82ef..775a6c0 100644 --- a/src/gui/machina.glade +++ b/src/gui/machina.glade @@ -396,7 +396,7 @@ </widget> </child> <child> - <widget class="GtkToolbar" id="toolbar1"> + <widget class="GtkToolbar" id="evolve_toolbar"> <property name="visible">True</property> <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> <property name="toolbar_style">GTK_TOOLBAR_ICONS</property> |