]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
14 years agocodegen: Support owned delegate parameter in set accessor 1e90d53dba0eff6ec2babd8292676099308dd4f6
Luca Bruno [Thu, 9 Jun 2011 11:37:23 +0000 (13:37 +0200)] 
codegen: Support owned delegate parameter in set accessor

14 years agoTransfer ownership of owned value parameter in set accessor
Luca Bruno [Thu, 9 Jun 2011 11:32:04 +0000 (13:32 +0200)] 
Transfer ownership of owned value parameter in set accessor

14 years agocodegen: Fix memory leak in set accessor with owned value
Luca Bruno [Thu, 9 Jun 2011 11:11:21 +0000 (13:11 +0200)] 
codegen: Fix memory leak in set accessor with owned value

Fixes bug 652181.

14 years agogirparser: Only rely on virtual-method for marking a method as virtual
Luca Bruno [Wed, 8 Jun 2011 20:32:05 +0000 (22:32 +0200)] 
girparser: Only rely on virtual-method for marking a method as virtual

14 years agogtk+-2.0, gtk+-3.0: Fix return value of gtk_target_table_new_from_list
Oliver Sauder [Wed, 8 Jun 2011 19:06:33 +0000 (21:06 +0200)] 
gtk+-2.0, gtk+-3.0: Fix return value of gtk_target_table_new_from_list

Fixes bug 652137.

14 years agogio-2.0: Fix Bus.watch_name and watch_name_on_connection bindings
Luca Bruno [Wed, 8 Jun 2011 19:14:50 +0000 (21:14 +0200)] 
gio-2.0: Fix Bus.watch_name and watch_name_on_connection bindings

Fixes bug 652123.

14 years agotests: Add ref-testing for the GIR parser
Luca Bruno [Fri, 3 Jun 2011 16:57:34 +0000 (18:57 +0200)] 
tests: Add ref-testing for the GIR parser

14 years agogtk+-2.0, gtk+-3.0: Mark TreeModel.get_path return value as nullable
Luca Bruno [Sun, 5 Jun 2011 14:17:02 +0000 (16:17 +0200)] 
gtk+-2.0, gtk+-3.0: Mark TreeModel.get_path return value as nullable

Fixes bug 651871.

14 years agogirparser: Set vfunc_name for virtual methods if name differs from invoker
Luca Bruno [Sun, 5 Jun 2011 09:16:16 +0000 (11:16 +0200)] 
girparser: Set vfunc_name for virtual methods if name differs from invoker

14 years agogtk+-2.0, gtk+-3.0: Make TreeModel.ref_node and unref_node be virtual
Luca Bruno [Sun, 5 Jun 2011 07:59:21 +0000 (09:59 +0200)] 
gtk+-2.0, gtk+-3.0: Make TreeModel.ref_node and unref_node be virtual

Fixes bug 651872.

14 years agoMove custom_return_type_cname CCode attribute down to Method
Luca Bruno [Sat, 4 Jun 2011 16:21:08 +0000 (18:21 +0200)] 
Move custom_return_type_cname CCode attribute down to Method

14 years agogirparser: Threat union with registered GType as boxed type 2ea1145919c2fb341f03cc6c8642bc5e9eb0eb82
Luca Bruno [Sat, 4 Jun 2011 15:48:47 +0000 (17:48 +0200)] 
girparser: Threat union with registered GType as boxed type

14 years agox11: Add XGetInputFocus method to Display
Oliver Sauder [Sat, 4 Jun 2011 13:34:59 +0000 (15:34 +0200)] 
x11: Add XGetInputFocus method to Display

Fixes bug 651853.

14 years agogirparser: Handle array length index for return values
Luca Bruno [Fri, 3 Jun 2011 11:54:42 +0000 (13:54 +0200)] 
girparser: Handle array length index for return values

Fixes bug 651773.

14 years agoFix critical when calling generated enum to_string method
Jürg Billeter [Fri, 3 Jun 2011 09:59:47 +0000 (11:59 +0200)] 
Fix critical when calling generated enum to_string method

14 years agogirparser: Always parse gtype structs as records even if they're disguised
Luca Bruno [Fri, 3 Jun 2011 09:16:49 +0000 (11:16 +0200)] 
girparser: Always parse gtype structs as records even if they're disguised

14 years agogirparser: Ensure that cname of guessed accessor methods is correct
Luca Bruno [Fri, 3 Jun 2011 09:07:19 +0000 (11:07 +0200)] 
girparser: Ensure that cname of guessed accessor methods is correct

14 years agogirparser: Fix finding invoker method for virtual methods
Luca Bruno [Fri, 3 Jun 2011 08:48:15 +0000 (10:48 +0200)] 
girparser: Fix finding invoker method for virtual methods

14 years agoD-Bus: Require class prerequisite for dbus interfaces
Luca Bruno [Thu, 2 Jun 2011 18:08:24 +0000 (20:08 +0200)] 
D-Bus: Require class prerequisite for dbus interfaces

Fixes bug 651715.

14 years agocodegen: Remove incorrect check when returning arrays from async methods
Jürg Billeter [Wed, 1 Jun 2011 14:23:44 +0000 (16:23 +0200)] 
codegen: Remove incorrect check when returning arrays from async methods

14 years agocodegen: Clarify handling of self for closures
Jürg Billeter [Wed, 1 Jun 2011 13:47:29 +0000 (15:47 +0200)] 
codegen: Clarify handling of self for closures

14 years agoalsa: fix snd_pcm_write* and and snd_pcm_read*
Michael 'Mickey' Lauer [Tue, 31 May 2011 17:04:41 +0000 (19:04 +0200)] 
alsa: fix snd_pcm_write* and and snd_pcm_read*

14 years agoCollect used variables in postfix expression for flow analysis
Luca Bruno [Tue, 31 May 2011 14:33:40 +0000 (16:33 +0200)] 
Collect used variables in postfix expression for flow analysis

14 years agocairo: Add missing Device class and Surface methods
Robert Ancell [Tue, 31 May 2011 00:04:18 +0000 (10:04 +1000)] 
cairo: Add missing Device class and Surface methods

Fixes bug 651507.

14 years agoccode: Fix line breaking of string literals with octal escape sequences
Jürg Billeter [Mon, 30 May 2011 19:11:49 +0000 (21:11 +0200)] 
ccode: Fix line breaking of string literals with octal escape sequences

14 years agolinux: bind i2c and smbus subsystem
Michael 'Mickey' Lauer [Mon, 30 May 2011 19:02:55 +0000 (21:02 +0200)] 
linux: bind i2c and smbus subsystem

14 years agolinux: bind uinput (userspace input) subsystem
Michael 'Mickey' Lauer [Mon, 30 May 2011 19:00:58 +0000 (21:00 +0200)] 
linux: bind uinput (userspace input) subsystem

14 years agoalsa: bind PCM subsystem
Michael 'Mickey' Lauer [Mon, 30 May 2011 18:57:32 +0000 (20:57 +0200)] 
alsa: bind PCM subsystem

14 years agoposix: add inet_ntop(3) and corresponding constants
Michael 'Mickey' Lauer [Mon, 30 May 2011 18:44:53 +0000 (20:44 +0200)] 
posix: add inet_ntop(3) and corresponding constants

14 years agolinux: add misc. non-posix termios constants
Michael 'Mickey' Lauer [Mon, 30 May 2011 18:34:16 +0000 (20:34 +0200)] 
linux: add misc. non-posix termios constants

14 years agocodegen: Support passing real non-null structs as ref/out varargs
Luca Bruno [Mon, 30 May 2011 14:11:14 +0000 (16:11 +0200)] 
codegen: Support passing real non-null structs as ref/out varargs

Fixes bug 651441.

14 years agogirparser: Fix criticals when enums or error domains have no children
Luca Bruno [Sun, 29 May 2011 19:50:06 +0000 (21:50 +0200)] 
girparser: Fix criticals when enums or error domains have no children

14 years agogirparser: Threat non-boxed disguised records as compact classes 507697e0902f21b02356c3237207b935663ef3a5
Luca Bruno [Sun, 29 May 2011 19:43:37 +0000 (21:43 +0200)] 
girparser: Threat non-boxed disguised records as compact classes

Fixes bug 651408.

14 years agoglib-2.0: Simplify creation of GLib.Sequence
Jürg Billeter [Sun, 29 May 2011 19:43:00 +0000 (21:43 +0200)] 
glib-2.0: Simplify creation of GLib.Sequence

14 years agodova: Allow structs without default constructor
Jürg Billeter [Sun, 29 May 2011 19:30:30 +0000 (21:30 +0200)] 
dova: Allow structs without default constructor

14 years agocodegen: Fix definition of fields when array length cname is specified
Luca Bruno [Sun, 29 May 2011 17:05:00 +0000 (19:05 +0200)] 
codegen: Fix definition of fields when array length cname is specified

Fixes bug 588203.

14 years agoEnable control flow analysis for variable declarations
Luca Bruno [Sat, 28 May 2011 08:49:02 +0000 (10:49 +0200)] 
Enable control flow analysis for variable declarations

Fixes bug 651311.

14 years agoUse accept_children in DataType
Luca Bruno [Sun, 29 May 2011 07:23:41 +0000 (09:23 +0200)] 
Use accept_children in DataType

Fixes bug 566870.

14 years agotests: Add regression test for bug 609642
Luca Bruno [Sat, 28 May 2011 08:15:37 +0000 (10:15 +0200)] 
tests: Add regression test for bug 609642

14 years agotests: Shut vala warning against asynchronous/bug641182.vala
Luca Bruno [Sat, 28 May 2011 07:55:27 +0000 (09:55 +0200)] 
tests: Shut vala warning against asynchronous/bug641182.vala

14 years agocodegen: Do not initialize temp variable when getting delegate property
Luca Bruno [Sat, 28 May 2011 07:30:52 +0000 (09:30 +0200)] 
codegen: Do not initialize temp variable when getting delegate property

Fixes bug 641182.

14 years agocodegen: Fix closures in creation methods of classes without base class
Luca Bruno [Sat, 28 May 2011 07:04:25 +0000 (09:04 +0200)] 
codegen: Fix closures in creation methods of classes without base class

Fixes bug 642899.

14 years agogirparser: Skip elements with attribute private="1"
Luca Bruno [Fri, 27 May 2011 17:08:34 +0000 (19:08 +0200)] 
girparser: Skip elements with attribute private="1"

14 years agotests: Add -X -g to the compilation flags
Luca Bruno [Fri, 27 May 2011 14:29:51 +0000 (16:29 +0200)] 
tests: Add -X -g to the compilation flags

14 years agoFix checking for abstract/virtual methods inside structs
Luca Bruno [Thu, 26 May 2011 18:57:01 +0000 (20:57 +0200)] 
Fix checking for abstract/virtual methods inside structs

Fixes bug 643711.

14 years agogirparser: Fix criticals when autoreparenting methods due to aliases
Luca Bruno [Thu, 26 May 2011 18:45:00 +0000 (20:45 +0200)] 
girparser: Fix criticals when autoreparenting methods due to aliases

14 years agogirparser: Special case array of ctype GStrv as a null terminated array
Luca Bruno [Thu, 26 May 2011 18:41:28 +0000 (20:41 +0200)] 
girparser: Special case array of ctype GStrv as a null terminated array

Fixes bug 645139.

14 years agogtk+-2.0: Fix Gtk.Fixed.children type arguments
Luca Bruno [Thu, 26 May 2011 18:06:32 +0000 (20:06 +0200)] 
gtk+-2.0: Fix Gtk.Fixed.children type arguments

Fixes bug 646334.

14 years agocodegen: Open block for try statements
Luca Bruno [Thu, 26 May 2011 14:53:50 +0000 (16:53 +0200)] 
codegen: Open block for try statements

Fixes bug 651145.

14 years agocodewriter: Fix writing methods inside error domains
Luca Bruno [Thu, 26 May 2011 11:50:11 +0000 (13:50 +0200)] 
codewriter: Fix writing methods inside error domains

14 years agogirparser: Allow specifying type for property in metadata
Luca Bruno [Wed, 25 May 2011 21:58:45 +0000 (23:58 +0200)] 
girparser: Allow specifying type for property in metadata

14 years agoAlways set value_owned to false for pointers
Luca Bruno [Wed, 25 May 2011 09:44:33 +0000 (11:44 +0200)] 
Always set value_owned to false for pointers

Fixes bug 650993.

14 years agogirparser: Fix reparenting symbols to known containers
Luca Bruno [Wed, 25 May 2011 18:58:45 +0000 (20:58 +0200)] 
girparser: Fix reparenting symbols to known containers

14 years agogirparser: Autoreparent namespace methods before processing children
Luca Bruno [Wed, 25 May 2011 17:39:48 +0000 (19:39 +0200)] 
girparser: Autoreparent namespace methods before processing children

14 years agogirparser: Add sentinel metadata argument
Luca Bruno [Wed, 25 May 2011 16:35:08 +0000 (18:35 +0200)] 
girparser: Add sentinel metadata argument

14 years agocodegen: Forbid creating closures for delegates without target
Luca Bruno [Wed, 25 May 2011 10:48:32 +0000 (12:48 +0200)] 
codegen: Forbid creating closures for delegates without target

Fixes bug 645841.

14 years agocodegen: Guard pointer indirection of lengths when returning arrays
Luca Bruno [Tue, 24 May 2011 21:47:45 +0000 (23:47 +0200)] 
codegen: Guard pointer indirection of lengths when returning arrays

Fixes bug 638415.

14 years agogirparser: Add array_length_field metadata
Luca Bruno [Tue, 24 May 2011 18:28:24 +0000 (20:28 +0200)] 
girparser: Add array_length_field metadata

14 years agogirparser: Do not assume method with same name of property is a getter
Luca Bruno [Tue, 24 May 2011 18:10:05 +0000 (20:10 +0200)] 
girparser: Do not assume method with same name of property is a getter

14 years agogirparser: Add printf_format metadata
Luca Bruno [Tue, 24 May 2011 17:53:31 +0000 (19:53 +0200)] 
girparser: Add printf_format metadata

14 years agogirparser: Fix setting cname for fields of nested structs
Luca Bruno [Mon, 23 May 2011 21:52:02 +0000 (23:52 +0200)] 
girparser: Fix setting cname for fields of nested structs

Fixes bug 650768.

14 years agogtk+-3.0: Add FileFilter.set_filter_name and get_filter_name
Luca Bruno [Mon, 23 May 2011 17:29:50 +0000 (19:29 +0200)] 
gtk+-3.0: Add FileFilter.set_filter_name and get_filter_name

Vala does not allow specifying methods that do not override interface
abstract methods (get_name and set_name in this case from Gtk.Buildable).
Workaround the issue by renaming the methods as this feature isn't
going to be implemented anytime soon.

Fixes bug 647122.

14 years agogirwriter: Fix field callback of virtual async methods
Luca Bruno [Mon, 23 May 2011 17:16:53 +0000 (19:16 +0200)] 
girwriter: Fix field callback of virtual async methods

Fixes bug 646202.

14 years agogirwriter: Add self parameter to the callback of virtual methods field
Luca Bruno [Mon, 23 May 2011 16:43:49 +0000 (18:43 +0200)] 
girwriter: Add self parameter to the callback of virtual methods field

Fixes bug 650607.

14 years agocodegen: Fix criticals for interfaces without class prerequisite
Jürg Billeter [Sun, 22 May 2011 21:10:26 +0000 (23:10 +0200)] 
codegen: Fix criticals for interfaces without class prerequisite

Fixes bug 642804.

14 years agoglib-2.0: Simplify creation of GLib.Array
Jürg Billeter [Sat, 21 May 2011 15:44:34 +0000 (17:44 +0200)] 
glib-2.0: Simplify creation of GLib.Array

14 years agoDo not accept static as type modifier
Jürg Billeter [Sat, 21 May 2011 14:20:19 +0000 (16:20 +0200)] 
Do not accept static as type modifier

Fixes bug 650686.

14 years agoD-Bus: Fix use of Bus.get_proxy outside async methods
Jürg Billeter [Fri, 20 May 2011 21:54:49 +0000 (23:54 +0200)] 
D-Bus: Fix use of Bus.get_proxy outside async methods

Fixes bug 644275.

14 years agotests: Do not use xargs GNU extension in the test runner
Alexander Kojevnikov [Wed, 16 Mar 2011 06:41:10 +0000 (14:41 +0800)] 
tests: Do not use xargs GNU extension in the test runner

Fixes bug 644884.

14 years agotests: Search path for bash
Alexander Kojevnikov [Wed, 16 Mar 2011 05:34:40 +0000 (13:34 +0800)] 
tests: Search path for bash

Bash on BSDs is not in /bin.

Fixes bug 644876.

14 years agocodegen: Fix memory management in generic methods
Jürg Billeter [Fri, 20 May 2011 19:17:50 +0000 (21:17 +0200)] 
codegen: Fix memory management in generic methods

Fixes bug 648903.

14 years agoFix critical with invalid constant initializers
Jürg Billeter [Fri, 20 May 2011 18:15:01 +0000 (20:15 +0200)] 
Fix critical with invalid constant initializers

Fixes bug 640390.

14 years agoSupport arrays of void pointers
Jürg Billeter [Fri, 20 May 2011 16:21:10 +0000 (18:21 +0200)] 
Support arrays of void pointers

Fixes bug 600171.

14 years agocodegen: Fix copy of fixed arrays when elements require copy
Luca Bruno [Fri, 20 May 2011 13:18:55 +0000 (15:18 +0200)] 
codegen: Fix copy of fixed arrays when elements require copy

Fixes bug 613840.

14 years agocodegen: Drop ccomma expressions in copy_value
Luca Bruno [Fri, 20 May 2011 12:57:50 +0000 (14:57 +0200)] 
codegen: Drop ccomma expressions in copy_value

14 years agogirparser: Fix adding error types to functions
Luca Bruno [Thu, 19 May 2011 20:56:05 +0000 (22:56 +0200)] 
girparser: Fix adding error types to functions

Fixes a regression of commit 0d5af7406b390f937acc1 accidentally
missing the check on throws_string.

14 years agocodegen: Discourage copying delegates with target
Jürg Billeter [Wed, 18 May 2011 20:47:25 +0000 (22:47 +0200)] 
codegen: Discourage copying delegates with target

Target destroy notify cannot be copied, which means that memory
management will often not work as expected. Use ownership transfer,
unowned target variable, or extra closure instead.

14 years agogirparser: Allow specifying the error thrown from a function in metadata
Luca Bruno [Wed, 18 May 2011 09:15:28 +0000 (11:15 +0200)] 
girparser: Allow specifying the error thrown from a function in metadata

14 years agogirparser: Make type arguments be owned by default
Luca Bruno [Wed, 18 May 2011 08:44:14 +0000 (10:44 +0200)] 
girparser: Make type arguments be owned by default

The GIR format has no information on how to transfer ownership
of type arguments. Thus we assume that type arguments are unowned
only if transfer-ownership is "container".

14 years agocodegen: Don't hardcode C identifiers in return_out_parameter
Luca Bruno [Tue, 17 May 2011 15:07:12 +0000 (17:07 +0200)] 
codegen: Don't hardcode C identifiers in return_out_parameter

14 years agogtk+-3.0: Fix gtk_style_context_get and gtk_style_context_get_style
Jürg Billeter [Tue, 17 May 2011 14:49:02 +0000 (16:49 +0200)] 
gtk+-3.0: Fix gtk_style_context_get and gtk_style_context_get_style

14 years agogtk+-3.0: Fix GtkWidget::grab_broken_event binding
Jürg Billeter [Tue, 17 May 2011 10:28:36 +0000 (12:28 +0200)] 
gtk+-3.0: Fix GtkWidget::grab_broken_event binding

14 years agogtk+-3.0: Fix gtk_widget_size_allocate binding
Jürg Billeter [Tue, 17 May 2011 10:20:11 +0000 (12:20 +0200)] 
gtk+-3.0: Fix gtk_widget_size_allocate binding

Fixes bug 650296.

14 years agoApply `new' modifier to signal default handlers
Jürg Billeter [Tue, 17 May 2011 10:12:30 +0000 (12:12 +0200)] 
Apply `new' modifier to signal default handlers

14 years agogtk+-3.0: Add GtkWidgetClass.activate_signal binding
Jürg Billeter [Tue, 17 May 2011 10:09:15 +0000 (12:09 +0200)] 
gtk+-3.0: Add GtkWidgetClass.activate_signal binding

14 years agoGType: Connect default signal handlers in interfaces
Luca Bruno [Mon, 16 May 2011 14:08:41 +0000 (16:08 +0200)] 
GType: Connect default signal handlers in interfaces

14 years agoGType: Support virtual signals in interfaces
Luca Bruno [Mon, 16 May 2011 13:51:29 +0000 (15:51 +0200)] 
GType: Support virtual signals in interfaces

Fixes bug 642809.

14 years agogdk-3.0: Fix gdk_window_destroy binding
Jürg Billeter [Mon, 16 May 2011 11:53:55 +0000 (13:53 +0200)] 
gdk-3.0: Fix gdk_window_destroy binding

14 years agogtk+-3.0: Fix gtk_widget_set_window
Jürg Billeter [Mon, 16 May 2011 10:56:32 +0000 (12:56 +0200)] 
gtk+-3.0: Fix gtk_widget_set_window

14 years agogtk+-3.0: Fix gtk_*_get_preferred_* bindings
Jürg Billeter [Mon, 16 May 2011 10:54:53 +0000 (12:54 +0200)] 
gtk+-3.0: Fix gtk_*_get_preferred_* bindings

Fixes bug 650295.

14 years agolibrsvg-2.0: Add librsvg/rsvg-cairo.h header to cairo methods
Robert Ancell [Sun, 15 May 2011 21:01:20 +0000 (23:01 +0200)] 
librsvg-2.0: Add librsvg/rsvg-cairo.h header to cairo methods

Fixes bug 642649.

14 years agocodewriter: Write cheader_filename for methods not in a Namespace
Luca Bruno [Sun, 15 May 2011 20:59:27 +0000 (22:59 +0200)] 
codewriter: Write cheader_filename for methods not in a Namespace

14 years agocodegen: Use store_value when assigning the new value to out arguments
Luca Bruno [Sun, 15 May 2011 13:19:09 +0000 (15:19 +0200)] 
codegen: Use store_value when assigning the new value to out arguments

This fixes:
 * Assigning the _size variable for arrays (was missing)
 * Assigning the delegate destroy notify (was missing)
 * Array parameters with no length (crashed the compiler)

14 years agocodegen: Rename store_variable to store_value and make it public
Luca Bruno [Sun, 15 May 2011 12:42:35 +0000 (14:42 +0200)] 
codegen: Rename store_variable to store_value and make it public

14 years agocodegen: Add GLibValue.ctype to be used with lvalues
Luca Bruno [Sun, 15 May 2011 12:30:12 +0000 (14:30 +0200)] 
codegen: Add GLibValue.ctype to be used with lvalues

Cast the assigned rvalue to the ctype of the lvalue.

14 years agocodegen: Fix get_parameter_cvalue to consider no_array_length
Luca Bruno [Sun, 15 May 2011 12:47:01 +0000 (14:47 +0200)] 
codegen: Fix get_parameter_cvalue to consider no_array_length

14 years agogirparser: Drop the parameter before the ellipsis having first_ prefix
Luca Bruno [Sat, 14 May 2011 17:47:59 +0000 (19:47 +0200)] 
girparser: Drop the parameter before the ellipsis having first_ prefix

14 years agolinux: Fix InotifyFlags and InotifyMaskFlags bindings
Duncan Mac-Vicar P [Sat, 14 May 2011 10:27:28 +0000 (12:27 +0200)] 
linux: Fix InotifyFlags and InotifyMaskFlags bindings

Fixes bug 650165.

14 years agolinux: Add has_type_id=false to structs and enums
Luca Bruno [Fri, 13 May 2011 11:20:09 +0000 (13:20 +0200)] 
linux: Add has_type_id=false to structs and enums

Fixes bug 650069.

14 years agogirparser: Handle unions inside boxed classes
Luca Bruno [Thu, 12 May 2011 17:19:53 +0000 (19:19 +0200)] 
girparser: Handle unions inside boxed classes

Fixes bug 649760.