else {
gui->lock_window("AssetPicon::create_objects 2");
icon = gui->video_icon;
- icon_vframe = BC_WindowBase::get_resources()->type_to_icon[ICON_FILM];
+ icon_vframe = gui->video_vframe;
}
}
else {
icon = gui->video_icon;
- icon_vframe = BC_WindowBase::get_resources()->type_to_icon[ICON_FILM];
+ icon_vframe = gui->video_vframe;
}
}
else
if( asset->audio_data ) {
icon = gui->audio_icon;
- icon_vframe = BC_WindowBase::get_resources()->type_to_icon[ICON_SOUND];
+ icon_vframe = gui->audio_vframe;
}
}
else
if( indexable && !indexable->is_asset ) {
icon = gui->video_icon;
- icon_vframe = BC_WindowBase::get_resources()->type_to_icon[ICON_FILM];
+ icon_vframe = gui->video_vframe;
}
else
if( edl ) {
mwindow->edl->session->frames_per_foot);
set_text(name);
icon = gui->label_icon;
- icon_vframe = BC_WindowBase::get_resources()->type_to_icon[ICON_LABEL];
- set_icon(icon);
- set_icon_vframe(icon_vframe);
+ icon_vframe = gui->label_vframe;
}
if( !icon ) {
icon = gui->file_icon;
mwindow->theme->get_awindow_sizes(this);
load_defaults(mwindow->defaults);
- int x1 = mwindow->theme->alist_x, y1 = mwindow->theme->alist_y + 5;
+ int x1 = mwindow->theme->alist_x, y1 = mwindow->theme->alist_y;
int w1 = mwindow->theme->alist_w, h1 = mwindow->theme->alist_h;
- search_text = new AWindowSearchText(mwindow, this, x1, y1);
+ search_text = new AWindowSearchText(mwindow, this, x1, y1+5);
search_text->create_objects();
int dy = search_text->get_h() + 10;
y1 += dy; h1 -= dy;
void AWindowGUI::reposition_objects()
{
- int x1 = mwindow->theme->alist_x, y1 = mwindow->theme->alist_y + 5;
+ int x1 = mwindow->theme->alist_x, y1 = mwindow->theme->alist_y;
int w1 = mwindow->theme->alist_w, h1 = mwindow->theme->alist_h;
- search_text->reposition_window(x1, y1, w1);
+ search_text->reposition_window(x1, y1+5, w1);
int dy = search_text->get_h() + 10;
y1 += dy; h1 -= dy;
asset_list->reposition_window(x1, y1, w1, h1);
{
if( !result ) {
printf(_("remove %s\n"), plugin->path);
+ awindow->gui->lock_window("AWindowRemovePlugin::handle_close_event");
ArrayList<BC_ListBoxItem*> *folder =
plugin->audio ? plugin->transition ?
&awindow->gui->atransitions :
&awindow->gui->veffects :
0;
if( folder ) remove_plugin(plugin, *folder);
+ MWindow *mwindow = awindow->mwindow;
+ awindow->gui->unlock_window();
char plugin_path[BCTEXTLEN];
strcpy(plugin_path, plugin->path);
- MWindow *mwindow = awindow->mwindow;
mwindow->plugindb->remove(plugin);
remove(plugin_path);
char index_path[BCTEXTLEN];
- snprintf(index_path, sizeof(index_path), "%s/%s",
- mwindow->preferences->plugin_dir, PLUGIN_FILE);
+ mwindow->create_defaults_path(index_path, PLUGIN_FILE);
remove(index_path);
char picon_path[BCTEXTLEN];
FileSystem fs;
*
*/
+#include "aboutprefs.h"
#include "arraylist.h"
#include "batchrender.h"
#include "bcsignals.h"
operation == DO_USAGE ||
operation == DO_BATCHRENDER) {
- fprintf(stderr, PROGRAM_NAME " " CINELERRA_VERSION);
#ifndef REPOMAINTXT
#define REPOMAINTXT ""
#endif
#ifndef COPYRIGHTTEXT2
#define COPYRIGHTTEXT2 ""
#endif
-#ifndef COMPILEDATE
-#define COMPILEDATE ""
-#endif
- fprintf(stderr, REPOMAINTXT COPYRIGHTTEXT1 COPYRIGHTTEXT2 COMPILEDATE
- PROGRAM_NAME " is free software, covered by the GNU General Public License,\n"
+ fprintf(stderr, "%s %s - %s\n%s",
+ PROGRAM_NAME,CINELERRA_VERSION, AboutPrefs::build_timestamp,
+ REPOMAINTXT COPYRIGHTTEXT1 COPYRIGHTTEXT2);
+ fprintf(stderr, "%s is free software, covered by the GNU General Public License,\n"
"and you are welcome to change it and/or distribute copies of it under\n"
- "certain conditions. There is absolutely no warranty for " PROGRAM_NAME ".\n\n");
+ "certain conditions. There is absolutely no warranty for %s.\n\n",
+ PROGRAM_NAME, PROGRAM_NAME);
}
switch(operation)