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 2009/11/26 15:43:48 grubba 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:847:    ]);       // Remove extra layer attributes to avoid *-* copying below    m_delete(args, "extra-layers");    m_delete(args, "extra-left-layers");    m_delete(args, "extra-right-layers");    m_delete(args, "extra-background-layers");    m_delete(args, "extra-mask-layers");    m_delete(args, "extra-frame-layers");    +  int timeout = Roxen.timeout_dequantifier(args); +     if( fi ) {    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    }
Roxen.git/server/modules/graphics/gbutton.pike:871:       // 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); +  button_cache->store( ({ new_args, (string)content }), id, timeout);       if(do_ext)    img_src += "." + (new_args->format || "gif");      // werror("argcache->store took %dµs\n", gethrtime()-t );    return ({ img_src, new_args });    }   }      class TagGButtonURL {