]> git.ipfire.org Git - thirdparty/vala.git/log
thirdparty/vala.git
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.

14 years agoglib-2.0: Fix Log.set_fatal_mask and set_always_fatal bindings a92b2cf1eb119d259abe5ce63898450060c46928
Sam Thursfield [Thu, 12 May 2011 14:00:26 +0000 (16:00 +0200)] 
glib-2.0: Fix Log.set_fatal_mask and set_always_fatal bindings

Partially fixes bug 649644.

14 years agocodegen: Don't spit out critical when returning unowned delegate
Luca Bruno [Thu, 12 May 2011 13:53:26 +0000 (15:53 +0200)] 
codegen: Don't spit out critical when returning unowned delegate

14 years agoxcb: Add missing methods and enhance Connection bindings
Nicolas Bruguier [Thu, 25 Mar 2010 19:48:14 +0000 (20:48 +0100)] 
xcb: Add missing methods and enhance Connection bindings

Fixes bug 613954.

14 years agogio-2.0: Use out uint8[] for File.load_* methods
Luca Bruno [Wed, 11 May 2011 20:23:13 +0000 (22:23 +0200)] 
gio-2.0: Use out uint8[] for File.load_* methods

Fixes bug 594376.

14 years agocodegen: Fix accessing variables without delegate target
Luca Bruno [Wed, 11 May 2011 09:43:23 +0000 (11:43 +0200)] 
codegen: Fix accessing variables without delegate target

14 years agocodegen: Don't use simple struct initializer if local is a GValue
Luca Bruno [Wed, 11 May 2011 07:47:51 +0000 (09:47 +0200)] 
codegen: Don't use simple struct initializer if local is a GValue

Fixes bug 621176.

14 years agogirparser: Set no_array_length if metadata specifies array argument
Luca Bruno [Tue, 10 May 2011 15:21:35 +0000 (17:21 +0200)] 
girparser: Set no_array_length if metadata specifies array argument

14 years agogmodule-2.0: Add gir_namespace and gir_version information
Luca Bruno [Tue, 10 May 2011 14:47:31 +0000 (16:47 +0200)] 
gmodule-2.0: Add gir_namespace and gir_version information

14 years agogirparser: Fix getting the cname of the constructor parent class
Luca Bruno [Tue, 10 May 2011 14:45:31 +0000 (16:45 +0200)] 
girparser: Fix getting the cname of the constructor parent class

14 years agogio-2.0, gio-unix-2.0, gdk-pixbuf-2.0: Fix cancellable parameters
Luca Bruno [Tue, 10 May 2011 14:34:31 +0000 (16:34 +0200)] 
gio-2.0, gio-unix-2.0, gdk-pixbuf-2.0: Fix cancellable parameters

Fixes bug 649873.

14 years agocodegen: Remove unused variable
Luca Bruno [Mon, 9 May 2011 20:50:27 +0000 (22:50 +0200)] 
codegen: Remove unused variable

14 years agocodegen: Fix regression when capturing an unowned delegate variable
Luca Bruno [Mon, 9 May 2011 20:27:22 +0000 (22:27 +0200)] 
codegen: Fix regression when capturing an unowned delegate variable

14 years agocodegen: Use store_field for object initializer
Luca Bruno [Sun, 8 May 2011 14:16:53 +0000 (16:16 +0200)] 
codegen: Use store_field for object initializer

14 years agocodegen: Get the instance using get_local_cvalue for object creation
Luca Bruno [Sun, 8 May 2011 13:43:24 +0000 (15:43 +0200)] 
codegen: Get the instance using get_local_cvalue for object creation

14 years agocodegen: Use store_field in generate_struct_copy_function
Luca Bruno [Sun, 8 May 2011 08:32:01 +0000 (10:32 +0200)] 
codegen: Use store_field in generate_struct_copy_function

14 years agoGAsync: Use full result of copy_value in generate_async_function
Luca Bruno [Sun, 8 May 2011 08:20:46 +0000 (10:20 +0200)] 
GAsync: Use full result of copy_value in generate_async_function

14 years agocodegen: Use store_field in add_struct_copy_function
Luca Bruno [Sun, 8 May 2011 07:49:27 +0000 (09:49 +0200)] 
codegen: Use store_field in add_struct_copy_function

14 years agocodegen: Save some block data members for captured parameters
Luca Bruno [Sun, 8 May 2011 06:54:39 +0000 (08:54 +0200)] 
codegen: Save some block data members for captured parameters

14 years agocodegen: Use TargetValue methods in capture_parameter
Luca Bruno [Sun, 8 May 2011 06:42:07 +0000 (08:42 +0200)] 
codegen: Use TargetValue methods in capture_parameter

Fixes capturing arrays with no array length and delegates with no target.

14 years agocodegen: Fix result of copy_value for arrays
Luca Bruno [Sun, 8 May 2011 06:41:26 +0000 (08:41 +0200)] 
codegen: Fix result of copy_value for arrays

14 years agocodegen: Unowned delegates can't become owned when captured or in coroutine
Luca Bruno [Sun, 8 May 2011 06:32:14 +0000 (08:32 +0200)] 
codegen: Unowned delegates can't become owned when captured or in coroutine

From a semantic view point it's neither possible to transfer ownership
to an unowned delegate nor destroy its target.

14 years agocodegen: Fix transform_value result when target_type is null
Luca Bruno [Sat, 7 May 2011 19:58:14 +0000 (21:58 +0200)] 
codegen: Fix transform_value result when target_type is null

14 years agocodegen: Get rid of transform_expression
Luca Bruno [Sat, 7 May 2011 17:53:21 +0000 (19:53 +0200)] 
codegen: Get rid of transform_expression

It was not possible to return any extra temporary variable from
transform_expression for compound types like arrays or delegates,
thus producing subtle bugs.

14 years agocodegen: Use transform_value instead of transform_expression
Luca Bruno [Sat, 7 May 2011 17:44:51 +0000 (19:44 +0200)] 
codegen: Use transform_value instead of transform_expression

14 years agocodegen: Drop Expression dependency from transform_value
Luca Bruno [Sat, 7 May 2011 15:22:38 +0000 (17:22 +0200)] 
codegen: Drop Expression dependency from transform_value

14 years agocodegen: Drop Expression dependency from generate_delegate_wrapper
Luca Bruno [Sat, 7 May 2011 15:13:46 +0000 (17:13 +0200)] 
codegen: Drop Expression dependency from generate_delegate_wrapper

14 years agocodegen: Start porting transform_expression to transform_value
Luca Bruno [Sat, 7 May 2011 13:21:48 +0000 (15:21 +0200)] 
codegen: Start porting transform_expression to transform_value

14 years agocodegen: Get rid of get_ref_cexpression
Luca Bruno [Sat, 7 May 2011 09:42:49 +0000 (11:42 +0200)] 
codegen: Get rid of get_ref_cexpression

14 years agocodegen: Use copy_value instead of get_ref_cexpression
Luca Bruno [Sat, 7 May 2011 09:42:03 +0000 (11:42 +0200)] 
codegen: Use copy_value instead of get_ref_cexpression

14 years agocodegen: Drop Expression dependency in copy_value
Luca Bruno [Sat, 7 May 2011 09:15:23 +0000 (11:15 +0200)] 
codegen: Drop Expression dependency in copy_value

14 years agocodegen: Introduce non_null in GLibValue
Luca Bruno [Sat, 7 May 2011 09:10:59 +0000 (11:10 +0200)] 
codegen: Introduce non_null in GLibValue

14 years agocodegen: Return TargetValue from copy_value
Luca Bruno [Sat, 7 May 2011 08:19:01 +0000 (10:19 +0200)] 
codegen: Return TargetValue from copy_value

14 years agocodegen: Remove unused variable in gtype module
Luca Bruno [Thu, 5 May 2011 21:06:10 +0000 (23:06 +0200)] 
codegen: Remove unused variable in gtype module

14 years agocodegen: Replace trivial get_ref_cexpression calls with copy_value
Luca Bruno [Thu, 5 May 2011 20:41:46 +0000 (22:41 +0200)] 
codegen: Replace trivial get_ref_cexpression calls with copy_value

14 years agogtk+-3.0: Fix GtkBorder, gtk_icon_info_*, gtk_style_context_* bindings
Jürg Billeter [Thu, 5 May 2011 19:09:58 +0000 (21:09 +0200)] 
gtk+-3.0: Fix GtkBorder, gtk_icon_info_*, gtk_style_context_* bindings

Fixes bug 649495.

14 years agogirparser: Merge all nodes that collide with a property and are getters
Luca Bruno [Thu, 5 May 2011 17:22:16 +0000 (19:22 +0200)] 
girparser: Merge all nodes that collide with a property and are getters

14 years agogirparser: Add null check when setting the alias cname
Luca Bruno [Thu, 5 May 2011 16:57:12 +0000 (18:57 +0200)] 
girparser: Add null check when setting the alias cname

14 years agocodegen: Complete porting of GSignal and GType modules to use ccode
Luca Bruno [Thu, 5 May 2011 15:13:51 +0000 (17:13 +0200)] 
codegen: Complete porting of GSignal and GType modules to use ccode

14 years agocodegen: Fix the transformation of elseif cascades using ccode
Luca Bruno [Thu, 5 May 2011 15:18:32 +0000 (17:18 +0200)] 
codegen: Fix the transformation of elseif cascades using ccode

14 years agoccodegen: Port the remaining code to use the ccode builder
Luca Bruno [Thu, 5 May 2011 12:27:49 +0000 (14:27 +0200)] 
ccodegen: Port the remaining code to use the ccode builder

14 years agocodegen: Fix regression when generating get_property
Luca Bruno [Thu, 5 May 2011 13:38:45 +0000 (15:38 +0200)] 
codegen: Fix regression when generating get_property

The regression was introduced by b481d032269abe0d8bc1c538b due to
the wrong declaration of boxed and length variables.

14 years agocodegen: Get rid of get_unref_expression
Luca Bruno [Wed, 4 May 2011 20:43:53 +0000 (22:43 +0200)] 
codegen: Get rid of get_unref_expression

14 years agocodegen: Use destroy_value in emit_simple_assignment
Luca Bruno [Wed, 4 May 2011 20:43:16 +0000 (22:43 +0200)] 
codegen: Use destroy_value in emit_simple_assignment

14 years agoD-Bus: Use destroy_local instead of get_unref_expression
Luca Bruno [Wed, 4 May 2011 20:40:04 +0000 (22:40 +0200)] 
D-Bus: Use destroy_local instead of get_unref_expression

14 years agoGObject: Use destroy_value in add_get_property_function
Luca Bruno [Wed, 4 May 2011 20:33:26 +0000 (22:33 +0200)] 
GObject: Use destroy_value in add_get_property_function

14 years agoGObject: Use ccode in add_get_property_function
Luca Bruno [Wed, 4 May 2011 20:32:00 +0000 (22:32 +0200)] 
GObject: Use ccode in add_get_property_function

14 years agoGError: Use destroy_value in return_with_exception
Luca Bruno [Wed, 4 May 2011 20:16:58 +0000 (22:16 +0200)] 
GError: Use destroy_value in return_with_exception

14 years agoGAsync: Use destroy_local and destroy_parameter in generate_free_function
Luca Bruno [Wed, 4 May 2011 20:04:53 +0000 (22:04 +0200)] 
GAsync: Use destroy_local and destroy_parameter in generate_free_function

14 years agocodegen: Use ccode in generate_free_function of the gasync module
Luca Bruno [Wed, 4 May 2011 19:56:15 +0000 (21:56 +0200)] 
codegen: Use ccode in generate_free_function of the gasync module

14 years agocodegen: Remove useless append_function in gasync module
Luca Bruno [Wed, 4 May 2011 19:46:23 +0000 (21:46 +0200)] 
codegen: Remove useless append_function in gasync module

14 years agocodegen: Use destroy_value in destroy function wrappers
Luca Bruno [Wed, 4 May 2011 09:48:00 +0000 (11:48 +0200)] 
codegen: Use destroy_value in destroy function wrappers

14 years agocodegen: Use destroy_value in method calls
Luca Bruno [Wed, 4 May 2011 09:34:52 +0000 (11:34 +0200)] 
codegen: Use destroy_value in method calls

14 years agocodegen: Drop destroy_variable in favor of destroy_value
Luca Bruno [Wed, 4 May 2011 09:02:28 +0000 (11:02 +0200)] 
codegen: Drop destroy_variable in favor of destroy_value

14 years agocodegen: Add array_length_cexpr in GLibValue
Luca Bruno [Wed, 4 May 2011 08:46:36 +0000 (10:46 +0200)] 
codegen: Add array_length_cexpr in GLibValue

14 years agocodegen: Use get_array_length_cvalue to get the product of all dimensions
Luca Bruno [Wed, 4 May 2011 07:56:21 +0000 (09:56 +0200)] 
codegen: Use get_array_length_cvalue to get the product of all dimensions

14 years agocodegen: Add copy_value for symmetry with destroy_value
Luca Bruno [Tue, 3 May 2011 21:02:01 +0000 (23:02 +0200)] 
codegen: Add copy_value for symmetry with destroy_value

14 years agocodegen: Use store_local and get_local_cvalue in postfix expressions
Luca Bruno [Tue, 3 May 2011 13:56:14 +0000 (15:56 +0200)] 
codegen: Use store_local and get_local_cvalue in postfix expressions

14 years agogirparser: Fix adding Cancellable as last parameter
Luca Bruno [Mon, 2 May 2011 19:20:58 +0000 (21:20 +0200)] 
girparser: Fix adding Cancellable as last parameter

14 years agogirparser: Add get_cname and get_lower_case_cprefix to Node
Luca Bruno [Mon, 2 May 2011 19:20:47 +0000 (21:20 +0200)] 
girparser: Add get_cname and get_lower_case_cprefix to Node

14 years agoMark the inner expression of unary increment/decrement to be lvalue
Luca Bruno [Mon, 2 May 2011 13:31:43 +0000 (15:31 +0200)] 
Mark the inner expression of unary increment/decrement to be lvalue

14 years agoMark the inner expression of postfix expression to be lvalue
Luca Bruno [Mon, 2 May 2011 13:25:39 +0000 (15:25 +0200)] 
Mark the inner expression of postfix expression to be lvalue

14 years agogirparser: Only process static methods of root namespace
Luca Bruno [Sun, 1 May 2011 07:27:24 +0000 (09:27 +0200)] 
girparser: Only process static methods of root namespace

14 years agogirparser: Do not add default constructor to compact classes
Luca Bruno [Sun, 1 May 2011 07:16:43 +0000 (09:16 +0200)] 
girparser: Do not add default constructor to compact classes

14 years agoglib-2.0: Add Node n_children() method and fix nth_child()
Luca Bruno [Sun, 1 May 2011 06:50:50 +0000 (08:50 +0200)] 
glib-2.0: Add Node n_children() method and fix nth_child()

Fixes bug 649052.

14 years agocodegen: Use store_field for struct initializer
Luca Bruno [Sat, 30 Apr 2011 19:54:19 +0000 (21:54 +0200)] 
codegen: Use store_field for struct initializer

14 years agocodegen: Cast to field or parameter ctype on assignment
Luca Bruno [Sat, 30 Apr 2011 19:53:23 +0000 (21:53 +0200)] 
codegen: Cast to field or parameter ctype on assignment

14 years agoForbid pointer indirection for void type
Luca Bruno [Sat, 30 Apr 2011 15:42:00 +0000 (17:42 +0200)] 
Forbid pointer indirection for void type

Fixes bug 648890.

14 years agovte: Fix Terminal.fork_command_full binding
Luca Bruno [Sat, 30 Apr 2011 15:38:10 +0000 (17:38 +0200)] 
vte: Fix Terminal.fork_command_full binding

Based on patch by Jacques-Pascal Deplaix.

Fixes bug 649004.

14 years agogdk-3.0: Mark Device.grab cursor parameter to be nullable
Luca Bruno [Sat, 30 Apr 2011 15:33:28 +0000 (17:33 +0200)] 
gdk-3.0: Mark Device.grab cursor parameter to be nullable

Fixes bug 649011.

14 years agogdk-2.0, gdk-3.0: Fix Keymap.get_entries_for_keycode binding
Luca Bruno [Sat, 30 Apr 2011 15:28:15 +0000 (17:28 +0200)] 
gdk-2.0, gdk-3.0: Fix Keymap.get_entries_for_keycode binding

Fixes bug 649013.

14 years agocodegen: Fix array ownership transfer
Luca Bruno [Thu, 17 Mar 2011 17:29:28 +0000 (18:29 +0100)] 
codegen: Fix array ownership transfer

14 years agocodegen: Store array_null_terminated information into GLibValue
Luca Bruno [Wed, 16 Mar 2011 14:02:31 +0000 (15:02 +0100)] 
codegen: Store array_null_terminated information into GLibValue