aboutsummaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/MachinaGUI.cpp8
-rw-r--r--src/gui/machina.glade1
2 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp
index 9fa0dbb..f1ec4f0 100644
--- a/src/gui/MachinaGUI.cpp
+++ b/src/gui/MachinaGUI.cpp
@@ -193,6 +193,7 @@ MachinaGUI::MachinaGUI(SharedPtr<Machina::Engine> engine)
_pane_closed = true;
_bpm_radiobutton->set_active(true);
+ _quantize_checkbutton->set_active(false);
// Idle callback to drive the maid (collect garbage)
Glib::signal_timeout().connect(
@@ -253,7 +254,12 @@ MachinaGUI::update_toolbar()
void
MachinaGUI::quantize_changed()
{
- _engine->set_quantization(1.0/(double)_quantize_spinbutton->get_value_as_int());
+ if (_quantize_checkbutton->get_active()) {
+ _engine->set_quantization(1/(double)_quantize_spinbutton->get_value_as_int());
+ } else {
+ _engine->set_quantization(0.0);
+ }
+ update_toolbar();
}
diff --git a/src/gui/machina.glade b/src/gui/machina.glade
index f255d9f..bdea253 100644
--- a/src/gui/machina.glade
+++ b/src/gui/machina.glade
@@ -303,7 +303,6 @@
<child>
<widget class="GtkCheckButton" id="quantize_checkbutton">
<property name="visible">True</property>
- <property name="sensitive">False</property>
<property name="can_focus">True</property>
<property name="label" translatable="yes">Quantize: 1/</property>
<property name="use_underline">True</property>