Juerg Billeter [Sun, 20 Apr 2008 10:11:14 +0000 (10:11 +0000)]
fix gtk_*_store_set_column_types bindings, patch by Daniel Svensson
2008-04-20 Juerg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_*_store_set_column_types
bindings, patch by Daniel Svensson
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1283
Juerg Billeter [Sun, 20 Apr 2008 09:49:44 +0000 (09:49 +0000)]
fix gtk_scrolled_window_new binding, patch by Daniel Svensson
2008-04-20 Juerg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_scrolled_window_new binding,
patch by Daniel Svensson
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1282
Juerg Billeter [Sat, 19 Apr 2008 23:13:08 +0000 (23:13 +0000)]
fix glade_xml_new* bindings, patch by Christian Meyer
2008-04-20 Juerg Billeter <j@bitron.ch>
* vapi/packages/libglade-2.0/: fix glade_xml_new* bindings,
patch by Christian Meyer
* vapi/libglade-2.0.vapi: regenerated
svn path=/trunk/; revision=1281
Juerg Billeter [Sat, 19 Apr 2008 22:54:31 +0000 (22:54 +0000)]
set free_function for XPathContext and replace `pointer' by `void*', fixes
2008-04-20 Juerg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vapi: set free_function for XPathContext and
replace `pointer' by `void*', fixes bug 528959
svn path=/trunk/; revision=1280
Juerg Billeter [Sat, 19 Apr 2008 22:43:07 +0000 (22:43 +0000)]
support partial interface reimplementation, fixes bug 504079
2008-04-20 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: support partial interface
reimplementation, fixes bug 504079
svn path=/trunk/; revision=1279
Juerg Billeter [Sat, 19 Apr 2008 21:58:44 +0000 (21:58 +0000)]
report error when trying to set construct-only properties
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when trying to set
construct-only properties
svn path=/trunk/; revision=1278
Juerg Billeter [Sat, 19 Apr 2008 21:39:02 +0000 (21:39 +0000)]
fix D-Bus signal handlers, fixes bug 528937
2008-04-19 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala: fix D-Bus signal
handlers, fixes bug 528937
svn path=/trunk/; revision=1277
Juerg Billeter [Sat, 19 Apr 2008 21:26:45 +0000 (21:26 +0000)]
mark all cancellable parameters as nullable, fixes bug 528954
2008-04-19 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/: mark all cancellable parameters as
nullable, fixes bug 528954
* vapi/gio-2.0.vapi: regenerated
svn path=/trunk/; revision=1276
Juerg Billeter [Sat, 19 Apr 2008 21:17:47 +0000 (21:17 +0000)]
support virtual methods in interfaces, fixes bug 443525
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala,
gobject/valaccodeinterfacebinding.vala: support virtual methods
in interfaces, fixes bug 443525
svn path=/trunk/; revision=1275
Juerg Billeter [Sat, 19 Apr 2008 16:42:51 +0000 (16:42 +0000)]
get D-Bus sample working again
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valaattributeprocessor.vala, vala/valaerrortype.vala,
vapi/dbus-glib-1.vapi, gobject/valaccodegenerator.vala: get D-Bus
sample working again
svn path=/trunk/; revision=1274
Juerg Billeter [Sat, 19 Apr 2008 16:33:40 +0000 (16:33 +0000)]
, vala/valadestructor.vala, vala/valasemanticanalyzer.vala,
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala:, vala/valadestructor.vala,
vala/valasemanticanalyzer.vala, gobject/valaccodeclassbinding.vala:
support `this' access in destructors, fixes bug 527997
svn path=/trunk/; revision=1273
Juerg Billeter [Sat, 19 Apr 2008 16:11:00 +0000 (16:11 +0000)]
don't check for `pointer' struct
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: don't check for `pointer' struct
svn path=/trunk/; revision=1272
Juerg Billeter [Sat, 19 Apr 2008 16:06:52 +0000 (16:06 +0000)]
Replace `pointer' by `void*' in all bindings and remove pointer struct
2008-04-19 Juerg Billeter <j@bitron.ch>
Replace `pointer' by `void*' in all bindings and remove pointer
struct from GLib bindings, fixes bug 510085
svn path=/trunk/; revision=1271
Marc-Andre Lureau [Sat, 19 Apr 2008 15:17:19 +0000 (15:17 +0000)]
replace 'pointer' by 'void*'
2008-04-20 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/glib-2.0.vapi: replace 'pointer' by 'void*'
svn path=/trunk/; revision=1270
Juerg Billeter [Sat, 19 Apr 2008 15:03:34 +0000 (15:03 +0000)]
fix g_file_monitor_* bindings, patch by Jaap A. Haitsma, fixes bug 528881
2008-04-19 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/: fix g_file_monitor_* bindings,
patch by Jaap A. Haitsma, fixes bug 528881
* vapi/gio-2.0.vapi: regenerated
svn path=/trunk/; revision=1269
Juerg Billeter [Sat, 19 Apr 2008 14:46:00 +0000 (14:46 +0000)]
don't mangle D-Bus signal names, fixes bug 528774
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala, vala/valasignal.vala,
gobject/valaccodeassignmentbinding.vala: don't mangle D-Bus
signal names, fixes bug 528774
svn path=/trunk/; revision=1268
Juerg Billeter [Sat, 19 Apr 2008 09:00:48 +0000 (09:00 +0000)]
fix crash when trying to iterate over pointer types, fixes bug 528765
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala, gobject/valaccodegenerator.vala:
fix crash when trying to iterate over pointer types,
fixes bug 528765
svn path=/trunk/; revision=1267
Juerg Billeter [Sat, 19 Apr 2008 08:44:10 +0000 (08:44 +0000)]
fix to_string for nullable delegates
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valadelegatetype.vala: fix to_string for nullable delegates
* vapi/packages/gtk+-2.0/: fix gtk_about_dialog_set_*_hook
bindings, patch by Jaap A. Haitsma, fixes bug 528674
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1266
Juerg Billeter [Sat, 19 Apr 2008 08:34:33 +0000 (08:34 +0000)]
Mark generic type parameter properties as construct-only, fixes bug 528567
2008-04-19 Juerg Billeter <j@bitron.ch>
* gobject/valaccodeassignmentbinding.vala,
gobject/valaccodebinding.vala, gobject/valaccodeclassbinding.vala,
gobject/valaccodemethodbinding.vala:
Mark generic type parameter properties as construct-only,
fixes bug 528567
svn path=/trunk/; revision=1265
Juerg Billeter [Sat, 19 Apr 2008 07:30:12 +0000 (07:30 +0000)]
disable null warnings with --disable-non-null
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: disable null warnings with
--disable-non-null
svn path=/trunk/; revision=1264
Juerg Billeter [Sat, 19 Apr 2008 07:20:32 +0000 (07:20 +0000)]
fix g_output_stream_write_all and g_file_load_contents bindings, fixes bug
2008-04-19 Juerg Billeter <j@bitron.ch>
* vapi/packages/gio-2.0/: fix g_output_stream_write_all and
g_file_load_contents bindings, fixes bug 528491
* vapi/gio-2.0.vapi: regenerated
svn path=/trunk/; revision=1263
Juerg Billeter [Sat, 19 Apr 2008 06:59:53 +0000 (06:59 +0000)]
Add CCodeInvocationExpressionBinding and CCodeMemberAccessBinding classes
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala, vala/valainvocationexpression.vala,
vala/valamemberaccess.vala, gobject/Makefile.am,
gobject/valaccodegenerator.vala,
gobject/valaccodeinvocationexpressionbinding.vala,
gobject/valaccodememberaccessbinding.vala:
Add CCodeInvocationExpressionBinding and CCodeMemberAccessBinding
classes
svn path=/trunk/; revision=1262
Juerg Billeter [Sat, 19 Apr 2008 06:35:09 +0000 (06:35 +0000)]
Add CCodeCreationMethodBinding and CCodeMethodBinding classes
2008-04-19 Juerg Billeter <j@bitron.ch>
* gobject/Makefile.am, gobject/valaccodecreationmethodbinding.vala,
gobject/valaccodegenerator.vala, gobject/valaccodemethodbinding.vala,
vala/valacreationmethod.vala:
Add CCodeCreationMethodBinding and CCodeMethodBinding classes
svn path=/trunk/; revision=1261
Juerg Billeter [Sat, 19 Apr 2008 06:06:38 +0000 (06:06 +0000)]
Add CCodeTypesymbolBinding, CCodeClassBinding, and CCodeInterfaceBinding
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterface.vala, gobject/Makefile.am,
gobject/valaccodeassignmentbinding.vala,
gobject/valaccodebinding.vala, gobject/valaccodeclassbinding.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodeinterfacebinding.vala,
gobject/valaccodetypesymbolbinding.vala:
Add CCodeTypesymbolBinding, CCodeClassBinding, and
CCodeInterfaceBinding classes
svn path=/trunk/; revision=1260
Juerg Billeter [Sat, 19 Apr 2008 05:34:20 +0000 (05:34 +0000)]
Use lazy initialization for code bindings
2008-04-19 Juerg Billeter <j@bitron.ch>
* vala/valaarraycreationexpression.vala, vala/valaassignment.vala,
vala/valacodebinding.vala, vala/valacodecontext.vala,
vala/valacodenode.vala, vala/valaelementaccess.vala,
vala/valamethod.vala, vala/valaparser.vala,
vala/valasemanticanalyzer.vala,
gobject/valaccodearraycreationexpressionbinding.vala,
gobject/valaccodeassignmentbinding.vala,
gobject/valaccodebinding.vala,
gobject/valaccodeelementaccessbinding.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratormemberaccess.vala,
gobject/valaccodemethodbinding.vala,
gobject/valadbusbindingprovider.vala:
Use lazy initialization for code bindings
svn path=/trunk/; revision=1259
Juerg Billeter [Fri, 18 Apr 2008 22:06:11 +0000 (22:06 +0000)]
fix casts to GTypeInstance
2008-04-19 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix casts to GTypeInstance
* vapi/glib-2.0.vapi: add get_type method to GLib.TypeInstance
svn path=/trunk/; revision=1258
Juerg Billeter [Fri, 18 Apr 2008 21:49:39 +0000 (21:49 +0000)]
check accessiblity of base types of classes and interfaces, fixes bug
2008-04-18 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: check accessiblity of base types
of classes and interfaces, fixes bug 514262
svn path=/trunk/; revision=1257
Juerg Billeter [Fri, 18 Apr 2008 21:40:37 +0000 (21:40 +0000)]
don't report secondary syntax errors, fixes bug 511896
2008-04-18 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: don't report secondary syntax errors,
fixes bug 511896
svn path=/trunk/; revision=1256
Juerg Billeter [Fri, 18 Apr 2008 21:26:04 +0000 (21:26 +0000)]
make sure that ref_function and unref_function of classes deriving from
2008-04-18 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, gobject/valaccodegeneratorclass.vala: make
sure that ref_function and unref_function of classes deriving
from GTypeInstance are always initialized
svn path=/trunk/; revision=1255
Juerg Billeter [Fri, 18 Apr 2008 21:08:34 +0000 (21:08 +0000)]
ensure all classes have a default construction method
2008-04-18 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: ensure all classes have a default
construction method
svn path=/trunk/; revision=1254
Juerg Billeter [Thu, 17 Apr 2008 20:31:50 +0000 (20:31 +0000)]
restore compatibility with sqlite < 3.5.0
2008-04-17 Juerg Billeter <j@bitron.ch>
* vapi/sqlite3.vapi: restore compatibility with sqlite < 3.5.0
svn path=/trunk/; revision=1253
Juerg Billeter [Thu, 17 Apr 2008 20:01:36 +0000 (20:01 +0000)]
report error when using `this' or `base' access outside of instance
2008-04-17 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when using `this' or
`base' access outside of instance methods
svn path=/trunk/; revision=1252
Marc-Andre Lureau [Wed, 16 Apr 2008 22:27:14 +0000 (22:27 +0000)]
complete glib-2.0 enum and flags bindings, fixes bug 528114
2008-04-16 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/glib-2.0.vapi (EnumClass, FlagsClass, FlagsValue): complete
glib-2.0 enum and flags bindings, fixes bug 528114
svn path=/trunk/; revision=1251
Juerg Billeter [Wed, 16 Apr 2008 21:27:11 +0000 (21:27 +0000)]
replace `pointer' by void*, patch by Levi Bard
2008-04-16 Juerg Billeter <j@bitron.ch>
* vapi/sdl-gfx.vapi, vapi/sdl-image.vapi, vapi/sdl-mixer.vapi,
vapi/sdl.vapi: replace `pointer' by void*, patch by Levi Bard
svn path=/trunk/; revision=1250
Juerg Billeter [Wed, 16 Apr 2008 21:05:06 +0000 (21:05 +0000)]
fix error handling in static constructors, fixes bug 528111
2008-04-16 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala: fix error handling in static
constructors, fixes bug 528111
svn path=/trunk/; revision=1249
Juerg Billeter [Wed, 16 Apr 2008 20:52:32 +0000 (20:52 +0000)]
fix dbus_connection_setup_with_g_main binding
2008-04-16 Juerg Billeter <j@bitron.ch>
* vapi/dbus-glib-1.vapi: fix dbus_connection_setup_with_g_main binding
svn path=/trunk/; revision=1248
Juerg Billeter [Wed, 16 Apr 2008 20:41:50 +0000 (20:41 +0000)]
Fix base access with virtual interface methods, fixes bug 528457
2008-04-16 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinvocationexpression.vala,
gobject/valaccodegeneratormemberaccess.vala:
Fix base access with virtual interface methods, fixes bug 528457
* tests/classes-methods.vala: test base access
svn path=/trunk/; revision=1247
Juerg Billeter [Wed, 16 Apr 2008 16:24:46 +0000 (16:24 +0000)]
improve error handling, fixes bug 528431
2008-04-16 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: improve error handling, fixes bug 528431
svn path=/trunk/; revision=1246
Juerg Billeter [Wed, 16 Apr 2008 16:15:53 +0000 (16:15 +0000)]
Fix generated C code when calling struct methods
2008-04-16 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratorinvocationexpression.vala:
Fix generated C code when calling struct methods
svn path=/trunk/; revision=1245
Juerg Billeter [Wed, 16 Apr 2008 15:56:27 +0000 (15:56 +0000)]
Fix generated C code when passing structs by reference, fixes bug 528414
2008-04-16 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinvocationexpression.vala:
Fix generated C code when passing structs by reference,
fixes bug 528414
svn path=/trunk/; revision=1244
Juerg Billeter [Wed, 16 Apr 2008 15:45:33 +0000 (15:45 +0000)]
Rename VariableDeclarator to LocalVariable, remove
2008-04-16 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/vala.h, vala/valablock.vala,
vala/valacatchclause.vala, vala/valacfgbuilder.vala,
vala/valaclass.vala, vala/valacodecontext.vala,
vala/valacodegenerator.vala, vala/valacodevisitor.vala,
vala/valadeclarationstatement.vala, vala/valaexpression.vala,
vala/valaforeachstatement.vala, vala/valainterface.vala,
vala/valalocalvariable.vala, vala/valamemorymanager.vala,
vala/valamethod.vala, vala/valanullchecker.vala,
vala/valaparser.vala, vala/valasemanticanalyzer.vala,
vala/valastruct.vala, vala/valaswitchsection.vala,
vala/valasymbolresolver.vala,
gobject/valaccodearraycreationexpressionbinding.vala,
gobject/valaccodeassignmentbinding.vala,
gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinvocationexpression.vala,
gobject/valaccodegeneratormemberaccess.vala:
Rename VariableDeclarator to LocalVariable,
remove LocalVariableDeclaration class
svn path=/trunk/; revision=1243
Marc-Andre Lureau [Wed, 16 Apr 2008 14:27:47 +0000 (14:27 +0000)]
Make DestroyNotify delegate argument nullable.
2008-04-16 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/glib-2.0.vapi: Make DestroyNotify delegate argument
nullable.
svn path=/trunk/; revision=1242
Juerg Billeter [Tue, 15 Apr 2008 21:40:33 +0000 (21:40 +0000)]
update for use with non-null types
2008-04-15 Juerg Billeter <j@bitron.ch>
* vala/valascope.vala: update for use with non-null types
svn path=/trunk/; revision=1241
Juerg Billeter [Tue, 15 Apr 2008 21:32:29 +0000 (21:32 +0000)]
fix cairo_set_dash binding
2008-04-15 Juerg Billeter <j@bitron.ch>
* vapi/cairo.vapi: fix cairo_set_dash binding
svn path=/trunk/; revision=1240
Juerg Billeter [Tue, 15 Apr 2008 20:27:37 +0000 (20:27 +0000)]
fix g_main_loop_new binding, patch by Andrea Del Signore
2008-04-15 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: fix g_main_loop_new binding,
patch by Andrea Del Signore
svn path=/trunk/; revision=1239
Juerg Billeter [Tue, 15 Apr 2008 20:15:40 +0000 (20:15 +0000)]
fix gtk_message_dialog_new* bindings, patch by Phil Housley
2008-04-15 Juerg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_message_dialog_new* bindings,
patch by Phil Housley
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1238
Juerg Billeter [Tue, 15 Apr 2008 20:07:19 +0000 (20:07 +0000)]
Remove is_ref and is_out properties from DataType class, add direction
2008-04-15 Juerg Billeter <j@bitron.ch>
* vala/valaarraytype.vala, vala/valaclasstype.vala,
vala/valadatatype.vala, vala/valaformalparameter.vala,
vala/valainterfacetype.vala, vala/valainterfacewriter.vala,
vala/valanulltype.vala, vala/valaparser.vala,
vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala,
vala/valatypeparametertype.vala, vala/valaunresolvedtype.vala,
vala/valavaluetype.vala, gobject/valaccodegenerator.vala,
gobject/valaccodegeneratorinterface.vala,
gobject/valaccodegeneratorinvocationexpression.vala,
gobject/valaccodegeneratormemberaccess.vala,
gobject/valaccodegeneratormethod.vala,
gobject/valaccodegeneratorsignal.vala,
gobject/valagidlwriter.vala, vapigen/valagidlparser.vala:
Remove is_ref and is_out properties from DataType class, add
direction property to FormalParameter class
svn path=/trunk/; revision=1237
Juerg Billeter [Tue, 15 Apr 2008 19:01:12 +0000 (19:01 +0000)]
improve error handling
2008-04-15 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: improve error handling
svn path=/trunk/; revision=1236
Juerg Billeter [Mon, 14 Apr 2008 21:55:36 +0000 (21:55 +0000)]
set transfers_ownership of delegate return type
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: set transfers_ownership of delegate
return type
svn path=/trunk/; revision=1235
Juerg Billeter [Mon, 14 Apr 2008 21:13:57 +0000 (21:13 +0000)]
update for use with non-null types, patch by Andreas Brauchli
2008-04-14 Juerg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vapi: update for use with non-null types,
patch by Andreas Brauchli
svn path=/trunk/; revision=1234
Juerg Billeter [Mon, 14 Apr 2008 21:08:08 +0000 (21:08 +0000)]
update for use with non-null types, patch by Phil Housley
2008-04-14 Juerg Billeter <j@bitron.ch>
* vapi/sqlite3.vapi: update for use with non-null types,
patch by Phil Housley
svn path=/trunk/; revision=1233
Juerg Billeter [Mon, 14 Apr 2008 20:35:59 +0000 (20:35 +0000)]
update for use with non-null types, patch by Levi Bard, fixes bug 528097
2008-04-14 Juerg Billeter <j@bitron.ch>
* vapi/sdl-mixer.vapi, vapi/sdl-ttf.vapi, vapi/sdl.vapi: update for
use with non-null types, patch by Levi Bard, fixes bug 528097
svn path=/trunk/; revision=1232
Juerg Billeter [Mon, 14 Apr 2008 20:28:36 +0000 (20:28 +0000)]
mark pointers as nullable
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala, vala/valapointertype.vala,
vala/valasymbolresolver.vala: mark pointers as nullable
svn path=/trunk/; revision=1231
Juerg Billeter [Mon, 14 Apr 2008 20:04:19 +0000 (20:04 +0000)]
improve error handling, fixes bug 528073
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: improve error handling, fixes bug 528073
svn path=/trunk/; revision=1230
Juerg Billeter [Mon, 14 Apr 2008 19:54:28 +0000 (19:54 +0000)]
report warning when using null literal as argument for non-null parameter
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report warning when using null
literal as argument for non-null parameter
* vapi/glib-2.0.vapi: fix warnings
svn path=/trunk/; revision=1229
Juerg Billeter [Mon, 14 Apr 2008 19:07:37 +0000 (19:07 +0000)]
report warning when using null literal as return expression of method
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report warning when using null
literal as return expression of method returning non-null value
* */*.vala: fix warnings
svn path=/trunk/; revision=1228
Marc-Andre Lureau [Mon, 14 Apr 2008 18:48:33 +0000 (18:48 +0000)]
remove "!".
2008-04-14 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/dbus-glib-1.vapi, vapi/enchant.vapi, vapi/libxml-2.0.vapi,
vapi/sqlite3.vapi, vapi/taglib_c.vapi: remove "!".
svn path=/trunk/; revision=1227
Juerg Billeter [Mon, 14 Apr 2008 18:16:48 +0000 (18:16 +0000)]
report error when using null literal as default expression of non-null
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error when using null
literal as default expression of non-null parameter,
fixes bug 528021
* gee/readonlycollection.vala, gee/readonlylist.vala,
gee/readonlymap.vala, gee/readonlyset.vala, vala/valascope.vala,
ccode/valaccodeforstatement.vala, ccode/valaccodewhilestatement.vala,
vapigen/valavapicheck.vala, vapi/glib-2.0.vapi: fix revealed bugs
svn path=/trunk/; revision=1226
Juerg Billeter [Mon, 14 Apr 2008 18:00:04 +0000 (18:00 +0000)]
fix infinite loop on invalid syntax, fixes bug 528017
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: fix infinite loop on invalid syntax,
fixes bug 528017
svn path=/trunk/; revision=1225
Juerg Billeter [Mon, 14 Apr 2008 17:48:59 +0000 (17:48 +0000)]
report warning when using weak type modifier in cast expressions, fixes
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using weak type
modifier in cast expressions, fixes bug 527990
svn path=/trunk/; revision=1224
Juerg Billeter [Mon, 14 Apr 2008 17:04:37 +0000 (17:04 +0000)]
fix interface base access, fixes bug 527985
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix interface base access,
fixes bug 527985
svn path=/trunk/; revision=1223
Juerg Billeter [Mon, 14 Apr 2008 16:49:37 +0000 (16:49 +0000)]
prepare support for nullable and boxed value types
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterface.vala,
vala/valatypesymbol.vala, vala/valavaluetype.vala,
gobject/valaccodegenerator.vala: prepare support for nullable and
boxed value types
svn path=/trunk/; revision=1222
Juerg Billeter [Mon, 14 Apr 2008 15:54:19 +0000 (15:54 +0000)]
move experimental null reference checking to separate visitor
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valaarraytype.vala,
vala/valaclasstype.vala, vala/valacodenode.vala,
vala/valadatatype.vala, vala/valaerrortype.vala,
vala/valaintegertype.vala, vala/valainterfacetype.vala,
vala/valamethodtype.vala, vala/valanullchecker.vala,
vala/valanulltype.vala, vala/valaparser.vala,
vala/valapointertype.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, vala/valatypeparametertype.vala,
vala/valaunresolvedtype.vala, vala/valavaluetype.vala,
gobject/valaccodegenerator.vala, compiler/valacompiler.vala,
vapigen/valagidlparser.vala: move experimental null reference
checking to separate visitor
svn path=/trunk/; revision=1221
Marc-Andre Lureau [Mon, 14 Apr 2008 09:39:09 +0000 (09:39 +0000)]
renamed register_transform to register_transform_func.
2008-04-14 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/glib-2.0.vapi (Value): renamed register_transform to
register_transform_func.
svn path=/trunk/; revision=1220
Juerg Billeter [Mon, 14 Apr 2008 06:15:19 +0000 (06:15 +0000)]
don't require `new' operator for struct initialization, fixes bug 526547
2008-04-14 Juerg Billeter <j@bitron.ch>
* vala/valaobjectcreationexpression.vala, vala/valaparser.vala,
vala/valasemanticanalyzer.vala: don't require `new' operator for
struct initialization, fixes bug 526547
* tests/structs.vala: port to new syntax
svn path=/trunk/; revision=1219
Juerg Billeter [Sun, 13 Apr 2008 20:28:51 +0000 (20:28 +0000)]
remove warning about unsupported return types for runtime type checks, we
2008-04-13 Juerg Billeter <j@bitron.ch>
* gobject/valaccodegeneratormethod.vala: remove warning about
unsupported return types for runtime type checks, we intend to
use out parameters instead of return values for structs in
generated C code in future versions
svn path=/trunk/; revision=1218
Juerg Billeter [Sun, 13 Apr 2008 20:20:54 +0000 (20:20 +0000)]
fix method compatibility checks, based on patch by Andreas Brauchli, fixes
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valamethod.vala, vala/valasemanticanalyzer.vala:
fix method compatibility checks,
based on patch by Andreas Brauchli, fixes bug 527751
svn path=/trunk/; revision=1217
Juerg Billeter [Sun, 13 Apr 2008 19:46:45 +0000 (19:46 +0000)]
add GDatalist bindings, patch by Marc-Andre Lureau, fixes bug 527243
2008-04-13 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add GDatalist bindings,
patch by Marc-Andre Lureau, fixes bug 527243
* vapi/packages/gtk+-2.0/: fix GtkSettings binding
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1216
Juerg Billeter [Sun, 13 Apr 2008 19:37:49 +0000 (19:37 +0000)]
support generic structs
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: support generic structs
svn path=/trunk/; revision=1215
Juerg Billeter [Sun, 13 Apr 2008 19:25:13 +0000 (19:25 +0000)]
fix typo
2008-04-13 Juerg Billeter <j@bitron.ch>
* compiler/valacompiler.vala: fix typo
svn path=/trunk/; revision=1214
Juerg Billeter [Sun, 13 Apr 2008 19:05:00 +0000 (19:05 +0000)]
enable non-null types by default, replace --enable-non-null commandline
2008-04-13 Juerg Billeter <j@bitron.ch>
* compiler/valacompiler.vala: enable non-null types by default,
replace --enable-non-null commandline option by --disable-non-null
svn path=/trunk/; revision=1213
Juerg Billeter [Sun, 13 Apr 2008 19:01:07 +0000 (19:01 +0000)]
fix build when using non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* */*.vala: fix build when using non-null types
svn path=/trunk/; revision=1212
Juerg Billeter [Sun, 13 Apr 2008 18:48:00 +0000 (18:48 +0000)]
Add --enable-non-null-experimental commandline option
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valasemanticanalyzer.vala,
gobject/valaccodegenerator.vala, compiler/valacompiler.vala:
Add --enable-non-null-experimental commandline option
svn path=/trunk/; revision=1211
Juerg Billeter [Sun, 13 Apr 2008 18:24:20 +0000 (18:24 +0000)]
fix issues when using non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala:
fix issues when using non-null types
svn path=/trunk/; revision=1210
Juerg Billeter [Sun, 13 Apr 2008 16:17:00 +0000 (16:17 +0000)]
deprecate construct as parameter modifier, fixes bug 524138
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: deprecate construct as parameter modifier,
fixes bug 524138
* */*.vala: port to new syntax
svn path=/trunk/; revision=1209
Juerg Billeter [Sun, 13 Apr 2008 15:44:44 +0000 (15:44 +0000)]
report warning when using obsolete syntax for non-null types
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using obsolete syntax
for non-null types
* */*.vala, */*.vapi: port to new syntax
svn path=/trunk/; revision=1208
Juerg Billeter [Sun, 13 Apr 2008 15:06:51 +0000 (15:06 +0000)]
report warning when using deprecated syntax for property default values
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: report warning when using deprecated syntax
for property default values
* vala/valaconstructor.vala, vala/valaenum.vala: port to new syntax
svn path=/trunk/; revision=1207
Marc-Andre Lureau [Sun, 13 Apr 2008 14:07:04 +0000 (14:07 +0000)]
add init, register_transform, and boxed bindings, fixes bug 514349.
2008-04-13 Marc-Andre Lureau <marcandre.lureau@gmail.com>
* vapi/glib-2.0.vapi (Value): add init, register_transform, and
boxed bindings, fixes bug 514349.
svn path=/trunk/; revision=1206
Juerg Billeter [Sun, 13 Apr 2008 13:34:42 +0000 (13:34 +0000)]
never use ClassType for ErrorType instances
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaerrortype.vala, vala/valasemanticanalyzer.vala: never use
ClassType for ErrorType instances
* vapi/glib-2.0.vapi: use errordomains instead of enums with
[ErrorDomain] attribute
svn path=/trunk/; revision=1205
Juerg Billeter [Sun, 13 Apr 2008 12:38:46 +0000 (12:38 +0000)]
support takes_ownership metadata attribute for method parameters
2008-04-13 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support takes_ownership metadata
attribute for method parameters
* vapi/packages/gnome-keyring-1/: AttributeList fixes,
patch by Ross Burton, fixes bug 527522
* vapi/gnome-keyring-1.vapi: regenerated
svn path=/trunk/; revision=1204
Juerg Billeter [Sun, 13 Apr 2008 12:30:03 +0000 (12:30 +0000)]
don't use `weak' for value types used as type arguments
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valadatatype.vala: don't use `weak' for value types used as
type arguments
* vapigen/valagidlparser.vala: add metadata attribute to specify
type arguments
* vapi/packages/gnome-keyring-1/: fix
gnome_keyring_list_item_ids_sync binding, fixes bug 527230
* vapi/gnome-keyring-1.vapi: regenerated
svn path=/trunk/; revision=1203
Juerg Billeter [Sun, 13 Apr 2008 12:05:05 +0000 (12:05 +0000)]
set correct source_reference for property accessors
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: set correct source_reference for property
accessors
* vala/valasemanticanalyzer.vala: set source_reference for
generated code of automatic properties, fixes bug 527131
svn path=/trunk/; revision=1202
Juerg Billeter [Sun, 13 Apr 2008 11:55:27 +0000 (11:55 +0000)]
fix DBusGProxyCall binding, fixes bug 527127
2008-04-13 Juerg Billeter <j@bitron.ch>
* vapi/dbus-glib-1.vapi: fix DBusGProxyCall binding,
fixes bug 527127
svn path=/trunk/; revision=1201
Juerg Billeter [Sun, 13 Apr 2008 11:52:43 +0000 (11:52 +0000)]
implement get_type_id
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaerrortype.vala: implement get_type_id
* gobject/valaccodeassignmentbinding.vala: don't crash when using
unsupported parameter types in D-Bus signal handlers
Fixes bug 527027
svn path=/trunk/; revision=1200
Juerg Billeter [Sun, 13 Apr 2008 11:30:20 +0000 (11:30 +0000)]
supported declaration-only interfaces
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: supported declaration-only interfaces
svn path=/trunk/; revision=1199
Juerg Billeter [Sun, 13 Apr 2008 11:26:05 +0000 (11:26 +0000)]
make set_cname public
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valafield.vala: make set_cname public
* vapigen/valagidlparser.vala: set cname of fields if necessary,
fixes bug 526992
* vapi/gdk-2.0.vapi: regenerated
svn path=/trunk/; revision=1198
Juerg Billeter [Sun, 13 Apr 2008 11:19:25 +0000 (11:19 +0000)]
support type_name metadata attribute for method parameters
2008-04-13 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support type_name metadata attribute
for method parameters
* vapi/packages/gtk+-2.0/: fix gtk_action_group_add_radio_actions
binding, fixes bug 526871
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1197
Juerg Billeter [Sun, 13 Apr 2008 10:48:43 +0000 (10:48 +0000)]
allow object creation expressions in expression statements
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: allow object creation expressions in
expression statements
svn path=/trunk/; revision=1196
Juerg Billeter [Sun, 13 Apr 2008 09:59:29 +0000 (09:59 +0000)]
handle access modifier for signals
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/valaparser.vala: handle access modifier for signals
svn path=/trunk/; revision=1195
Juerg Billeter [Sun, 13 Apr 2008 09:25:25 +0000 (09:25 +0000)]
Replace generated Vala scanner and parser by handwritten classes
2008-04-13 Juerg Billeter <j@bitron.ch>
* vala/Makefile.am, vala/valaassignment.vala,
vala/valabinaryexpression.vala, vala/valaclass.vala,
vala/valanamespace.vala, vala/valaparser.vala,
vala/valascanner.vala, vala/valascope.vala,
vala/valasourcefile.vala, vala/valasourcelocation.vala,
vala/valatokentype.vala, vala/valatuple.vala,
vala/valaunaryexpression.vala, vala/valaunresolvedtype.vala:
Replace generated Vala scanner and parser by handwritten classes
svn path=/trunk/; revision=1194
Juerg Billeter [Sun, 13 Apr 2008 09:14:39 +0000 (09:14 +0000)]
add GEnumClass and GEnumValue bindings
2008-04-13 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: add GEnumClass and GEnumValue bindings
svn path=/trunk/; revision=1193
Juerg Billeter [Sun, 13 Apr 2008 09:07:46 +0000 (09:07 +0000)]
Bump version to 0.3.1
2008-04-13 Juerg Billeter <j@bitron.ch>
* configure.ac: Bump version to 0.3.1
svn path=/trunk/; revision=1192
Juerg Billeter [Sat, 12 Apr 2008 20:41:17 +0000 (20:41 +0000)]
various improvements, patch by Evan Nemerson
2008-04-12 Juerg Billeter <j@bitron.ch>
* vapi/sqlite3.vapi: various improvements, patch by Evan Nemerson
svn path=/trunk/; revision=1190
Juerg Billeter [Sat, 12 Apr 2008 20:34:27 +0000 (20:34 +0000)]
fix sscanf and add g_hash_table_remove_all bindings, patch by Evan
2008-04-12 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vapi: fix sscanf and add g_hash_table_remove_all
bindings, patch by Evan Nemerson
svn path=/trunk/; revision=1189
Juerg Billeter [Mon, 7 Apr 2008 21:44:56 +0000 (21:44 +0000)]
Post-release version bump
2008-04-07 Juerg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
svn path=/trunk/; revision=1188
Juerg Billeter [Mon, 7 Apr 2008 21:43:11 +0000 (21:43 +0000)]
update for 0.2.0 release
2008-04-07 Juerg Billeter <j@bitron.ch>
* NEWS, configure.ac: update for 0.2.0 release
svn path=/trunk/; revision=1186
Juerg Billeter [Mon, 7 Apr 2008 21:16:25 +0000 (21:16 +0000)]
fix access to code and message fields in error types, fixes bug 519648
2008-04-07 Juerg Billeter <j@bitron.ch>
* vala/valaerrortype.vala, vala/valasemanticanalyzer.vala,
vala/valasymbolresolver.vala, gobject/valaccodegenerator.vala:
fix access to code and message fields in error types,
fixes bug 519648
svn path=/trunk/; revision=1185
Juerg Billeter [Mon, 7 Apr 2008 21:00:08 +0000 (21:00 +0000)]
fix gtk_tree_path_copy and gtk_tree_selection_get_selected_rows bindings
2008-04-07 Juerg Billeter <j@bitron.ch>
* vapi/packages/gtk+-2.0/: fix gtk_tree_path_copy and
gtk_tree_selection_get_selected_rows bindings
* vapi/gtk+-2.0.vapi: regenerated
svn path=/trunk/; revision=1184
Juerg Billeter [Mon, 7 Apr 2008 20:54:20 +0000 (20:54 +0000)]
change syntax for defining default values of properties, fixes bug 526550
2008-04-07 Juerg Billeter <j@bitron.ch>
* vala/parser.y: change syntax for defining default values of
properties, fixes bug 526550
* tests/classes-properties.vala: test default values for properties
svn path=/trunk/; revision=1183
Juerg Billeter [Mon, 7 Apr 2008 20:29:36 +0000 (20:29 +0000)]
improve error reporting for non reference-counted object instances, fixes
2008-04-07 Juerg Billeter <j@bitron.ch>
* vala/valacodenode.vala, gobject/valaccodegenerator.vala: improve
error reporting for non reference-counted object instances,
fixes bug 471053
svn path=/trunk/; revision=1182