void PluginServer::set_title(const char *string)
{
- if(title) delete [] title;
+ delete [] title;
title = cstrdup(string);
}
char png_name[BCSTRLEN];
get_plugin_png_name(png_name);
char *pp = png_path, *ep = pp + BCTEXTLEN-1;
- pp += snprintf(pp, ep-pp, "%s/picon_%s/%s",
+ pp += snprintf(pp, ep-pp, "%s/picon/%s/%s",
File::get_plugin_path(), plugin_icons, png_name);
return access(png_path,R_OK) ? 1 : 0;
}
return VFramePng::vframe_png(png_path,0,0);
char png_name[BCSTRLEN];
get_plugin_png_name(png_name);
- unsigned char *data = mwindow->theme->get_image_data(png_name);
+ unsigned char *data = mwindow->theme->get_image_data(png_name, 0);
return data ? new VFramePng(data, 0.) : 0;
}