1d19e42011-10-30Henrik Grubbström (Grubba) #pike __REAL_VERSION__
e1fb092014-02-14Martin Nilsson #require constant(GTK2.Widget)
1d19e42011-10-30Henrik Grubbström (Grubba)  //! @decl import GTK2
b526982019-04-16Henrik Grubbström (Grubba) protected mixed `[](string what)
1d19e42011-10-30Henrik Grubbström (Grubba) { if(what == "_module_value") return UNDEFINED; if (has_prefix(what, "GNOME_")) return GTK2[what]; return GTK2["Gnome2"+what]; }
b526982019-04-16Henrik Grubbström (Grubba) protected array _indices()
1d19e42011-10-30Henrik Grubbström (Grubba) { return glob( "GNOME_*", indices(GTK2) ) + map(glob( "Gnome2*", indices(GTK2) ), predef::`[], sizeof("Gnome2"), 0x7fffffff); }
b526982019-04-16Henrik Grubbström (Grubba) protected array _values()
1d19e42011-10-30Henrik Grubbström (Grubba) { return map(_indices(), `[]); }