Roxen.git / server / modules / graphics / gbutton.pike

version» Context lines:

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.107 2004/06/07 11:00:01 _cvs_stephen Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.108 2004/09/12 00:08:46 _cvs_dirix Exp $";   constant thread_safe = 1;      #include <module.h>   #include <stat.h>   inherit "module";      core.ImageCache button_cache;   int do_ext;      constant module_type = MODULE_TAG;
Roxen.git/server/modules/graphics/gbutton.pike:280:    {    case "background": background = l; break;    case "frame": frame = l; break;    case "mask": mask = l; break;    }    }    };       if( args->border_image )    { + #ifndef SiteBuilder    array(Image.Layer)|mapping tmp =    core.load_layers(args->border_image, id, opts); -  + #else + // Let SiteBuilder get a chance to decode its argument data + array(Image.Layer)|mapping tmp; +  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 +  { +  tmp = roxen.load_layers(args->border_image, id, opts); +  } + #endif       if (mappingp(tmp))    if (tmp->error == 401)    return tmp;    else    report_debug("GButton: Failed to load frame image: %O\n",    args->border_image);    set_image( tmp );    }