platform/upstream/vala.git
16 years agofix method compatibility checks, based on patch by Andreas Brauchli, fixes
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

16 years agoadd GDatalist bindings, patch by Marc-Andre Lureau, fixes bug 527243
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

16 years agosupport generic structs
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

16 years agofix typo
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

16 years agoenable non-null types by default, replace --enable-non-null commandline
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

16 years agofix build when using non-null types
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

16 years agoAdd --enable-non-null-experimental commandline option
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

16 years agofix issues when using non-null types
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

16 years agodeprecate construct as parameter modifier, fixes bug 524138
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

16 years agoreport warning when using obsolete syntax for non-null types
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

16 years agoreport warning when using deprecated syntax for property default values
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

16 years agoadd init, register_transform, and boxed bindings, fixes bug 514349.
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

16 years agonever use ClassType for ErrorType instances
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

16 years agosupport takes_ownership metadata attribute for method parameters
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

16 years agodon't use `weak' for value types used as type arguments
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

16 years agoset correct source_reference for property accessors
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

16 years agofix DBusGProxyCall binding, fixes bug 527127
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

16 years agoimplement get_type_id
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

16 years agosupported declaration-only interfaces
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

16 years agomake set_cname public
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

16 years agosupport type_name metadata attribute for method parameters
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

16 years agoallow object creation expressions in expression statements
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

16 years agohandle access modifier for signals
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

16 years agoReplace generated Vala scanner and parser by handwritten classes
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

16 years agoadd GEnumClass and GEnumValue bindings
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

16 years agoBump version to 0.3.1
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

16 years agovarious improvements, patch by Evan Nemerson
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

16 years agofix sscanf and add g_hash_table_remove_all bindings, patch by Evan
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

16 years agoPost-release version bump
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

16 years agoupdate for 0.2.0 release VALA_0_2_0
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

16 years agofix access to code and message fields in error types, fixes bug 519648
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

16 years agofix gtk_tree_path_copy and gtk_tree_selection_get_selected_rows bindings
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

16 years agochange syntax for defining default values of properties, fixes bug 526550
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

16 years agoimprove error reporting for non reference-counted object instances, fixes
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

16 years agofix GtkToggleActionEntry.callback binding, fixes bug 526792
Juerg Billeter [Mon, 7 Apr 2008 20:12:10 +0000 (20:12 +0000)]
fix GtkToggleActionEntry.callback binding, fixes bug 526792

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: fix GtkToggleActionEntry.callback
  binding, fixes bug 526792

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1181

16 years agoadd missing g_get_user_*_dir bindings, based on patch by Marc-Andre
Juerg Billeter [Mon, 7 Apr 2008 20:06:14 +0000 (20:06 +0000)]
add missing g_get_user_*_dir bindings, based on patch by Marc-Andre

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: add missing g_get_user_*_dir bindings,
  based on patch by Marc-Andre Lureau, fixes bug 517748

svn path=/trunk/; revision=1180

16 years agofix memory management when mixing pointers and strong references, fixes
Juerg Billeter [Mon, 7 Apr 2008 19:50:22 +0000 (19:50 +0000)]
fix memory management when mixing pointers and strong references, fixes

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valamemorymanager.vala, vala/valasemanticanalyzer.vala,
  gobject/valaccodegenerator.vala: fix memory management when
  mixing pointers and strong references, fixes bug 522110

svn path=/trunk/; revision=1179

16 years agoreset takes_ownership and transfers_ownership for base types of pointer
Juerg Billeter [Mon, 7 Apr 2008 18:19:21 +0000 (18:19 +0000)]
reset takes_ownership and transfers_ownership for base types of pointer

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valasymbolresolver.vala: reset takes_ownership and
  transfers_ownership for base types of pointer types

* tests/pointers.vala: test element access for methods returning
  pointers

svn path=/trunk/; revision=1178

16 years agodon't compare base_method and base_interface_method in visit_class as this
Juerg Billeter [Mon, 7 Apr 2008 16:28:32 +0000 (16:28 +0000)]
don't compare base_method and base_interface_method in visit_class as this

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: don't compare base_method and
  base_interface_method in visit_class as this might not be set yet
  in other classes; available methods will already be checked in
  detail in visit_method, fixes bug 523263

svn path=/trunk/; revision=1177

16 years agotype check initializer lists
Juerg Billeter [Mon, 7 Apr 2008 16:16:46 +0000 (16:16 +0000)]
type check initializer lists

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: type check initializer lists

* gobject/valaccodegenerator.vala: fix support for static delegates
  for instance methods

* vapigen/valagidlparser.vala: support type_name metadata attribute
  for fields

* tests/test-031.vala: use float literals in initializer list for
  constant float array

* vapi/packages/gtk+-2.0/: fix GtkActionEntry.callback binding

* vapi/gtk+-2.0.vapi: regenerated

Fixes bug 526652

svn path=/trunk/; revision=1176

16 years agofix gst_init_get_option_group binding, fixes bug 526651
Juerg Billeter [Mon, 7 Apr 2008 14:32:22 +0000 (14:32 +0000)]
fix gst_init_get_option_group binding, fixes bug 526651

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/: fix gst_init_get_option_group
  binding, fixes bug 526651

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1175

16 years agofix gtk_action_group_add_*_actions bindings, patch by Jaap A. Haitsma,
Juerg Billeter [Mon, 7 Apr 2008 14:29:18 +0000 (14:29 +0000)]
fix gtk_action_group_add_*_actions bindings, patch by Jaap A. Haitsma,

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: fix gtk_action_group_add_*_actions
  bindings, patch by Jaap A. Haitsma, fixes bug 526648

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1174

16 years agotwo small optimizations, patch by Jaap A. Haitsma, fixes bug 526243
Juerg Billeter [Mon, 7 Apr 2008 14:26:05 +0000 (14:26 +0000)]
two small optimizations, patch by Jaap A. Haitsma, fixes bug 526243

2008-04-07  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodeblock.vala, ccode/valaccodeincludedirective.vala:
  two small optimizations, patch by Jaap A. Haitsma, fixes bug 526243

svn path=/trunk/; revision=1173

16 years agofix spurious error when overriding abstract method in derived abstract
Juerg Billeter [Mon, 7 Apr 2008 14:21:50 +0000 (14:21 +0000)]
fix spurious error when overriding abstract method in derived abstract

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix spurious error when
  overriding abstract method in derived abstract class,
  fixes bug 523263

* tests/classes-methods.vala: test overriding abstract method in
  derived abstract class

svn path=/trunk/; revision=1172

16 years agocheck accessiblity of property types, fixes bug 512404
Juerg Billeter [Mon, 7 Apr 2008 14:08:31 +0000 (14:08 +0000)]
check accessiblity of property types, fixes bug 512404

2008-04-07  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: check accessiblity of property
  types, fixes bug 512404

svn path=/trunk/; revision=1171

16 years agofix element access assignment with pointers, fixes bug 519933
Juerg Billeter [Mon, 7 Apr 2008 14:01:17 +0000 (14:01 +0000)]
fix element access assignment with pointers, fixes bug 519933

2008-04-07  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodeassignmentbinding.vala: fix element access
  assignment with pointers, fixes bug 519933

* tests/pointers.vala: test pointer element access

svn path=/trunk/; revision=1170

16 years agofix gtk_tree_sortable_get_sort_column_id binding, fixes bug 526410
Juerg Billeter [Sun, 6 Apr 2008 19:47:47 +0000 (19:47 +0000)]
fix gtk_tree_sortable_get_sort_column_id binding, fixes bug 526410

2008-04-06  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: fix gtk_tree_sortable_get_sort_column_id
  binding, fixes bug 526410

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1169

16 years agofix crash when using pointers in parameters of D-Bus signals, fixes bug
Juerg Billeter [Sun, 6 Apr 2008 19:43:53 +0000 (19:43 +0000)]
fix crash when using pointers in parameters of D-Bus signals, fixes bug

2008-04-06  Juerg Billeter  <j@bitron.ch>

* vala/valapointertype.vala,
  gobject/valaccodeassignmentbinding.vala: fix crash when using
  pointers in parameters of D-Bus signals, fixes bug 526111

svn path=/trunk/; revision=1168

16 years agofix crash when using string arrays in parameters of D-Bus methods, fixes
Juerg Billeter [Sun, 6 Apr 2008 19:24:58 +0000 (19:24 +0000)]
fix crash when using string arrays in parameters of D-Bus methods, fixes

2008-04-06  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorinvocationexpression.vala: fix crash
  when using string arrays in parameters of D-Bus methods,
  fixes bug 525166

svn path=/trunk/; revision=1167

16 years agoAdd source_type_declaration and source_type_definition code fragments to
Juerg Billeter [Sun, 6 Apr 2008 18:33:46 +0000 (18:33 +0000)]
Add source_type_declaration and source_type_definition code fragments to

2008-04-06  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorclass.vala,
  gobject/valaccodegeneratorinterface.vala,
  gobject/valaccodegeneratorsourcefile.vala,
  gobject/valaccodegeneratorstruct.vala:

  Add source_type_declaration and source_type_definition code
  fragments to fix declaration order in generated C source files

svn path=/trunk/; revision=1166

16 years agoMerge Literal and LiteralExpression
Juerg Billeter [Mon, 31 Mar 2008 19:18:24 +0000 (19:18 +0000)]
Merge Literal and LiteralExpression

2008-03-31  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am, vala/parser.y, vala/vala.h,
  vala/valaattribute.vala, vala/valabooleanliteral.vala,
  vala/valacharacterliteral.vala, vala/valacodecontext.vala,
  vala/valacodegenerator.vala, vala/valacodevisitor.vala,
  vala/valaintegerliteral.vala, vala/valaliteral.vala,
  vala/valanullliteral.vala, vala/valarealliteral.vala,
  vala/valasemanticanalyzer.vala, vala/valastringliteral.vala,
  gobject/valaccodeelementaccessbinding.vala,
  gobject/valaccodegenerator.vala:

  Merge Literal and LiteralExpression

svn path=/trunk/; revision=1165

16 years agofix output of enums with methods
Juerg Billeter [Mon, 31 Mar 2008 18:54:00 +0000 (18:54 +0000)]
fix output of enums with methods

2008-03-31  Juerg Billeter  <j@bitron.ch>

* vala/valainterfacewriter.vala: fix output of enums with methods

svn path=/trunk/; revision=1164

16 years agoenhance support for pointer arithmetic
Juerg Billeter [Sun, 30 Mar 2008 19:09:57 +0000 (19:09 +0000)]
enhance support for pointer arithmetic

2008-03-30  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: enhance support for pointer
  arithmetic

svn path=/trunk/; revision=1163

16 years agoadd support for static constructors, fixes bug 506985
Juerg Billeter [Sat, 29 Mar 2008 12:04:37 +0000 (12:04 +0000)]
add support for static constructors, fixes bug 506985

2008-03-29  Juerg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valaclass.vala, vala/valaconstructor.vala,
  gobject/valaccodegenerator.vala: add support for static
  constructors, fixes bug 506985

svn path=/trunk/; revision=1162

16 years agoadd GDK_SELECTION_* bindings fix gtk_text_buffer_paste_clipboard binding
Juerg Billeter [Mon, 24 Mar 2008 20:54:23 +0000 (20:54 +0000)]
add GDK_SELECTION_* bindings fix gtk_text_buffer_paste_clipboard binding

2008-03-24  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-2.0/: add GDK_SELECTION_* bindings
* vapi/packages/gtk+-2.0/: fix gtk_text_buffer_paste_clipboard
  binding

* vapi/gdk-2.0.vapi, vapi/gtk+-2.0.vapi: regenerated

Fixes bug 524176

svn path=/trunk/; revision=1161

16 years agofix crash on invalid collection expressions in foreach statements, fixes
Juerg Billeter [Mon, 24 Mar 2008 20:37:30 +0000 (20:37 +0000)]
fix crash on invalid collection expressions in foreach statements, fixes

2008-03-24  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: fix crash on invalid collection
  expressions in foreach statements, fixes bug 524033

svn path=/trunk/; revision=1160

16 years agoadd missing public modifier, patch by Levi Bard, fixes bug 524192
Juerg Billeter [Mon, 24 Mar 2008 20:27:54 +0000 (20:27 +0000)]
add missing public modifier, patch by Levi Bard, fixes bug 524192

2008-03-24  Juerg Billeter  <j@bitron.ch>

* vapi/sdl.vapi: add missing public modifier,
  patch by Levi Bard, fixes bug 524192

svn path=/trunk/; revision=1159

16 years agofix generated code for methods returning structs
Juerg Billeter [Mon, 24 Mar 2008 20:14:14 +0000 (20:14 +0000)]
fix generated code for methods returning structs

2008-03-24  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratormethod.vala: fix generated code for
  methods returning structs

svn path=/trunk/; revision=1158

16 years agoinherit default value from base type
Juerg Billeter [Sun, 23 Mar 2008 19:34:45 +0000 (19:34 +0000)]
inherit default value from base type

2008-03-23  Juerg Billeter  <j@bitron.ch>

* vala/valastruct.vala: inherit default value from base type

svn path=/trunk/; revision=1157

16 years agoadd -v commandline option to improve error reporting, patch by Daniel
Juerg Billeter [Sun, 23 Mar 2008 11:27:55 +0000 (11:27 +0000)]
add -v commandline option to improve error reporting, patch by Daniel

2008-03-23  Juerg Billeter  <j@bitron.ch>

* vala/valareport.vala, vala/valasourcefile.vala,
  compiler/valacompiler.vala: add -v commandline option to improve
  error reporting, patch by Daniel Silverstone, fixes bug 522511

svn path=/trunk/; revision=1156

16 years agoadd metadata to fix some memory leaks and out parameters, fixes bug 523889
Juerg Billeter [Sun, 23 Mar 2008 10:26:29 +0000 (10:26 +0000)]
add metadata to fix some memory leaks and out parameters, fixes bug 523889

2008-03-23  Juerg Billeter  <j@bitron.ch>

* vapi/packages/json-glib-1.0/: add metadata to fix some memory
  leaks and out parameters, fixes bug 523889

* vapi/json-glib-1.0.vapi: regenerated

svn path=/trunk/; revision=1155

16 years agofix vapigen crash
Juerg Billeter [Sun, 23 Mar 2008 10:22:35 +0000 (10:22 +0000)]
fix vapigen crash

2008-03-23  Juerg Billeter  <j@bitron.ch>

* vala/valanamespace.vala: fix vapigen crash

svn path=/trunk/; revision=1154

16 years agoenhance GIOChannel binding, based on patch by Nicolas Joseph, fixes bug
Juerg Billeter [Sun, 23 Mar 2008 09:07:10 +0000 (09:07 +0000)]
enhance GIOChannel binding, based on patch by Nicolas Joseph, fixes bug

2008-03-23  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: enhance GIOChannel binding,
  based on patch by Nicolas Joseph, fixes bug 523876

svn path=/trunk/; revision=1153

16 years agofix C declaration for delegates, fixes bug 523734
Juerg Billeter [Sat, 22 Mar 2008 22:22:17 +0000 (22:22 +0000)]
fix C declaration for delegates, fixes bug 523734

2008-03-22  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: fix C declaration for delegates,
  fixes bug 523734

svn path=/trunk/; revision=1152

16 years agosupport nested namespaces, fixes bug 516584
Juerg Billeter [Sat, 22 Mar 2008 22:19:49 +0000 (22:19 +0000)]
support nested namespaces, fixes bug 516584

2008-03-22  Juerg Billeter  <j@bitron.ch>

* vala/parser.y, vala/valanamespace.vala: support nested namespaces,
  fixes bug 516584

svn path=/trunk/; revision=1151

16 years agouse extern appropriately for static fields, based on patch by Daniel
Juerg Billeter [Sat, 22 Mar 2008 22:03:19 +0000 (22:03 +0000)]
use extern appropriately for static fields, based on patch by Daniel

2008-03-22  Juerg Billeter  <j@bitron.ch>

* ccode/valaccodedeclaration.vala, gobject/valaccodegenerator.vala:
  use extern appropriately for static fields,
  based on patch by Daniel Silverstone, fixes bug 523768

svn path=/trunk/; revision=1150

16 years agofix source reference of fields, patch by Daniel Silverstone, fixes bug
Juerg Billeter [Sat, 22 Mar 2008 21:06:45 +0000 (21:06 +0000)]
fix source reference of fields, patch by Daniel Silverstone, fixes bug

2008-03-22  Juerg Billeter  <j@bitron.ch>

* vala/parser.y: fix source reference of fields,
  patch by Daniel Silverstone, fixes bug 523761

svn path=/trunk/; revision=1149

16 years agocheck accessiblity of parameter and return types, fixes bug 433290
Juerg Billeter [Sat, 22 Mar 2008 20:17:22 +0000 (20:17 +0000)]
check accessiblity of parameter and return types, fixes bug 433290

2008-03-22  Juerg Billeter  <j@bitron.ch>

* vala/valascope.vala, vala/valasemanticanalyzer.vala,
  vala/valasymbol.vala: check accessiblity of parameter and return
  types, fixes bug 433290

svn path=/trunk/; revision=1148

16 years agoadd SDL bindings, patch by Levi Bard, fixes bug 522940
Juerg Billeter [Fri, 21 Mar 2008 19:15:02 +0000 (19:15 +0000)]
add SDL bindings, patch by Levi Bard, fixes bug 522940

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/sdl-gfx.vapi, vapi/sdl-image.vapi,
  vapi/sdl-mixer.vapi, vapi/sdl-ttf.vapi, vapi/sdl.vapi: add SDL
  bindings, patch by Levi Bard, fixes bug 522940

svn path=/trunk/; revision=1147

16 years agoreport error when trying to declare private construct properties, patch by
Juerg Billeter [Fri, 21 Mar 2008 19:07:42 +0000 (19:07 +0000)]
report error when trying to declare private construct properties, patch by

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: report error when trying to
  declare private construct properties,
  patch by Daniel Silverstone, fixes bug 522685

svn path=/trunk/; revision=1146

16 years agoregister enums with GType, patch by Marc-Andre Lureau, fixes bug 517294
Juerg Billeter [Fri, 21 Mar 2008 16:37:04 +0000 (16:37 +0000)]
register enums with GType, patch by Marc-Andre Lureau, fixes bug 517294

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vala/valaenum.vala, vala/valaenumvalue.vala,
  vala/valainterfacewriter.vala, gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorinterface.vala,
  vapigen/valagidlparser.vala: register enums with GType,
  patch by Marc-Andre Lureau, fixes bug 517294

svn path=/trunk/; revision=1145

16 years agofix g_file_copy, g_file_copy_async, and g_file_move bindings, fixes bug
Juerg Billeter [Fri, 21 Mar 2008 10:25:06 +0000 (10:25 +0000)]
fix g_file_copy, g_file_copy_async, and g_file_move bindings, fixes bug

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gio-2.0/: fix g_file_copy, g_file_copy_async, and
  g_file_move bindings, fixes bug 523544

* vapi/gio-2.0.vapi: regenerated

svn path=/trunk/; revision=1144

16 years agofix g_shell_parse_argv binding, fixes bug 523277
Juerg Billeter [Fri, 21 Mar 2008 10:15:14 +0000 (10:15 +0000)]
fix g_shell_parse_argv binding, fixes bug 523277

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix g_shell_parse_argv binding,
  fixes bug 523277

svn path=/trunk/; revision=1143

16 years agofix g_mutex_trylock binding, fixes bug 523086
Juerg Billeter [Fri, 21 Mar 2008 09:59:01 +0000 (09:59 +0000)]
fix g_mutex_trylock binding, fixes bug 523086

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix g_mutex_trylock binding, fixes bug 523086

svn path=/trunk/; revision=1142

16 years agoadd GNOME Keyring bindings, patch by Andrea Del Signore, fixes bug 522646
Juerg Billeter [Fri, 21 Mar 2008 09:56:01 +0000 (09:56 +0000)]
add GNOME Keyring bindings, patch by Andrea Del Signore, fixes bug 522646

2008-03-21  Juerg Billeter  <j@bitron.ch>

* vapi/Makefile.am, vapi/gnome-keyring-1.vapi,
  vapi/packages/gnome-keyring-1/: add GNOME Keyring bindings,
  patch by Andrea Del Signore, fixes bug 522646

svn path=/trunk/; revision=1141

16 years agosupport lower_case_csuffix attribute for interfaces
Juerg Billeter [Thu, 20 Mar 2008 23:45:20 +0000 (23:45 +0000)]
support lower_case_csuffix attribute for interfaces

2008-03-20  Juerg Billeter  <j@bitron.ch>

* vala/valainterface.vala, vala/valainterfacewriter.vala,
  vapigen/valagidlparser.vala: support lower_case_csuffix attribute
  for interfaces

* vapi/packages/gstreamer-interfaces-0.10/: fix GstXOverlay binding

* vapi/gstreamer-interfaces-0.10.vapi: regenerated

Patch by Andrea Del Signore, fixes bug 512744

svn path=/trunk/; revision=1140

16 years agofix GTimeoutSource and GIdleSource bindings, patch by Phil Housley
Juerg Billeter [Wed, 19 Mar 2008 22:58:45 +0000 (22:58 +0000)]
fix GTimeoutSource and GIdleSource bindings, patch by Phil Housley

2008-03-19  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix GTimeoutSource and GIdleSource bindings,
  patch by Phil Housley

svn path=/trunk/; revision=1139

16 years agofix crash when using lock statements
Juerg Billeter [Wed, 19 Mar 2008 20:54:01 +0000 (20:54 +0000)]
fix crash when using lock statements

2008-03-19  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala: fix crash when using lock
  statements

svn path=/trunk/; revision=1138

16 years agosupport taking address of pointer
Juerg Billeter [Tue, 18 Mar 2008 22:19:30 +0000 (22:19 +0000)]
support taking address of pointer

2008-03-18  Juerg Billeter  <j@bitron.ch>

* vala/valasemanticanalyzer.vala: support taking address of pointer

svn path=/trunk/; revision=1137

16 years agofix gtk_calendar_get_date binding
Juerg Billeter [Mon, 17 Mar 2008 20:07:05 +0000 (20:07 +0000)]
fix gtk_calendar_get_date binding

2008-03-17  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: fix gtk_calendar_get_date binding

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1136

16 years agofix GChildWatch bindings
Juerg Billeter [Mon, 17 Mar 2008 20:04:44 +0000 (20:04 +0000)]
fix GChildWatch bindings

2008-03-17  Juerg Billeter  <j@bitron.ch>

* vapi/glib-2.0.vapi: fix GChildWatch bindings

svn path=/trunk/; revision=1135

16 years agodetect GStrv type
Juerg Billeter [Mon, 17 Mar 2008 19:06:43 +0000 (19:06 +0000)]
detect GStrv type

2008-03-17  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: detect GStrv type

* vapi/packages/gio-2.0/: update to glib 2.16.1

* vapi/gio-2.0.vapi: regenerated

svn path=/trunk/; revision=1134

16 years agosupport modifying return type with metadata attributes
Juerg Billeter [Sun, 16 Mar 2008 22:35:32 +0000 (22:35 +0000)]
support modifying return type with metadata attributes

2008-03-16  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support modifying return type with
  metadata attributes

* vapi/packages/gtk+-2.0/: fix gtk_about_dialog_set_*_hook bindings,
  fixes bug 522061

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1133

16 years agofix variable initialization for array types
Juerg Billeter [Sun, 16 Mar 2008 22:14:20 +0000 (22:14 +0000)]
fix variable initialization for array types

2008-03-16  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratormethod.vala: fix variable
  initialization for array types

svn path=/trunk/; revision=1132

16 years agosupport hidden="0" for parameters
Juerg Billeter [Sun, 16 Mar 2008 21:58:47 +0000 (21:58 +0000)]
support hidden="0" for parameters

2008-03-16  Juerg Billeter  <j@bitron.ch>

* vapigen/valagidlparser.vala: support hidden="0" for parameters

* vapi/packages/gtk+-2.0/: fix gtk_action_group_add_actions
  bindings, fixes bug 522060

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1131

16 years agoemit constants after function declarations as constants may depend on
Juerg Billeter [Sun, 16 Mar 2008 21:27:24 +0000 (21:27 +0000)]
emit constants after function declarations as constants may depend on

2008-03-16  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorsourcefile.vala: emit constants after
  function declarations as constants may depend on function
  declarations, fixes bug 501584

* tests/delegates.vala: test constants depending on function
  declarations

svn path=/trunk/; revision=1130

16 years agofix support for array return types for D-Bus method calls
Juerg Billeter [Sat, 15 Mar 2008 21:54:22 +0000 (21:54 +0000)]
fix support for array return types for D-Bus method calls

2008-03-15  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorinvocationexpression.vala: fix support
  for array return types for D-Bus method calls

svn path=/trunk/; revision=1129

16 years agofix crash when using arrays for D-Bus method calls
Juerg Billeter [Sat, 15 Mar 2008 20:16:39 +0000 (20:16 +0000)]
fix crash when using arrays for D-Bus method calls

2008-03-15  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegeneratorinvocationexpression.vala: fix crash
  when using arrays for D-Bus method calls

svn path=/trunk/; revision=1128

16 years agofix runtime crash when using nullable struct parameters, patch by Alberto
Juerg Billeter [Sat, 15 Mar 2008 02:48:42 +0000 (02:48 +0000)]
fix runtime crash when using nullable struct parameters, patch by Alberto

2008-03-15  Juerg Billeter  <j@bitron.ch>

* gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratormemberaccess.vala,
  gobject/valaccodegeneratormethod.vala: fix runtime crash when
  using nullable struct parameters,
  patch by Alberto Ruiz, fixes bug 514864

svn path=/trunk/; revision=1127

16 years agofix gdk/gtk_init bindings, fixes bug 521842
Juerg Billeter [Fri, 14 Mar 2008 15:36:05 +0000 (15:36 +0000)]
fix gdk/gtk_init bindings, fixes bug 521842

2008-03-14  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-2.0/, vapi/packages/gtk+-2.0/: fix gdk/gtk_init
  bindings, fixes bug 521842

* vapi/gdk-2.0.vapi, vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1126

16 years agofix gdk_pixbuf_loader_write binding
Juerg Billeter [Fri, 14 Mar 2008 02:23:19 +0000 (02:23 +0000)]
fix gdk_pixbuf_loader_write binding

2008-03-14  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gdk-pixbuf-2.0/: fix gdk_pixbuf_loader_write binding

* vapi/gdk-pixbuf-2.0.vapi: regenerated

svn path=/trunk/; revision=1125

16 years agoremove Array class, arrays are not type symbols
Juerg Billeter [Fri, 14 Mar 2008 02:11:02 +0000 (02:11 +0000)]
remove Array class, arrays are not type symbols

2008-03-14  Juerg Billeter  <j@bitron.ch>

* vala/Makefile.am, vala/valaarraytype.vala, vala/valadatatype.vala,
  vala/valamember.vala, vala/valasemanticanalyzer.vala,
  vala/valasymbolresolver.vala, vala/valatypeparameter.vala,
  vala/valatypesymbol.vala, gobject/valaccodegenerator.vala,
  gobject/valaccodegeneratorinvocationexpression.vala,
  gobject/valaccodegeneratormethod.vala: remove Array class, arrays
  are not type symbols

svn path=/trunk/; revision=1124

16 years agofix gtk_get_option_group binding
Juerg Billeter [Wed, 12 Mar 2008 15:33:14 +0000 (15:33 +0000)]
fix gtk_get_option_group binding

2008-03-12  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gtk+-2.0/: fix gtk_get_option_group binding

* vapi/gtk+-2.0.vapi: regenerated

svn path=/trunk/; revision=1123

16 years agoadd GIdlWriter to generate .gidl files when building libraries
Juerg Billeter [Tue, 11 Mar 2008 13:25:53 +0000 (13:25 +0000)]
add GIdlWriter to generate .gidl files when building libraries

2008-03-11  Juerg Billeter  <j@bitron.ch>

* gobject/Makefile.am, gobject/valagidlwriter.vala,
  compiler/valacompiler.vala: add GIdlWriter to generate .gidl files
  when building libraries

svn path=/trunk/; revision=1122

16 years agoadd missing file
Juerg Billeter [Mon, 10 Mar 2008 23:50:48 +0000 (23:50 +0000)]
add missing file

2008-03-11  Juerg Billeter  <j@bitron.ch>

* gobject-introspection/grealpath.h: add missing file

svn path=/trunk/; revision=1121

16 years agoupdate from gobject-introspection SVN r128
Juerg Billeter [Mon, 10 Mar 2008 16:18:52 +0000 (16:18 +0000)]
update from gobject-introspection SVN r128

2008-03-10  Juerg Billeter  <j@bitron.ch>

* gobject-introspection/: update from gobject-introspection SVN r128

svn path=/trunk/; revision=1120

16 years agoMake the length field of a multi-dimensional array an array of ints,
Juerg Billeter [Mon, 10 Mar 2008 15:16:06 +0000 (15:16 +0000)]
Make the length field of a multi-dimensional array an array of ints,

2008-03-10  Juerg Billeter  <j@bitron.ch>

* vala/valaarray.vala, gobject/valaccodeelementaccessbinding.vala:
  Make the length field of a multi-dimensional array an array of ints,
  currently only works with literal indices, patch by Rob Taylor

* tests/arrays.vala: test length field of multi-dimensional arrays

svn path=/trunk/; revision=1119

16 years agoupdate to r30885
Juerg Billeter [Sun, 9 Mar 2008 18:04:18 +0000 (18:04 +0000)]
update to r30885

2008-03-09  Juerg Billeter  <j@bitron.ch>

* vapi/packages/webkit-1.0/: update to r30885

* vapi/webkit-1.0.vapi: regenerated

svn path=/trunk/; revision=1118

16 years agominor code cleanup, based on patch by Andreas Brauchli
Juerg Billeter [Sat, 8 Mar 2008 22:16:26 +0000 (22:16 +0000)]
minor code cleanup, based on patch by Andreas Brauchli

2008-03-08  Juerg Billeter  <j@bitron.ch>

* vala/valaarray.vala: minor code cleanup,
  based on patch by Andreas Brauchli

svn path=/trunk/; revision=1117

16 years agoadd GstGhostPad binding
Juerg Billeter [Sat, 8 Mar 2008 20:54:00 +0000 (20:54 +0000)]
add GstGhostPad binding

2008-03-08  Juerg Billeter  <j@bitron.ch>

* vapi/packages/gstreamer-0.10/: add GstGhostPad binding

* vapi/gstreamer-0.10.vapi: regenerated

svn path=/trunk/; revision=1116