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(GTK2) && constant(GTK2.Widget) +  + //! @decl import GTK2 +  + mixed `[](string what) + { +  if(what == "_module_value") return UNDEFINED; +  if (has_prefix(what, "GNOME_")) return GTK2[what]; +  return GTK2["Gnome2"+what]; + } +  + array _indices() + { +  return glob( "GNOME_*", indices(GTK2) ) + +  map(glob( "Gnome2*", indices(GTK2) ), predef::`[], +  sizeof("Gnome2"), 0x7fffffff); + } +  + array _values() + { +  return map(_indices(), `[]); + } +  + #else + constant this_program_does_not_exist=1; + #endif /* constant(GTK2.Widget) */   Newline at end of file added.