[SCM] calf/master: Fix show-rack-ears setting in plugins.

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:40:50 UTC 2013


The following commit has been merged in the master branch:
commit e685685791dffd6e8738d519ecdd23d2005660d2
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Mon Jan 16 22:17:20 2012 +0000

    Fix show-rack-ears setting in plugins.

diff --git a/src/gui.cpp b/src/gui.cpp
index 7dc716b..dc7b7ba 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -372,6 +372,10 @@ void plugin_gui::set_radio_group(int param, GSList *group)
 
 void plugin_gui::show_rack_ears(bool show)
 {
+    // if hidden, add a no-show-all attribute so that LV2 host doesn't accidentally override
+    // the setting by doing a show_all on the outermost container
+    gtk_widget_set_no_show_all(leftBox, !show);
+    gtk_widget_set_no_show_all(rightBox, !show);
     if (show)
     {
         gtk_widget_show(leftBox);
diff --git a/src/lv2gui.cpp b/src/lv2gui.cpp
index 34affa2..f10c23c 100644
--- a/src/lv2gui.cpp
+++ b/src/lv2gui.cpp
@@ -283,6 +283,7 @@ LV2UI_Handle gui_instantiate(const struct _LV2UI_Descriptor* descriptor,
     proxy->enable_all_sends();
     if (*(GtkWidget **)(widget))
         proxy->source_id = g_timeout_add_full(G_PRIORITY_LOW, 1000/30, plugin_on_idle, gui, NULL); // 30 fps should be enough for everybody    
+    gui->show_rack_ears(proxy->get_config()->rack_ears);
     
     return (LV2UI_Handle)gui;
 }

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list