[Vala] Snoop warnings
- From: James Campos <james r campos gmail com>
- To: vala-list gnome org
- Subject: [Vala] Snoop warnings
- Date: Sat, 7 Nov 2009 21:04:58 -0800
Hi,
I'm getting warnings when I use the key_snooper_install function. Am I
doing something wrong, or is this a known issue? Using Vala 0.7.8:
using Gtk;
public class Foo : Window {
public Foo () {
key_snooper_install (snoop_callback, null);
}
public int snoop_callback () {
return 0;
}
public static int main (string[] args) {
Gtk.init (ref args);
var window = new Foo ();
window.destroy.connect (Gtk.main_quit);
window.show_all ();
Gtk.main ();
return 0;
}
}
/home/james/code/vala/scratch.vala.c: In function
‘_foo_snoop_callback_gtk_key_snoop_func’:
/home/james/code/vala/scratch.vala.c:51: warning: passing argument 1
of ‘foo_snoop_callback’ from incompatible pointer type
/home/james/code/vala/scratch.vala.c:41: note: expected ‘struct Foo *’
but argument is of type ‘struct GtkWidget *’
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]