>________________________________
> From: Martin Bähr <mba...@email.archlab.tuwien.ac.at>
>To: Stephen R. van den Berg <s...@cuci.nl> 
>Cc: "Henrik Grubbstr�m (Lysator) @ Pike (-) developers forum" 
><10...@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.
  • Re: USB.dev... Martin Bähr
    • Re: US... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
      • Re... Stephen R. van den Berg
      • Re... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
      • Re... Stephen R. van den Berg
      • Re... Martin Nilsson (Opera Mini - AFK!) @ Pike (-) developers forum
      • Re... Stephen R. van den Berg
      • Re... Martin Stjernholm
      • Re... Martin Bähr
      • Re... Martin Bähr
    • Re: US... Lance Dillon
    • Re: US... Lance Dillon
    • Re: US... Stephen R. van den Berg
  • Re: USB.dev... H. William Welliver III
    • Re: US... Stephen R. van den Berg
      • Re... H. William Welliver III
      • Re... H. William Welliver III
      • Re... Martin Bähr
      • Re... Stephen R. van den Berg
      • Re... H. William Welliver III
      • Re... Stephen R. van den Berg

Reply via email to