From: Martin Bähr mbaehr@email.archlab.tuwien.ac.at To: Stephen R. van den Berg srb@cuci.nl Cc: "Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum" 10353@lyskom.lysator.liu.se; pike-devel@lists.lysator.liu.se Sent: Saturday, June 9, 2012 12:01 PM Subject: Re: USB.devices OneWire.devices, how to unite it into an IO module?
btw: what's the difference between Pango and GTK2.Pango?
greetings, martin.
There is no difference. I copied it from GTK and GDK, where GDK is actually GTK.GDK. It is just an alias so that you don't have to type GTK2.Pango all the time.
#pike __REAL_VERSION__
#if constant(GTK2) && constant(GTK2.Widget)
//! @decl import GTK
mixed `[](string what) { if(what == "_module_value") return UNDEFINED; return (GTK2["Pango"+what] || GTK2["pango_"+what]); }
array _indices() { return glob( "PANGO_*", indices(GTK2) ) + glob( "Pango_*", indices(GTK2) ); }
#else constant this_program_does_not_exist=1; #endif /* constant(GTK2.Widget) */
Just returns GTK2.Pango (or GTK2["Pango*"]) if it exists.