[SCM] calf/master: + GUI: removed debugging-related printfs + GUI: slider increment fix

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:36:58 UTC 2013


The following commit has been merged in the master branch:
commit 8204bf575e313293f92c9c8bbf099dce28263ddb
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sun Jan 13 21:38:49 2008 +0000

    + GUI: removed debugging-related printfs
    + GUI: slider increment fix
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@98 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/gui.cpp b/src/gui.cpp
index 765df0f..d9a04b6 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -93,7 +93,7 @@ GtkWidget *hscale_param_control::create(plugin_gui *_gui, int _param_no)
     gui = _gui;
     param_no = _param_no;
 
-    widget = gtk_hscale_new_with_range (0, 1, 0.01);
+    widget = gtk_hscale_new_with_range (0, 1, get_props().get_increment());
     gtk_signal_connect (GTK_OBJECT (widget), "value-changed", G_CALLBACK (hscale_value_changed), (gpointer)this);
     gtk_signal_connect (GTK_OBJECT (widget), "format-value", G_CALLBACK (hscale_format_value), (gpointer)this);
     gtk_widget_set_size_request (widget, 200, -1);
@@ -117,7 +117,6 @@ void hscale_param_control::set()
 {
     _GUARD_CHANGE_
     parameter_properties &props = get_props();
-    printf("param value %d = %f\n", param_no, gui->plugin->get_param_value(param_no));
     gtk_range_set_value (GTK_RANGE (widget), props.to_01 (gui->plugin->get_param_value(param_no)));
     // hscale_value_changed (GTK_HSCALE (widget), (gpointer)this);
 }
@@ -153,7 +152,7 @@ GtkWidget *vscale_param_control::create(plugin_gui *_gui, int _param_no)
     gui = _gui;
     param_no = _param_no;
 
-    widget = gtk_vscale_new_with_range (0, 1, 0.01);
+    widget = gtk_vscale_new_with_range (0, 1, get_props().get_increment());
     gtk_signal_connect (GTK_OBJECT (widget), "value-changed", G_CALLBACK (vscale_value_changed), (gpointer)this);
     gtk_scale_set_draw_value(GTK_SCALE(widget), FALSE);
     gtk_widget_set_size_request (widget, -1, 200);
diff --git a/src/lv2gui.cpp b/src/lv2gui.cpp
index cf12339..33851e8 100644
--- a/src/lv2gui.cpp
+++ b/src/lv2gui.cpp
@@ -157,7 +157,7 @@ void gui_port_event(LV2UI_Handle handle, uint32_t port, uint32_t buffer_size, co
 {
     plugin_gui *gui = (plugin_gui *)handle;
     float v = *(float *)buffer;
-    printf("spv %d %f\n", port, v);
+    // printf("spv %d %f\n", port, v);
     port -= gui->plugin->get_param_port_offset();
     if (port >= (uint32_t)gui->plugin->get_param_count())
         return;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list