After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 547135 - Gtk.init_with_args generates uncompilable code
Gtk.init_with_args generates uncompilable code
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.3.x
Other All
: Normal normal
: ---
Assigned To: Jürg Billeter
Vala maintainers
Depends on: 514186
Blocks:
 
 
Reported: 2008-08-10 05:13 UTC by Michael 'Mickey' Lauer
Modified: 2009-01-04 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Michael 'Mickey' Lauer 2008-08-10 05:13:55 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:
Comment 1 Jürg Billeter 2008-08-10 07:44:40 UTC
Confirming, we need to fix bug 514186 to be able to properly fix this.
Comment 2 Jürg Billeter 2009-01-04 18:41:02 UTC
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.