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.120 2009/11/24 15:17:33 grubba Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.121 2009/11/26 15:12:34 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:846:    ]);       // 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 = UNDEFINED; -  if (args["unix-time"]) { -  timeout = (int)args["unix-time"] - time(1); -  } -  timeout = Roxen.time_dequantifier(args, timeout); -  if (!zero_type(timeout)) { -  // Clean up the args mapping. -  foreach(({ "unix-time", "seconds", "minutes", "beats", "hours", -  "days", "weeks", "months", "years" }), string arg) { -  m_delete(args, arg); -  } -  // Make sure the timeout is positive (and reasonable). -  if (timeout < 60) timeout = 60; -  } +  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