[SCM] calf/master: + Vintage Delay: make bpm spin button use 2 decimal places
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:39:12 UTC 2013
The following commit has been merged in the master branch:
commit d0f06d434754e67af938580a6baebede49f9e26b
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Sun Jan 25 22:34:01 2009 +0000
+ Vintage Delay: make bpm spin button use 2 decimal places
diff --git a/gui/gui-vintagedelay.xml b/gui/gui-vintagedelay.xml
index a74f2a5..188e56c 100644
--- a/gui/gui-vintagedelay.xml
+++ b/gui/gui-vintagedelay.xml
@@ -4,7 +4,7 @@
<table rows="4" cols="3">
<label attach-x="0" attach-y="0" param="bpm" />
<align attach-x="1" attach-y="0" scale-x="0"><knob param="bpm" /></align>
- <spin attach-x="2" attach-y="0" param="bpm" />
+ <spin attach-x="2" attach-y="0" param="bpm" digits="2"/>
<label attach-x="0" attach-y="1" param="subdiv" />
<hscale attach-x="1" attach-y="1" param="subdiv" />
<spin attach-x="2" attach-y="1" param="subdiv" />
diff --git a/src/gui.cpp b/src/gui.cpp
index 2e6c1b2..c13ccce 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -320,6 +320,7 @@ GtkWidget *spin_param_control::create(plugin_gui *_gui, int _param_no)
widget = gtk_spin_button_new_with_range (props.min, props.max, props.step);
else
widget = gtk_spin_button_new_with_range (props.min, props.max, 1);
+ gtk_spin_button_set_digits (GTK_SPIN_BUTTON(widget), get_int("digits", 0));
gtk_signal_connect (GTK_OBJECT (widget), "value-changed", G_CALLBACK (value_changed), (gpointer)this);
return widget;
}
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list