[SCM] calf/master: + GUI: fix preset menu construction
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:37:25 UTC 2013
The following commit has been merged in the master branch:
commit 7a40cc5c36ce9e4b56ee605e3f820dde3f3bf7b5
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date: Fri Jul 25 22:52:33 2008 +0000
+ GUI: fix preset menu construction
git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@238 78b06b96-2940-0410-b7fc-879d825d01d8
diff --git a/src/gui.cpp b/src/gui.cpp
index 163c027..28b3b50 100644
--- a/src/gui.cpp
+++ b/src/gui.cpp
@@ -895,7 +895,8 @@ string plugin_gui_window::make_gui_preset_list(GtkActionGroup *grp, bool builtin
string sv = ss.str();
string prefix = ch == ' ' ? string() : string("_")+ch+" ";
- GtkActionEntry ae = { sv.c_str(), NULL, (prefix + pvec[i].name).c_str(), NULL, NULL, (GCallback)activate_preset };
+ string name = prefix + pvec[i].name;
+ GtkActionEntry ae = { sv.c_str(), NULL, name.c_str(), NULL, NULL, (GCallback)activate_preset };
gtk_action_group_add_actions_full(preset_actions, &ae, 1, (gpointer)new activate_preset_params(gui, i, builtin), action_destroy_notify);
}
preset_xml += preset_post_xml;
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list