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.117 2009/02/19 17:20:41 jonasw Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.118 2009/04/29 15:16:48 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:857: Inside #if constant(Sitebuilder)
   new_args->stat = get_file_stat( fi, id );   #if constant(Sitebuilder)    // The file we called get_file_stat() on above may be a SiteBuilder    // file. If so we need to extend the argument data with e.g.    // current language fork.    if (Sitebuilder.sb_prepare_imagecache)    new_args = Sitebuilder.sb_prepare_imagecache(new_args, fi, id);   #endif    }    +  if (string icn_path = new_args->icn) { +  new_args->stat_icn = get_file_stat(icn_path, id); + #if constant(Sitebuilder) +  if (Sitebuilder.sb_prepare_imagecache) +  new_args = Sitebuilder.sb_prepare_imagecache(new_args, icn_path, 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 );      // werror("mkurl took %dµs\n", gethrtime()-t );