diff options
-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> |