GNOME Bugzilla – Bug 547135
Gtk.init_with_args generates uncompilable code
Last modified: 2009-01-04 18:41:02 UTC
Please describe the problem: Vala: Gtk.init_with_args( ref args, " - a lightweight terminal for the OpenMoko environment", options, "openmoko-terminal" ); Trying to compile: /local/pkg/openmoko/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.c: In function 'open_moko_terminal2_main_window_main': /local/pkg/openmoko/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.c:354: warning: passing argument 4 of 'gtk_init_with_args' discards qualifiers from pointer target type /local/pkg/openmoko/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.c:354: warning: passing argument 5 of 'gtk_init_with_args' makes pointer from integer without a cast /local/pkg/openmoko/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.c:354: warning: passing argument 6 of 'gtk_init_with_args' from incompatible pointer type /local/pkg/openmoko/trunk/src/target/OM-2007.2/applications/openmoko-terminal2/src/mainwindow.c:354: error: too many arguments to function 'gtk_init_with_args' error: cc exited with status 256 Compilation failed: 1 error(s), 0 warning(s) Steps to reproduce: 1. 2. 3. Actual results: Expected results: Does this happen every time? Other information:
Confirming, we need to fix bug 514186 to be able to properly fix this.
2009-01-04 Jürg Billeter <j@bitron.ch> * vapi/packages/gtk+-2.0/: Fix gtk_init_with_args binding, fixes bug 547135 * vapi/gtk+-2.0.vapi: regenerated Fixed in r2274.