Roxen.git/server/modules/graphics/gbutton.pike:20:
// icon-data -- inline icon data
// align -- left|center|right text alignment
// align-icon -- left|center-before|center-after|right icon alignment
// valign-icon -- above|middle|below icon vertical alignment
// >Button text</gbutton>
//
// Alignment restriction: when text alignment is either left or right, icons
// must also be aligned left or right.
- constant cvs_version = "$Id: gbutton.pike,v 1.112 2005/10/24 09:52:48 anders Exp $";
+ constant cvs_version = "$Id: gbutton.pike,v 1.113 2006/01/25 09:21:49 jonasw Exp $";
constant thread_safe = 1;
#include <module.h>
inherit "module";
roxen.ImageCache button_cache;
int do_ext;
constant module_type = MODULE_TAG;
constant module_name = "Graphics: GButton";
Roxen.git/server/modules/graphics/gbutton.pike:293: Inside #if constant(Sitebuilder)
if (Sitebuilder.sb_start_use_imagecache) {
Sitebuilder.sb_start_use_imagecache(args, id);
tmp = roxen.load_layers(args->border_image, id, opts);
Sitebuilder.sb_end_use_imagecache(args, id);
} else
#endif
{
tmp = roxen.load_layers(args->border_image, id, opts);
}
- if (mappingp(tmp))
- if (tmp->error == 401)
+ if (mappingp(tmp)) {
+ if (tmp->error != 401)
+ report_debug("GButton: Failed to load frame image: %O (error: %O)\n",
+ args->border_image, tmp->error);
return tmp;
- else
- report_debug("GButton: Failed to load frame image: %O\n",
- args->border_image);
+ }
set_image( tmp );
}
// otherwise load default images
if ( !frame && !background && !mask )
{
string data = Stdio.read_file("roxen-images/gbutton.xcf");
if (!data)
error ("Failed to load default frame image "