Re: [Vala] Generated code, GTK signals and prefixes.



Hello,

you can use something like this:

namespace MyNamespace {
 class MyClass {
  [CCode (cname = "G_MODULE_EXPORT on_button_any_clicked", instance_pos = -1)]
  static void my_handler(Widget widget) { ... }
  }
}

It is described here:
http://live.gnome.org/Vala/GTKSample#Loading_User_Interface_from_XML_File

--
Moritz Bitsch
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments



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