[Vala] Checking for methods



Hi
In my app I'm using some new features from Gtk 2.14, but I don't want
to depend on such a recent release just for a couple of minor things,
so I'd like to use them only if available.
I'm wondering if there's a way to check if a class/namespace has a
method (e.g. I should check for Gtk namespace to contain "show_uri"
function), something similar to python "hasattr()".
Otherwise how could I do this check?
Could be useful considering that I'm using Waf to
configure/make/install my project.

Thank you

Regards,
Federico



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]