[SCM] calf/master: + GUI: allow specifying align-x/align-y for labels and values

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:38:25 UTC 2013


The following commit has been merged in the master branch:
commit 0340acff2aec2c000bdbef5bbd0087c32ff3566e
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Sun Nov 9 22:29:15 2008 +0000

    + GUI: allow specifying align-x/align-y for labels and values

diff --git a/src/gui.cpp b/src/gui.cpp
index 91e632c..0d1246f 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -211,6 +211,7 @@ GtkWidget *label_param_control::create(plugin_gui *_gui, int _param_no)
     else
         text = attribs["text"];
     widget = gtk_label_new(text.c_str());
+    gtk_misc_set_alignment (GTK_MISC (widget), get_float("align-x", 0.5), get_float("align-y", 0.5));
     return widget;
 }
 
@@ -222,7 +223,7 @@ GtkWidget *value_param_control::create(plugin_gui *_gui, int _param_no)
     parameter_properties &props = get_props();
     widget = gtk_label_new ("");
     gtk_label_set_width_chars (GTK_LABEL (widget), props.get_char_count());
-    gtk_misc_set_alignment (GTK_MISC (widget), 0.5, 0.5);
+    gtk_misc_set_alignment (GTK_MISC (widget), get_float("align-x", 0.5), get_float("align-y", 0.5));
     return widget;
 }
 

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list