Branch: Tag:

2000-05-03

2000-05-03 14:48:31 by Martin Nilsson <mani@lysator.liu.se>

Added the action button Clear cache

Rev: server/modules/graphics/graphic_text.pike:1.229

1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.228 2000/04/06 07:41:44 wing Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.229 2000/05/03 14:48:31 nilsson Exp $";      #include <module.h>   inherit "module";
13:   constant module_type = MODULE_PARSER;   constant module_name = "Graphic text";   constant module_doc = - #"Provides the <tt>&lt;gtext&gt;</tt> that is used to generate text into - graphical images."; + #"Provides the <tt>&lt;gtext&gt;&lt;/gtext&gt;</tt> tag that is used + to generate text into graphical images.";   constant thread_safe = 1;      void create()
495:    s[0]/2, sizetostring(s[1]));   }    + mapping(string:function) query_action_buttons() { +  return ([ "Clear cache":image_cache->flush ]); + } +    void start(int num, Configuration conf)   {    image_cache = roxen.ImageCache( "gtext", draw_callback );