pike.git / lib / modules / Gnome.pmod

version» Context lines:

pike.git/lib/modules/Gnome.pmod:1:   #pike __REAL_VERSION__ + #require constant(GTK1.Widget)    - #if constant(GTK) + //! @decl import GTK1      mixed `[](string what)   { -  if(what == "_module_value") return ([])[0]; -  return (GTK["Gnome"+what] || GTK["gnome_"+what]); +  if(what == "_module_value") return UNDEFINED; +  if (has_prefix(what, "GNOME_")) return GTK1[what]; +  return (GTK1["Gnome"+what] || GTK1["gnome_"+what]);   }      array _indices()   { -  return glob( "GNOME_*", indices(GTK) ) + glob( "Gnome_*", indices(GTK) ); +  return glob( "GNOME_*", indices(GTK1) ) + +  map(glob( "Gnome*", indices(GTK1) ), predef::`[], +  sizeof("Gnome"), 0x7fffffff);   }    - #else /* !constant(GTK) */ -  - static void create() + array _values()   { -  /* Destroy ourselves. */ -  destruct(); +  return map(_indices(), `[]);   } -  - #endif /* constant(GTK) */ +