[Vala] signal activate



Hello, the signal 'activate'  from MenuItem don't expect any argument,
this say 
http://valadoc.org/gtk+-2.0/Gtk.MenuItem.activate.html

but in the doc of Gtk apear "GtkMenuItem *menuitem, gpointer user_data"
like argument.

Some times when I use these signal without parameter work fine, example

public void some_thing(){
stdout.printf("I'm activate ");
}

but in other cases and error apear (11 segmentation default)  if y add
an argument (void* data) all work fine.

public void some_thing(void* user_data){
.
.
some_thing_here
.
.
}

It, is a bug, a documentation error or my error.


pd: Sorry be my bad english




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