+VFrame *AWindowGUI::get_picon(const char *name, const char *plugin_icons)
+{
+ char png_path[BCTEXTLEN];
+ char *pp = png_path, *ep = pp + sizeof(png_path)-1;
+ snprintf(pp, ep-pp, "%s/picon_%s/%s.png",
+ File::get_plugin_path(), plugin_icons, name);
+ return VFramePng::vframe_png(png_path,0,0);
+}
+
+VFrame *AWindowGUI::get_picon(const char *name)
+{
+ VFrame *vframe = get_picon(name, mwindow->preferences->plugin_icons);
+ if( !vframe ) vframe = get_picon(name, DEFAULT_PICON);
+ return vframe;
+}
+
+VFrame *AWindowGUI::resource_icon(VFrame *&vfrm, BC_Pixmap *&icon, const char *fn, int idx)
+{
+ VFrame *ret = vfrm = get_picon(fn);
+ if( !ret ) vfrm = BC_WindowBase::get_resources()->type_to_icon[idx];
+ icon = new BC_Pixmap(this, vfrm, PIXMAP_ALPHA);
+ return ret;
+}
+VFrame *AWindowGUI::theme_icon(VFrame *&vfrm, BC_Pixmap *&icon, const char *fn)
+{
+ VFrame *ret = vfrm = get_picon(fn);
+ if( !ret ) vfrm = mwindow->theme->get_image(fn);
+ icon = new BC_Pixmap(this, vfrm, PIXMAP_ALPHA);
+ return ret;
+}
+VFrame *AWindowGUI::plugin_icon(VFrame *&vfrm, BC_Pixmap *&icon, const char *fn, unsigned char *png)