Juerg Billeter [Sat, 1 Sep 2007 19:07:10 +0000 (19:07 +0000)]
fix implicit casts to support non-GObject classes, enable run-time checks
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valalockable.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorassignment.vala,
gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratorinvocationexpression.vala,
gobject/valacodegeneratormemberaccess.vala,
gobject/valacodegeneratormethod.vala, compiler/valacompiler.vala:
fix implicit casts to support non-GObject classes, enable run-time
checks by default, fixes bug 472446
svn path=/trunk/; revision=567
Mathias Hasselmann [Sat, 1 Sep 2007 13:49:06 +0000 (13:49 +0000)]
mark pango_glyph_item_letter_space.log_attrs and
2007-09-01 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/pango/pango.metadata: mark
pango_glyph_item_letter_space.log_attrs and
pango_get_log_attrs.log_attrs as arrays
* vapi/pango.vala: regenerated
svn path=/trunk/; revision=566
Mathias Hasselmann [Sat, 1 Sep 2007 13:23:05 +0000 (13:23 +0000)]
gtk_init_with_args.entries as array mark PangoLogAttr as value type
2007-09-01 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata:
gtk_init_with_args.entries as array
* vapi/packages/pango/pango.metadata:
mark PangoLogAttr as value type
* vapi/gtk+-2.0.vala, vapi/pango.vala:
regenerated
svn path=/trunk/; revision=565
Juerg Billeter [Sat, 1 Sep 2007 13:12:28 +0000 (13:12 +0000)]
let DataType.is_subtype_of return true if the specified type is the same
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valadatatype.vala, vala/valainterface.vala,
vala/valasemanticanalyzer.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorassignment.vala: let DataType.is_subtype_of
return true if the specified type is the same
svn path=/trunk/; revision=564
Juerg Billeter [Sat, 1 Sep 2007 12:59:08 +0000 (12:59 +0000)]
add introduction to data types
2007-09-01 Juerg Billeter <j@bitron.ch>
* doc/vala/types.xml: add introduction to data types
svn path=/trunk/; revision=563
Juerg Billeter [Sat, 1 Sep 2007 12:09:48 +0000 (12:09 +0000)]
visit finally body, fixes bug 467919
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valatrystatement.vala: visit finally body, fixes bug 467919
svn path=/trunk/; revision=562
Juerg Billeter [Sat, 1 Sep 2007 11:44:15 +0000 (11:44 +0000)]
add xsltproc as optional dependency add initial structure for the Vala
2007-09-01 Juerg Billeter <j@bitron.ch>
* configure.ac: add xsltproc as optional dependency
* doc/vala/: add initial structure for the Vala Reference Manual, will
be built and installed if xsltproc is available
* tests/hello.exp, tests/hello.vala: add hello world test case
* doc/Makefile.am, tests/Makefile.am: updated
svn path=/trunk/; revision=561
Juerg Billeter [Sat, 1 Sep 2007 05:58:23 +0000 (05:58 +0000)]
check arguments of methods with ellipsis parameters
2007-09-01 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: check arguments of methods with
ellipsis parameters
svn path=/trunk/; revision=560
Juerg Billeter [Fri, 31 Aug 2007 21:23:58 +0000 (21:23 +0000)]
improve error reporting for expression, while, and for statements and for
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for
expression, while, and for statements and for parenthesized
expressions
svn path=/trunk/; revision=559
Juerg Billeter [Fri, 31 Aug 2007 12:40:19 +0000 (12:40 +0000)]
Post-release version bump
2007-08-31 Juerg Billeter <j@bitron.ch>
* configure.ac: Post-release version bump
svn path=/trunk/; revision=558
Juerg Billeter [Fri, 31 Aug 2007 12:38:29 +0000 (12:38 +0000)]
update for 0.1.3 release
2007-08-31 Juerg Billeter <j@bitron.ch>
* NEWS: update for 0.1.3 release
svn path=/trunk/; revision=556
Juerg Billeter [Fri, 31 Aug 2007 12:33:03 +0000 (12:33 +0000)]
only install man pages for vapigen and gidlgen if vapigen is enabled
2007-08-31 Juerg Billeter <j@bitron.ch>
* doc/Makefile.am: only install man pages for vapigen and gidlgen if
vapigen is enabled
svn path=/trunk/; revision=555
Juerg Billeter [Fri, 31 Aug 2007 12:11:03 +0000 (12:11 +0000)]
fix binding provider support
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: fix binding provider support
svn path=/trunk/; revision=554
Juerg Billeter [Fri, 31 Aug 2007 11:35:44 +0000 (11:35 +0000)]
number temp variables for each function separately, don't use reserved __
2007-08-31 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala, gobject/valacodegeneratormethod.vala:
number temp variables for each function separately, don't use reserved
__ prefix
svn path=/trunk/; revision=553
Juerg Billeter [Fri, 31 Aug 2007 11:21:44 +0000 (11:21 +0000)]
simplify struct variable initialization, remove unnecessary warning
2007-08-31 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: simplify struct variable
initialization, remove unnecessary warning
svn path=/trunk/; revision=552
Juerg Billeter [Fri, 31 Aug 2007 10:08:59 +0000 (10:08 +0000)]
support base_class attribute
2007-08-31 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: support base_class attribute
* vapi/packages/gdk-2.0/gdk-2.0.metadata, vapi/gdk-2.0.vala: set
base_class of GdkPixmap, fixes bug 463816
svn path=/trunk/; revision=551
Juerg Billeter [Fri, 31 Aug 2007 09:44:28 +0000 (09:44 +0000)]
use G_TYPE_POINTER for not registered classes, add has_type_id attribute
2007-08-31 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valastruct.vala: use G_TYPE_POINTER for
not registered classes, add has_type_id attribute
* vapigen/valagidlparser.vala: use GLib.Boxed as base type of boxed
types
* vapi/glib-2.0.vala: use has_type_id attribute and GLib.Boxed
* vapi/gconf-2.0.vala, vapi/gdk-2.0.vala, vapi/gnome-desktop-2.0.vala,
vapi/gnome-vfs-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/libglade-2.0.vala, vapi/libgnome-2.0.vala, vapi/libsoup-2.2.vala,
vapi/pango.vala, vapi/poppler-glib.vala: regenerated
svn path=/trunk/; revision=550
Mathias Hasselmann [Thu, 30 Aug 2007 21:56:59 +0000 (21:56 +0000)]
hide internal API and specify correct header files regenerated
2007-08-30 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtksourceview-2.0/gtksourceview-2.0.metadata:
hide internal API and specify correct header files
* vapi/gtksourceview-2.0.vala: regenerated
svn path=/trunk/; revision=549
Juerg Billeter [Thu, 30 Aug 2007 21:39:22 +0000 (21:39 +0000)]
don't NULL-terminate value-type arrays
2007-08-30 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: don't NULL-terminate value-type arrays
svn path=/trunk/; revision=548
Juerg Billeter [Thu, 30 Aug 2007 19:54:32 +0000 (19:54 +0000)]
support prototype access to allow accessing instance members without an
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valamemberaccess.vala, vala/valasemanticanalyzer.vala: support
prototype access to allow accessing instance members without an
actual instance, fixes bug 471778
svn path=/trunk/; revision=547
Juerg Billeter [Thu, 30 Aug 2007 19:02:06 +0000 (19:02 +0000)]
rename MemberAccessibility to SymbolAccessibility and move its declaration
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valamemberaccessibility.vala: rename MemberAccessibility to
SymbolAccessibility and move its declaration to vala/valasymbol.vala
* vala/parser.y: store accessibility modifier for properties and follow
the renames caused by the accessibility releated refactoring, cast
the Struct allocated in struct_declaration to silence gcc
* vala/Makefile.am: remove valamemberaccessibility.* files
* vala/valasymbol.vala: add access property found in serveral
sub-classes and add is_internal_symbol () method, which considers
parent symbols to determinate if a symbol belongs to internal API
* gobject/*, vala/*, vapigen/valagidlparser.vala:
move the access property/field found in several Symbol derived
classes to the Symbol class where it belongs and rename the
MemberAccessibility enumeration to SymbolAccessibility
* vala/valaformalparameter.vala, vala/valanamespace.vala: set access
to public on initialization, as there is no accessibility modifier
* gobject/valacodegenerator.vala: do not add internal symbols to
header_type_member_declarations
* vala/valasemanticanalyzer.vala: do not add HEADER_SHALLOW symbol
dependencies for internal symbols
* gobject/valacodegeneratormethod.vala: consider all anchestors,
not just the parent for visibility
patch by Mathias Hasselmann, fixes bug 471475
svn path=/trunk/; revision=546
Juerg Billeter [Thu, 30 Aug 2007 18:05:37 +0000 (18:05 +0000)]
remove support for reference-type structs, improve support for non-GObject
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valainterfacewriter.vala,
vala/valastruct.vala: remove support for reference-type structs,
improve support for non-GObject classes
* vapigen/valagidlparser.vala, vapi/cairo.vala, vapi/curses.vala,
vapi/dbus-glib-1.vala, vapi/enchant.vala, vapi/hal.vala,
vapi/libxml-2.0.vala, vapi/sqlite3.vala,
vapi/packages/libsoup-2.2/libsoup-2.2-custom.vala,
vapi/packages/pango/pango-custom.vala: replace reference-type structs
by classes
* vapi/atk.vala, vapi/gconf-2.0.vala, vapi/gdk-2.0.vala,
vapi/gio-standalone.vala, vapi/gnome-desktop-2.0.vala,
vapi/gnome-vfs-2.0.vala, vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/hildon-1.vala,
vapi/libglade-2.0.vala, vapi/libgnome-2.0.vala,
vapi/libgnomeui-2.0.vala, vapi/libsoup-2.2.vala,
vapi/libwnck-1.0.vala, vapi/pango.vala, vapi/poppler-glib.vala,
vapi/vte.vala: regenerated
svn path=/trunk/; revision=545
Juerg Billeter [Thu, 30 Aug 2007 16:25:05 +0000 (16:25 +0000)]
fix internal warnings on syntax errors
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/parser.y: fix internal warnings on syntax errors
svn path=/trunk/; revision=544
Juerg Billeter [Thu, 30 Aug 2007 16:07:18 +0000 (16:07 +0000)]
improve error reporting for parenthesized expressions
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for
parenthesized expressions
svn path=/trunk/; revision=543
Juerg Billeter [Thu, 30 Aug 2007 15:47:11 +0000 (15:47 +0000)]
improve error reporting for foreach statements
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting for foreach
statements
svn path=/trunk/; revision=542
Juerg Billeter [Thu, 30 Aug 2007 15:18:47 +0000 (15:18 +0000)]
remove clutter bindings, will be moved to clutter svn
2007-08-30 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/clutter-0.4.deps, vapi/clutter-0.4.vala,
vapi/packages/clutter-0.4/: remove clutter bindings, will be moved
to clutter svn
svn path=/trunk/; revision=541
Juerg Billeter [Thu, 30 Aug 2007 14:54:51 +0000 (14:54 +0000)]
replace reference-type structs by classes, requires r539 to build
2007-08-30 Juerg Billeter <j@bitron.ch>
* gee/hashmap.vala, gee/hashset.vala, vapi/glib-2.0.vala,
gobject-introspection/gidl.vala: replace reference-type structs by
classes, requires r539 to build
svn path=/trunk/; revision=540
Juerg Billeter [Thu, 30 Aug 2007 14:47:36 +0000 (14:47 +0000)]
fix object creation for non-GObject classes without creation method
2007-08-30 Juerg Billeter <j@bitron.ch>
* gobject/valacodegenerator.vala: fix object creation for non-GObject
classes without creation method
svn path=/trunk/; revision=539
Juerg Billeter [Thu, 30 Aug 2007 14:19:05 +0000 (14:19 +0000)]
remove obsolete ctype attribute
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorinterface.vala,
gobject/valacodegeneratormethod.vala, vapi/glib-2.0.vala: remove
obsolete ctype attribute
svn path=/trunk/; revision=538
Juerg Billeter [Thu, 30 Aug 2007 13:45:05 +0000 (13:45 +0000)]
support classes without base class
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valasemanticanalyzer.vala,
gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratormethod.vala, vapi/glib-2.0.vala: support
classes without base class
svn path=/trunk/; revision=537
Juerg Billeter [Thu, 30 Aug 2007 12:33:40 +0000 (12:33 +0000)]
don't implicitly derive from GLib.Object in preparation for a more
2007-08-30 Juerg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala, vala/valasemanticanalyzer.vala,
gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala:
don't implicitly derive from GLib.Object in preparation for a more
consistent type system
* gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala,
gee/iterable.vala, gee/iterator.vala, gee/list.vala, gee/map.vala,
gee/readonlycollection.vala, gee/readonlylist.vala,
gee/readonlymap.vala, gee/readonlyset.vala,
vala/valabindingprovider.vala, vala/valacodecontext.vala,
vala/valacodenode.vala, vala/valacodevisitor.vala,
vala/valascope.vala, vala/valasourcefile.vala,
vala/valasourcefilecycle.vala, vala/valasourcereference.vala,
ccode/valaccodenode.vala, ccode/valaccodewriter.vala,
gobject/valaccodecompiler.vala, gobject/valadbusbindingprovider.vala,
gobject/valatyperegisterfunction.vala, compiler/valacompiler.vala,
tests/, vapigen/valavapigen.vala: derive all classes from GLib.Object
svn path=/trunk/; revision=536
Juerg Billeter [Thu, 30 Aug 2007 12:31:30 +0000 (12:31 +0000)]
add missing file
2007-08-30 Juerg Billeter <j@bitron.ch>
* vapi/libnotify.deps: add missing file
svn path=/trunk/; revision=535
Juerg Billeter [Wed, 29 Aug 2007 20:39:02 +0000 (20:39 +0000)]
add libnotify bindings, patch by Nicolas Christener and Roland Hostettler
2007-08-29 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/libnotify.valam, vapi/packages/libnotify/: add
libnotify bindings, patch by Nicolas Christener and Roland Hostettler
svn path=/trunk/; revision=534
Juerg Billeter [Wed, 29 Aug 2007 18:47:42 +0000 (18:47 +0000)]
add missing type_id information
2007-08-29 Juerg Billeter <j@bitron.ch>
* vapi/glib-2.0.vala: add missing type_id information
svn path=/trunk/; revision=533
Juerg Billeter [Wed, 29 Aug 2007 14:45:42 +0000 (14:45 +0000)]
add signal to keyword list
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala: add signal to keyword list
* vapi/libglade-2.0.vala: regenerated
svn path=/trunk/; revision=532
Juerg Billeter [Wed, 29 Aug 2007 14:09:40 +0000 (14:09 +0000)]
report too short type names, based on patch by Ed Schouten, fixes bug
2007-08-29 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratorinterface.vala: report too short type names,
based on patch by Ed Schouten, fixes bug 471253
svn path=/trunk/; revision=531
Juerg Billeter [Wed, 29 Aug 2007 13:56:53 +0000 (13:56 +0000)]
allow property accessors in arbitrary order, fixes bug 470233
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/parser.y: allow property accessors in arbitrary order,
fixes bug 470233
svn path=/trunk/; revision=530
Juerg Billeter [Wed, 29 Aug 2007 13:31:43 +0000 (13:31 +0000)]
improve error reporting in invocation expressions
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: improve error reporting in invocation
expressions
svn path=/trunk/; revision=529
Juerg Billeter [Wed, 29 Aug 2007 13:04:23 +0000 (13:04 +0000)]
deny access to instance members from static methods, improve error
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valasemanticanalyzer.vala,
gobject/valacodegeneratorassignment.vala: deny access to instance
members from static methods, improve error reporting
svn path=/trunk/; revision=528
Juerg Billeter [Wed, 29 Aug 2007 11:26:07 +0000 (11:26 +0000)]
fix internal warnings on syntax errors, fixes bug 471226
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/parser.y: fix internal warnings on syntax errors,
fixes bug 471226
svn path=/trunk/; revision=527
Juerg Billeter [Wed, 29 Aug 2007 10:14:25 +0000 (10:14 +0000)]
add missing init/shutdown methods
2007-08-29 Juerg Billeter <j@bitron.ch>
* vapi/gnome-vfs-2.0.vala,
vapi/packages/gnome-vfs-2.0/gnome-vfs-2.0-custom.vala: add missing
init/shutdown methods
svn path=/trunk/; revision=526
Juerg Billeter [Wed, 29 Aug 2007 10:08:43 +0000 (10:08 +0000)]
fix warnings on invalid code
2007-08-29 Juerg Billeter <j@bitron.ch>
* vala/valasymbolresolver.vala: fix warnings on invalid code
svn path=/trunk/; revision=525
Juerg Billeter [Wed, 29 Aug 2007 09:42:37 +0000 (09:42 +0000)]
fix warnings on invalid code
2007-08-29 Juerg Billeter <j@bitron.ch>
* gobject/valadbusbindingprovider.vala: fix warnings on invalid code
svn path=/trunk/; revision=524
Juerg Billeter [Tue, 28 Aug 2007 19:05:29 +0000 (19:05 +0000)]
ensure that the error domains match when comparing two methods for
2007-08-28 Juerg Billeter <j@bitron.ch>
* vala/valamethod.vala: ensure that the error domains match when
comparing two methods for equality, fixes bug 465123
svn path=/trunk/; revision=523
Juerg Billeter [Tue, 28 Aug 2007 18:53:29 +0000 (18:53 +0000)]
generate warning about invalid property ids, fixes bug 463668
2007-08-28 Juerg Billeter <j@bitron.ch>
* ccode/valaccodeswitchstatement.vala,
gobject/valacodegeneratorclass.vala: generate warning about invalid
property ids, fixes bug 463668
svn path=/trunk/; revision=522
Mathias Hasselmann [Tue, 28 Aug 2007 15:17:45 +0000 (15:17 +0000)]
avoid crash on missing copy function, fixes bug 471063.
2007-08-28 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala: avoid crash on missing copy
function, fixes bug 471063.
svn path=/trunk/; revision=520
Marc-Andre Lureau [Tue, 28 Aug 2007 15:13:08 +0000 (15:13 +0000)]
doc: add vapigen and gidlgen manual pages
svn path=/trunk/; revision=519
Juerg Billeter [Tue, 28 Aug 2007 14:36:23 +0000 (14:36 +0000)]
update format as requested on desktop-devel
2007-08-28 Juerg Billeter <j@bitron.ch>
* MAINTAINERS: update format as requested on desktop-devel
svn path=/trunk/; revision=518
Juerg Billeter [Tue, 28 Aug 2007 14:22:57 +0000 (14:22 +0000)]
support custom field cname in generated VAPI file
2007-08-28 Juerg Billeter <j@bitron.ch>
* vala/valafield.vala, vala/valainterfacewriter.vala: support custom
field cname in generated VAPI file
* vapigen/valagidlparser.vala: add mode_t support
* vapi/glib-2.0.vala, vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala: add
some required stubs
* vapi/gconf-2.0.vala, vapi/packages/gconf-2.0/: add GConf bindings
* vapi/gnome-vfs-2.0.vala, vapi/packages/gnome-vfs-2.0/: add GnomeVFS
bindings
* vapi/libgnome-2.0.vala, vapi/packages/libgnome-2.0/: add libgnome
bindings
* vapi/libgnomeui-2.0.deps, vapi/libgnomeui-2.0.vala,
vapi/packages/libgnomeui-2.0/: add libgnomeui bindings
* vapi/libpanelapplet-2.0.deps, vapi/libpanelapplet-2.0.vala: add Panel
Applet bindings
* vapi/atk.vala, vapi/clutter-0.4.vala, vapi/gdk-2.0.vala,
vapi/gio-standalone.vala, vapi/gnome-desktop-2.0.vala,
vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/hildon-1.vala,
vapi/libglade-2.0.vala, vapi/libsoup-2.2.vala, vapi/libwnck-1.0.vala,
vapi/pango.vala, vapi/poppler-glib.vala, vapi/vte.vala: regenerated
* vapi/Makefile.am: updated
svn path=/trunk/; revision=517
Juerg Billeter [Tue, 28 Aug 2007 14:04:00 +0000 (14:04 +0000)]
add support for partial structs, patch by Mathias Hasselmann
2007-08-28 Juerg Billeter <j@bitron.ch>
* vala/parser.y: add support for partial structs,
patch by Mathias Hasselmann
* vapigen/valagidlparser.vala: support partial structs and classes in
-custom.vala files, fixes bug 470855
* vapi/gtk+-2.0.vala, vapi/packages/pango/pango-custom.vala,
vapi/pango.vala: updated
svn path=/trunk/; revision=516
Juerg Billeter [Tue, 28 Aug 2007 07:49:23 +0000 (07:49 +0000)]
move math functions to GLib VAPI, remove math.vala
2007-08-28 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/glib-2.0.vala, vapi/math.vala: move math
functions to GLib VAPI, remove math.vala
svn path=/trunk/; revision=515
Juerg Billeter [Tue, 28 Aug 2007 07:22:02 +0000 (07:22 +0000)]
support non-GObject classes, will replace reference-type structs
2007-08-28 Juerg Billeter <j@bitron.ch>
* vala/valaclass.vala, vala/valaenum.vala,
gobject/valacodegenerator.vala, gobject/valacodegeneratorclass.vala,
gobject/valacodegeneratorinterface.vala,
gobject/valacodegeneratormethod.vala: support non-GObject classes,
will replace reference-type structs
svn path=/trunk/; revision=514
Mathias Hasselmann [Mon, 27 Aug 2007 21:37:29 +0000 (21:37 +0000)]
reintroduce GtkWidgetFlags API
2007-08-27 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtk+-2.0/gtk+-2.0-custom.vala,
vapi/gtk+-2.0.vala: reintroduce GtkWidgetFlags API
svn path=/trunk/; revision=513
Mathias Hasselmann [Mon, 27 Aug 2007 21:37:23 +0000 (21:37 +0000)]
fix signature of Pango.Language.to_string
2007-08-27 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/pango/pango-custom.vala:
fix signature of Pango.Language.to_string
svn path=/trunk/; revision=512
Mathias Hasselmann [Mon, 27 Aug 2007 19:41:15 +0000 (19:41 +0000)]
include type-name in to_string result implement to_string method, fixes
2007-08-27 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vala/valacodenode.vala: include type-name in to_string result
* vala/valaunaryexpression.vala: implement to_string method,
fixes bug 470778
svn path=/trunk/; revision=511
Juerg Billeter [Mon, 27 Aug 2007 19:16:53 +0000 (19:16 +0000)]
update to Clutter 0.4.1, patch by Alberto Ruiz, fixes bug 470763
2007-08-27 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/clutter-0.3.deps, vapi/clutter-0.3.vala,
vapi/clutter-0.4.deps, vapi/clutter-0.4.vala,
vapi/packages/clutter-0.3/, vapi/packages/clutter-0.4/: update to
Clutter 0.4.1, patch by Alberto Ruiz, fixes bug 470763
svn path=/trunk/; revision=510
Juerg Billeter [Mon, 27 Aug 2007 19:04:22 +0000 (19:04 +0000)]
use .deps files to satisfy dependencies, patch by Alberto Ruiz, fixes bug
2007-08-27 Juerg Billeter <j@bitron.ch>
* vapigen/valavapigen.vala: use .deps files to satisfy dependencies,
patch by Alberto Ruiz, fixes bug 470756
* vapi/packages/clutter-0.3/clutter-0.3.deps,
vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps,
vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps,
vapi/packages/libglade-2.0/libglade-2.0.deps,
vapi/packages/libwnck-1.0/libwnck-1.0.deps: add missing dependencies
svn path=/trunk/; revision=509
Mathias Hasselmann [Mon, 27 Aug 2007 18:35:09 +0000 (18:35 +0000)]
add pango_layout_to_string. TODO: support partial classes in vapigen.
2007-08-27 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/pango/pango-custom.vala, vapi/pango.vala:
add pango_layout_to_string. TODO: support partial classes in vapigen.
svn path=/trunk/; revision=508
Mathias Hasselmann [Mon, 27 Aug 2007 18:35:05 +0000 (18:35 +0000)]
change type of string length paramenters from int to long to be compliant
2007-08-27 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/enchant.vala: change type of string length paramenters from int
to long to be compliant with GLib.string.size ().
svn path=/trunk/; revision=507
Juerg Billeter [Mon, 27 Aug 2007 16:36:37 +0000 (16:36 +0000)]
ignore enum values to avoid some pattern matching issues
2007-08-27 Juerg Billeter <j@bitron.ch>
* vapigen/gidlgen/gapi2xml.pl: ignore enum values to avoid some pattern
matching issues
* vapi/Makefile.am, vapi/packages/poppler-glib/, vapi/poppler-glib.deps,
vapi/poppler-glib.vala: add poppler bindings, patch by Alberto Ruiz,
fixes bug 468990
* vapi/packages/atk/atk.gidl, vapi/packages/gdk-2.0/gdk-2.0.gidl,
vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.gidl,
vapi/packages/gstreamer-0.10/gstreamer-0.10.gidl,
vapi/packages/gtk+-2.0/gtk+-2.0.gidl,
vapi/packages/libsoup-2.2/libsoup-2.2.gidl,
vapi/packages/libwnck-1.0/libwnck-1.0.gidl,
vapi/packages/pango/pango.gidl: regenerated
svn path=/trunk/; revision=506
Juerg Billeter [Mon, 27 Aug 2007 14:53:16 +0000 (14:53 +0000)]
add curses bindings, patch by Ed Schouten
2007-08-27 Juerg Billeter <j@bitron.ch>
* vapi/Makefile.am, vapi/curses.vala: add curses bindings,
patch by Ed Schouten
svn path=/trunk/; revision=505
Juerg Billeter [Mon, 27 Aug 2007 14:46:38 +0000 (14:46 +0000)]
generate static get_type functions for non-public classes and interfaces,
2007-08-27 Juerg Billeter <j@bitron.ch>
* gobject/valaclassregisterfunction.vala,
gobject/valacodegeneratorinterface.vala,
gobject/valainterfaceregisterfunction.vala,
gobject/valatyperegisterfunction.vala: generate static get_type
functions for non-public classes and interfaces,
patch by Ed Schouten, fixes bug 470428
svn path=/trunk/; revision=504
Juerg Billeter [Mon, 27 Aug 2007 13:51:41 +0000 (13:51 +0000)]
use exceptions instead of GError parameters for generated bindings, based
2007-08-27 Juerg Billeter <j@bitron.ch>
* vala/valacreationmethod.vala, gobject/valacodegenerator.vala,
vapigen/valagidlparser.vala: use exceptions instead of GError
parameters for generated bindings, based on patch by Alberto Ruiz,
fixes bug 470432
* vapi/clutter-0.3.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
vapi/gnome-desktop-2.0.vala, vapi/gstreamer-0.10.vala,
vapi/gtk+-2.0.vala, vapi/hildon-1.vala, vapi/pango.vala: regenerated
svn path=/trunk/; revision=503
Juerg Billeter [Fri, 24 Aug 2007 18:23:29 +0000 (18:23 +0000)]
fix generated string out and string array parameters add g_listenv
2007-08-24 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala, vapi/gdk-2.0.vala,
vapi/gio-standalone.vala,
vapi/gnome-desktop-2.0.vala, vapi/gstreamer-0.10.vala,
vapi/gtk+-2.0.vala, vapi/libsoup-2.2.vala,
vapi/packages/gdk-2.0/gdk-2.0.metadata,
vapi/packages/gio-standalone/gio-standalone.metadata,
vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.metadata,
vapi/packages/gstreamer-0.10/gstreamer-0.10.metadata,
vapi/packages/gtk+-2.0/gtk+-2.0.metadata,
vapi/packages/vte/vte.metadata, vapi/pango.vala, vapi/vte.vala:
fix generated string out and string array parameters
* vapi/glib-2.0.vala: add g_listenv
svn path=/trunk/; revision=502
Juerg Billeter [Fri, 24 Aug 2007 14:33:35 +0000 (14:33 +0000)]
add GNOME Desktop Library bindings
2007-08-24 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala, vapi/Makefile.am,
vapi/gnome-desktop-2.0.vala, vapi/packages/gnome-desktop-2.0/: add
GNOME Desktop Library bindings
svn path=/trunk/; revision=501
Juerg Billeter [Fri, 24 Aug 2007 14:14:50 +0000 (14:14 +0000)]
fix array fields of Gtk.Style, fixes bug 463959 add g_get_user_data_dir
2007-08-24 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala, vapi/gtk+-2.0.vala,
vapi/packages/gtk+-2.0/gtk+-2.0.metadata: fix array fields of
Gtk.Style, fixes bug 463959
* vapi/glib-2.0.vala: add g_get_user_data_dir
svn path=/trunk/; revision=500
Juerg Billeter [Fri, 24 Aug 2007 07:18:59 +0000 (07:18 +0000)]
recognize unsigned and unsigned-int types add libwnck bindings
2007-08-24 Juerg Billeter <j@bitron.ch>
* vapigen/valagidlparser.vala: recognize unsigned and unsigned-int types
* vapi/Makefile.am, vapi/libwnck-1.0.vala, vapi/packages/libwnck-1.0/:
add libwnck bindings
svn path=/trunk/; revision=499
Juerg Billeter [Fri, 24 Aug 2007 07:10:26 +0000 (07:10 +0000)]
write dup_function and free_function attribute values recognize ref,
2007-08-24 Juerg Billeter <j@bitron.ch>
* vala/valainterfacewriter.vala, vala/valastruct.vala,
gobject/valacodegenerator.vala: write dup_function and free_function
attribute values
* vapigen/valagidlparser.vala: recognize ref, unref, and free functions,
GType arrays, and out parameters
* vapi/glib-2.0.vala: mark Closure as reference type
* vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gio-standalone.vala,
vapi/gstreamer-0.10.vala, vapi/gtk+-2.0.vala,
vapi/gtksourceview-2.0.vala, vapi/libsoup-2.2.vala, vapi/pango.vala,
vapi/vte.vala: regenerated
* vapi/packages/atk/: update to ATK 1.19.6
* vapi/packages/gdk-2.0/, vapi/packages/gtk+-2.0/: update to GTK+ 2.11.6
* vapi/packages/gstreamer-0.10/: update to GStreamer 0.10.14
* vapi/packages/gtksourceview-2.0/: update to GtkSourceView 1.90.3
* vapi/packages/pango/: update to Pango 1.18.0
svn path=/trunk/; revision=498
Juerg Billeter [Tue, 21 Aug 2007 11:35:19 +0000 (11:35 +0000)]
fix typo, patch by Piotr Skamruk
2007-08-21 Juerg Billeter <j@bitron.ch>
* vapi/libxml-2.0.vala: fix typo, patch by Piotr Skamruk
svn path=/trunk/; revision=497
Juerg Billeter [Tue, 21 Aug 2007 11:23:08 +0000 (11:23 +0000)]
add array length argument when passing null as array argument, fixes bug
2007-08-21 Juerg Billeter <j@bitron.ch>
* gobject/valacodegeneratorinvocationexpression.vala: add array length
argument when passing null as array argument, fixes bug 467903
svn path=/trunk/; revision=496
Juerg Billeter [Tue, 21 Aug 2007 10:51:08 +0000 (10:51 +0000)]
fix build system to pass distcheck, based on patch by Nicolas Trangez,
2007-08-21 Juerg Billeter <j@bitron.ch>
* gee/Makefile.am, vala/Makefile.am, ccode/Makefile.am,
gobject/Makefile.am, compiler/Makefile.am, tests/Makefile.am,
tests/testrunner.sh: fix build system to pass distcheck,
based on patch by Nicolas Trangez, fixes bug 466283
* Rename tests/*.out to tests/*.exp
* tests/test-022.vala, tests/test-022.exp: reduce to regression test
svn path=/trunk/; revision=495
Juerg Billeter [Tue, 21 Aug 2007 10:00:47 +0000 (10:00 +0000)]
support --directory option, use basename of input filenames, patch by
2007-08-21 Juerg Billeter <j@bitron.ch>
* vala/valacodecontext.vala, vala/valasourcefile.vala,
gobject/valaccodecompiler.vala, compiler/valacompiler.vala: support
--directory option, use basename of input filenames,
patch by Nicolas Trangez, fixes bug 465720
svn path=/trunk/; revision=494
Mathias Hasselmann [Tue, 21 Aug 2007 07:40:14 +0000 (07:40 +0000)]
consider switch statements when releasing local variables, fixes bug
2007-08-21 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala, vala/valaswitchsection.vala,
vala/valaswitchstatement.vala: consider switch statements
when releasing local variables, fixes bug 467896
* tests/Makefile.am, tests/test-035.*: test for that bug
svn path=/trunk/; revision=493
Mathias Hasselmann [Tue, 21 Aug 2007 07:37:54 +0000 (07:37 +0000)]
Add bug number to encourage use of Bugzilla.
svn path=/trunk/; revision=492
Juerg Billeter [Mon, 20 Aug 2007 21:52:07 +0000 (21:52 +0000)]
fix memory management for throw statements, fixes bug 465071
2007-08-20 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala, vala/valathrowstatement.vala,
gobject/valacodegenerator.vala: fix memory management for throw
statements, fixes bug 465071
svn path=/trunk/; revision=491
Mathias Hasselmann [Mon, 20 Aug 2007 21:30:39 +0000 (21:30 +0000)]
Add test for prefix increments in while loops: do { } while (++i < x);
2007-08-20 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* tests/test-027.*: Add test for prefix increments
in while loops: do { } while (++i < x);
svn path=/trunk/; revision=490
Mathias Hasselmann [Mon, 20 Aug 2007 21:23:00 +0000 (21:23 +0000)]
support C# like as operator test the as operator
2007-08-20 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vala/valacastexpression.vala, gobject/valacodegenerator.vala,
vala/parser.y, vala/scanner.l: support C# like as operator
* tests/Makefile.am, tests/test-034.*: test the as operator
svn path=/trunk/; revision=489
Juerg Billeter [Mon, 20 Aug 2007 20:00:35 +0000 (20:00 +0000)]
support cheader_filename attribute, fixes bug 464988
2007-08-20 Juerg Billeter <j@bitron.ch>
* vala/valafield.vala: support cheader_filename attribute,
fixes bug 464988
svn path=/trunk/; revision=488
Juerg Billeter [Mon, 20 Aug 2007 19:05:47 +0000 (19:05 +0000)]
fix initialization of external variables
2007-08-20 Juerg Billeter <j@bitron.ch>
* ccode/valaccodedeclaration.vala, ccode/valaccodemodifiers.vala,
gobject/valacodegenerator.vala: fix initialization of external
variables
svn path=/trunk/; revision=487
Juerg Billeter [Mon, 20 Aug 2007 16:42:47 +0000 (16:42 +0000)]
support namespace fields and public static class fields, fixes bug 464985
2007-08-20 Juerg Billeter <j@bitron.ch>
* vala/valafield.vala, gobject/valacodegenerator.vala,
gobject/valacodegeneratorclass.vala: support namespace fields and
public static class fields, fixes bug 464985
svn path=/trunk/; revision=486
Raffaele Sandrini [Mon, 20 Aug 2007 14:48:27 +0000 (14:48 +0000)]
enclose prefix increment and decrement unary expressions transformend to
2007-08-20 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/valasemanticanalyzer.vala: enclose prefix increment and decrement unary
expressions transformend to binary expressions into parenthesis
svn path=/trunk/; revision=485
Juerg Billeter [Mon, 20 Aug 2007 13:33:26 +0000 (13:33 +0000)]
report error and fix critical to prevent private members in namespaces
2007-08-20 Juerg Billeter <j@bitron.ch>
* vala/valasemanticanalyzer.vala: report error and fix critical to
prevent private members in namespaces
svn path=/trunk/; revision=484
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:31 +0000 (22:03 +0000)]
also use _vala_array_free to release string arrays as g_strfreev cannot
2007-08-19 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala: also use _vala_array_free to
release string arrays as g_strfreev cannot handle Vala's sized
arrays, which have a _length variable, but no NULL sentinel.
* gobject/valacodegeneratorsourcefile.vala: enhance _vala_array_free
to handle unsized (NULL sentinel terminated) arrays.
* tests/test-022.*: test behaviour of _vala_array_free. currently
fails because Vala forgets to release old element members when
assigning a new value.
svn path=/trunk/; revision=483
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:24 +0000 (22:03 +0000)]
move code generation for _vala_array_free and _vala_array_move into
2007-08-19 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegeneratorsourcefile.vala: move code generation
for _vala_array_free and _vala_array_move into separate methods
for readability.
svn path=/trunk/; revision=482
Mathias Hasselmann [Sun, 19 Aug 2007 22:03:19 +0000 (22:03 +0000)]
terminate array initializer with NULL sentinal to make destructors like
2007-08-18 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegenerator.vala: terminate array initializer
with NULL sentinal to make destructors like g_strfreev happy
svn path=/trunk/; revision=481
Mathias Hasselmann [Sat, 18 Aug 2007 09:43:15 +0000 (09:43 +0000)]
erm, well.. also should install enchant.vala
2007-08-18 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/Makefile.am: erm, well.. also should install enchant.vala
svn path=/trunk/; revision=479
Mathias Hasselmann [Sat, 18 Aug 2007 09:26:55 +0000 (09:26 +0000)]
test for libenchant introducing some echant bindings test enchant bindings
2007-08-18 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* configure.ac: test for libenchant
* vapi/enchant.vala: introducing some echant bindings
* tests/Makefile.am, tests/testenchant.vala: test enchant bindings
svn path=/trunk/; revision=478
Mathias Hasselmann [Fri, 17 Aug 2007 10:59:19 +0000 (10:59 +0000)]
revert last change: the field really is called "signal" name as figured
2007-08-17 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/libglade-2.0.vala: revert last change: the field
really is called "signal" name as figured out by gidlgen -
for almost five years now
svn path=/trunk/; revision=477
Mathias Hasselmann [Fri, 17 Aug 2007 10:44:44 +0000 (10:44 +0000)]
use correct name for signal_name, patch by Francisco Camenforte Torres
2007-08-17 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/libglade-2.0.vala: use correct name for
signal_name, patch by Francisco Camenforte Torres
svn path=/trunk/; revision=476
Mathias Hasselmann [Thu, 16 Aug 2007 22:04:33 +0000 (22:04 +0000)]
apply changes in the output of vapigen caused by the sentinel attribute
2007-08-17 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/gtk+-2.0.vala: apply changes in the output
of vapigen caused by the sentinel attribute patch
svn path=/trunk/; revision=475
Mathias Hasselmann [Thu, 16 Aug 2007 21:47:17 +0000 (21:47 +0000)]
consider sentinel information provide sentinel information for functions
2007-08-16 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valacodegeneratorinvocationexpression.vala,
vala/valainterfacewriter.vala, vala/valamethod.vala,
vapigen/valagidlparser.vala: consider sentinel information
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: provide sentinel
information for functions with variable length argument lists
svn path=/trunk/; revision=474
Mathias Hasselmann [Thu, 16 Aug 2007 21:47:08 +0000 (21:47 +0000)]
properly inform vapigen about the ellipsis off
2007-08-16 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/packages/gtk+-2.0/gtk+-2.0.metadata: properly inform vapigen
about the ellipsis off gtk_cell_layout_set_attributes and
gtk_tree_view_column_set_attributes
svn path=/trunk/; revision=473
Raffaele Sandrini [Thu, 16 Aug 2007 14:44:58 +0000 (14:44 +0000)]
add size property allow array creation with initializer list without
2007-08-16 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/valainitializerlist.vala: add size property
* vala/valasemanticanalyzer.vala: allow array creation with initializer
list without specifying the sizes e.g. "new t[] { a, b, c}"
svn path=/trunk/; revision=472
Mathias Hasselmann [Thu, 16 Aug 2007 13:03:16 +0000 (13:03 +0000)]
add String.printf and append_printf
2007-08-16 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: add String.printf and append_printf
svn path=/trunk/; revision=471
Mathias Hasselmann [Thu, 16 Aug 2007 13:03:11 +0000 (13:03 +0000)]
add signal handling API
2007-08-16 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: add signal handling API
svn path=/trunk/; revision=470
Raffaele Sandrini [Thu, 16 Aug 2007 09:21:55 +0000 (09:21 +0000)]
adapt visit initializer and visit array creation to external visitor check
2007-08-16 Raffaele Sandrini <raffaele@sandrini.ch>
* gobject/valacodegenerator.vala, vala/valacodevisitor.vala,
vala/valasemanticanalyzer.vala, vala/valasymbolresolver.vala:
adapt visit initializer and visit array creation to external visitor
* vala/valamemorymanager.vala: check initializers of array creation
expressions for missing ref
* vala/valaarraycreationexpression.vala, vala/valainitializerlist.vala:
change to external visitor
svn path=/trunk/; revision=469
Raffaele Sandrini [Wed, 15 Aug 2007 09:17:35 +0000 (09:17 +0000)]
create gee-1.0 vapi; this makes it possible to use the vala shipped libgee
2007-08-15 Raffaele Sandrini <raffaele@sandrini.ch>
* vapi/Makefile.am: create gee-1.0 vapi; this makes it possible to
use the vala shipped libgee copy without an separate installed
version of libgee i.e. it enables to run the tests without installed
libgee
svn path=/trunk/; revision=468
Mathias Hasselmann [Tue, 14 Aug 2007 20:47:19 +0000 (20:47 +0000)]
generate "throws" clause when needed
2007-08-14 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vala/valainterfacewriter.vala:
generate "throws" clause when needed
svn path=/trunk/; revision=467
Mathias Hasselmann [Tue, 14 Aug 2007 19:19:30 +0000 (19:19 +0000)]
do not pass non-existant packages to pkg-config
2007-08-14 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* gobject/valaccodecompiler.vala: do not pass non-existant
packages to pkg-config
svn path=/trunk/; revision=466
Mathias Hasselmann [Mon, 13 Aug 2007 19:59:00 +0000 (19:59 +0000)]
correct KeyFile accessors, reported by Arwed von Merkatz.
2007-08-13 Mathias Hasselmann <mathias.hasselmann@gmx.de>
* vapi/glib-2.0.vala: correct KeyFile accessors,
reported by Arwed von Merkatz.
svn path=/trunk/; revision=465