Branch: Tag:

2011-10-30

2011-10-30 12:49:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

GTK: Added wrappers for GTK2.Gnome2 and GTK2.Pango.

Also fixed some bugs in the corresponding GTK1.Gnome wrapper.

1:   #pike __REAL_VERSION__    - #if constant(GTK) && constant(GTK.Widget) + #if constant(GTK1) && constant(GTK1.Widget)    - //! @decl import GTK + //! @decl import GTK1      mixed `[](string what)   {    if(what == "_module_value") return UNDEFINED; -  return (GTK["Gnome"+what] || GTK["gnome_"+what]); +  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);   }    -  + array _values() + { +  return map(_indices(), `[]); + } +    #else   constant this_program_does_not_exist=1; - #endif /* constant(GTK.Widget) */ + #endif /* constant(GTK1.Widget) */