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.109 2004/09/12 13:20:50 _cvs_dirix Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.110 2004/10/07 14:27:44 _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 )    { -  array(Image.Layer)|mapping tmp = +  array(Image.Layer)|mapping tmp; +    #if constant(Sitebuilder)    // 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); +  tmp = core.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); +  tmp = core.load_layers(args->border_image, id, opts);    }       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 );    }