Branch: Tag:

2000-09-03

2000-09-03 02:33:17 by Per Hedbor <ph@opera.com>

New font handling system

Rev: server/base_server/fonts.pike:1.58
Rev: server/base_server/roxen.pike:1.540
Rev: server/etc/modules/Variable.pmod/module.pmod:1.12
Rev: server/font_handlers/old.pike:1.1
Rev: server/font_handlers/ttf.pike:1.1

1: - // $Id: module.pmod,v 1.11 2000/09/01 01:15:21 mast Exp $ + // $Id: module.pmod,v 1.12 2000/09/03 02:33:00 per Exp $      #include <module.h>   #include <roxen.h>
142:    m_delete( changed_callbacks, _id );    }    +  void add_changed_callback( function(Variable:void) cb ) +  //! Add a new callback to be called when the variable is changed. +  //! If set_changed_callback is called, callbacks added with this function +  //! are overridden. +  { +  mixed oc = get_changed_callback( ); +  if( arrayp( oc ) ) +  oc += ({ cb }); +  else +  oc = ({ oc, cb }) - ({ 0 }); +  changed_callbacks[ _id ] = oc; +  } +     function(RequestID,Variable:int) get_invisibility_check_callback()    //! Return the current invisibility check callback    {
717:    // Make an entry for the current value if it's not in the list,    // so no other value appears to be selected, and to ensure that    // the value doesn't change as a side-effect by another change. -  res = " " + Roxen.make_container ( +  res += " " + Roxen.make_container (    "option", (["value": current, "selected": "selected"]),    "(keep stale value " + current + ")");    return res + "</select>";