File: Gnome2.pmod

package info (click to toggle)
pike8.0 8.0.702-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 79,608 kB
  • sloc: ansic: 266,508; xml: 186,324; makefile: 3,537; sh: 1,731; cpp: 1,328; lisp: 655; awk: 441; asm: 242; objc: 240; pascal: 157; perl: 34; sed: 34
file content (23 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pike __REAL_VERSION__
#require 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(), `[]);
}