X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fplugindialog.C;h=5ce006c00fc2dc1bbf87da3601935da78267cfa9;hb=6fae7dd0f56872d524c1a6cf749a15574783f9e8;hp=9fec465d3a1e1c6752a4b5b369ffc6e83df43bda;hpb=c7fa9dc718ca872dd8068d7ddd9f58a81b696a87;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/plugindialog.C b/cinelerra-5.1/cinelerra/plugindialog.C index 9fec465d..5ce006c0 100644 --- a/cinelerra-5.1/cinelerra/plugindialog.C +++ b/cinelerra-5.1/cinelerra/plugindialog.C @@ -243,25 +243,8 @@ PluginDialog::~PluginDialog() void PluginDialog::create_objects() { // int use_default = 1; - char string[BCTEXTLEN]; mwindow->theme->get_plugindialog_sizes(); - lock_window("PluginDialog::create_objects"); - if(thread->plugin) - { - strcpy(string, thread->plugin->title); - //use_default = 0; - } - else - { -// no plugin - sprintf(string, _("None")); - } - - - - - // GET A LIST OF ALL THE PLUGINS AVAILABLE mwindow->search_plugindb(thread->data_type == TRACK_AUDIO, @@ -288,10 +271,9 @@ void PluginDialog::create_objects() PLAY_FORWARD, 1, 0); - char *plugin_title = plugin->title; char string[BCTEXTLEN]; - - snprintf(string, sizeof(string), "%s: %s", track_title, _(plugin_title)); + const char *plugin_title = _(plugin->title); + snprintf(string, sizeof(string), "%s: %s", track_title, plugin_title); shared_data.append(new BC_ListBoxItem(string)); } for(int i = 0; i < module_locations.total; i++) @@ -330,12 +312,6 @@ void PluginDialog::create_objects() // mwindow->theme->plugindialog_newattach_y)); // - - - - - - add_subwindow(shared_title = new BC_Title(mwindow->theme->plugindialog_shared_x, mwindow->theme->plugindialog_shared_y - 20, _("Shared effects:"))); @@ -357,13 +333,6 @@ void PluginDialog::create_objects() // mwindow->theme->plugindialog_sharedattach_y)); // - - - - - - - add_subwindow(module_title = new BC_Title(mwindow->theme->plugindialog_module_x, mwindow->theme->plugindialog_module_y - 20, _("Shared tracks:")));