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.115 2006/01/25 09:21:47 jonasw Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.116 2008/05/22 14:43:04 mast 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:862: Inside #if constant(Sitebuilder)
   // current language fork.    if (Sitebuilder.sb_prepare_imagecache)    new_args = Sitebuilder.sb_prepare_imagecache(new_args, fi, id);   #endif    }       new_args->quant = args->quant || 128;    foreach(glob("*-*", indices(args)), string n)    new_args[n] = args[n];    +  //string fn;    // if( new_args->stat && (fn = id->conf->real_file( fi, id ) ) )    // Roxen.add_cache_stat_callback( id, fn, new_args->stat );    -  string fn; +    // werror("mkurl took %dµs\n", gethrtime()-t );      // t = gethrtime();    string img_src =    query_absolute_internal_location(id) +    button_cache->store( ({ new_args, (string)content }), id);       if(do_ext)    img_src += "." + (new_args->format || "gif");