Commit graph

3923 commits

Author SHA1 Message Date
Thibault Saunier
87d4d29dfd Some fixes to support updated gstreamer-sharp (#29)
* parameters: Ignore UserData arguments to compute if has_optional

Those are never present in the prototypes and thus should not be taken
into account to see if prototype alternative has to be implemented.

* Fix generation of interface properties

* generator: Enhance the way we check if a field is padding

First check that fields are private to see if a field is padding,
in GstVideo we have public field staring with padding
(VideoAlignment.padding_top/bottomg/left/right) and thus need to be
taken into account to compare structures.

Also add a way for user to specify that the field is padding with
the new `is-padding` attribute.

In GStreamer padding fields usually look like __gst_reservedX, meaning
that they go unnoticed by previous code.
2017-08-24 15:20:05 +02:00
stil
b6260e8865 Include debugging symbols in nupkg (#26) 2017-02-05 07:08:24 +01:00
stil
5063385d16 AppVeyor integration (#25)
* Fix minor bugs and improve code formatting of Python build tool

* Prepend $PATH to give it higher priority

* Invoke WiX tools through variable to ensure correct path

* Make build script ensure pacman dependencies are installed

* pacman -Sy causes dependency break on AppVeyor

* Skip deps version check and don't show progress bar
2017-02-05 07:07:05 +01:00
Mikkel Kruse Johnsen
af3956b2dd Updated version to 3.22.6 2017-02-02 10:19:23 +01:00
Mikkel Kruse Johnsen
e2bf48f8ce Add Deprecated method Create in CairoHelper 2017-01-26 13:51:53 +01:00
Mikkel Kruse Johnsen
9af0176bd2 Updated to 3.22. Need to fix GtkMenu and Popup 2017-01-20 13:10:48 +01:00
MIkkel Kruse Johnsen
42982bd922 Merge pull request #23 from grendello/text_rendered_properties
Bind a number of Gtk.CellRendererTextProperties
2016-12-19 08:21:15 +01:00
MIkkel Kruse Johnsen
487fe38df2 Merge pull request #22 from grendello/object_setproperty_public
Make GLib.Object.{Set,Get}Property public
2016-12-19 08:20:25 +01:00
Marek Habersack
ccbd9ca6a2 Bind a number of Gtk.CellRendererTextProperties
This binds all the '*-set' properties. The properties are useful when one
wants to restore a previously set property to its initial value. For instance,
when setting the ForegroundRgba property the 'foreground-set' property is
automatically set to 'true' but when we assign 'Gdk.RGBA.Zero' to ForegroundRgba then the
'foreground-set' property is NOT set to false and the foreground becomes black instead
of the default one.
2016-12-18 23:18:54 +01:00
Marek Habersack
3d99318871 Make GLib.Object.{Set,Get}Property public
The two methods are useful when we don't bind a property or the user
needs to set a custom property.
2016-12-18 23:17:12 +01:00
MIkkel Kruse Johnsen
be3214dd29 Merge pull request #20 from grendello/fix_array_usage
Fix System.Array usage in {List,Tree}Store
2016-12-18 10:18:31 +01:00
MIkkel Kruse Johnsen
669efed8a2 Merge pull request #21 from grendello/fix_actionmap
Fix the ActionMap.AddActionEntries API
2016-12-18 10:17:31 +01:00
Marek Habersack
5e164b4340 Fix the ActionMap.AddActionEntries API
The 'entries' parameter is an array.
2016-12-18 00:09:43 +01:00
Marek Habersack
2c82d95b58 Fix System.Array usage in {List,Tree}Store
{List,Tree}Store.AppendValues overloads which take System.Array as their
'values' parameter incorrectly pass the array down to SetValues. The latter
expects a 'params object[]' array of parameters but passing an instance of
System.Array to such method will NOT pass the contents of System.Array instance
into the 'params' method as separate members of the parms array. It will instead
box System.Array and the params method will receive one parameter of type
System.Array instead of X parameters of various types. This affects the
following example code:

   var store = new TreeStore (typeof (string), typeof (int));
   store.AppendValues ("One", 1);

If the column configured to retrieve the 'string' value reads data from this
store it will instead get an instance of System.Array and the node displayed by
the TreeView will have no text, won't be clickable etc.

The fix implemented here is to "explode" the System.Array into a separate array
of the 'object[]' type.

The 'TreeStore.AppendValues (params object[] values)' overload no longer calls
the 'TreeStore.Appendvalues (Array values)' overload since the indirection only
wastes time and memory. It now directly calls `SetValues`.
2016-12-18 00:08:05 +01:00
MIkkel Kruse Johnsen
048ebea24b Merge pull request #19 from ASoftTech/master
Pull request for a few different changes
2016-10-18 11:27:22 +02:00
grbd
43c86d7fe6 updated patches for 3.22 2016-10-17 20:20:23 +01:00
grbd
9c00e25617 Added some code for trying out the build of Gtksharp using dotnet cli from .Net core 2016-10-17 20:09:26 +01:00
grbd
c45e3558b6 Rewrite of the nuget package genertion code, also included the glue libs 2016-10-17 20:05:48 +01:00
MIkkel Kruse Johnsen
3a80531bdb Merge pull request #18 from grbd/Nuget
Added python scripts for building NuGet packages via windows or linux
2016-10-01 10:30:15 +02:00
grbd
99a859932e Added python scripts for building NuGet packages via windows or linux 2016-10-01 02:55:46 +01:00
Mikkel Kruse Johnsen
728c1f5aa7 Try to wrap NativeDialog for Windows 2016-07-25 14:40:26 +02:00
Mikkel Kruse Johnsen
182aa7e702 Updated to 3.20.6 2016-07-25 14:39:55 +02:00
Mikkel Kruse Johnsen
f861aeb27b Merge from upstream 2016-07-25 14:39:39 +02:00
Mikkel Kruse Johnsen
9758c7ab8a Merge branch 'master' of github.com:openmedicus/gtk-sharp 2016-07-25 08:40:13 +02:00
Mikkel Kruse Johnsen
8e355c73d3 Updated to 3.20.6 and included SimpleAction 2016-07-25 08:40:09 +02:00
MIkkel Kruse Johnsen
fe849a7e90 Merge pull request #16 from grbd/master
Small change to allow for building against latest gtk3
2016-07-25 08:21:14 +02:00
grbd
7918531657 Small change to allow for building against latest gtk3 2016-06-30 17:26:16 +01:00
Mikkel Kruse Johnsen
b898323bba Added StyleProviderPriority 2016-06-08 14:39:17 +02:00
Mikkel Kruse Johnsen
7236eb3fa7 Upstream patches 2016-06-08 08:56:55 +02:00
Mikkel Kruse Johnsen
8134f48a5a Generate 'rgba' property 2016-05-17 10:51:59 +02:00
Mikkel Kruse Johnsen
110b73dbb7 Generate GdkColor properties 2016-05-17 09:23:03 +02:00
Mikkel Kruse Johnsen
c1daeff0eb Made alias Symbol GdkRgba to GdkRGBA. This will provide properties of the type GdkRGBA in Gtk. 2016-05-17 08:59:19 +02:00
Mikkel Kruse Johnsen
36b6b713e6 Updated to Gtk+ 3.20.4 2016-05-11 09:50:01 +02:00
MIkkel Kruse Johnsen
c6614375db Merge pull request #8 from cra0zy/fixialogcreation
Fix Dialog creation
2016-05-09 10:28:54 +02:00
cra0zy
5e75d001c8 Fix Dialog creation 2016-05-06 10:15:22 +02:00
MIkkel Kruse Johnsen
f0872700a7 Merge pull request #7 from nyxiscoo1/mleakfix
Fixed memory leak when calling Application.Invoke and GLibSynchronizationContext from non GUI thread
2016-02-17 07:25:48 +01:00
nyx
114899f46e Fixed memory leak when scheduling timeout and idle callbacks 2016-02-17 00:02:47 +03:00
MIkkel Kruse Johnsen
28ba4876e3 Merge pull request #3 from orion75/gtk-sharp-3-14-branch
gtk: Fix return types for null_term_array* methods in AboutDialog
2015-12-02 10:40:51 +01:00
Mikkel Kruse Johnsen
0b38a45627 Update to 3.18.5. Downgrade API tp 3.0.0.0. So that you don't have to change Mono Developer project everytime you update gtk-sharp. We should update API to 4.0.0.0 when gtk+-4.0.0 is out. 2015-12-02 09:22:51 +01:00
Mikkel Kruse Johnsen
2c5ba65fa7 Updated to gtk+ 3.18.5 2015-12-02 09:20:44 +01:00
Mikkel Kruse Johnsen
b0d741fce4 Use PACKAGE_VERSION 3.0 2015-11-10 15:29:21 +01:00
Mikkel Kruse Johnsen
a8d9a119d8 Update to Gtk 3.18.2
Had to change gapi2xml.pl to use the new properties method/macro in gtkwindow.c
- Issue, "invisible-chars" and "inner-border" is generated twice in gtkentry.c

Made patch to gwin32registrykey to use little endian by default. So Windows om ARM may fail.
2015-11-10 11:37:34 +01:00
Harol Alfonso Reina
4c65e70975 gtk: Fix return types for null_term_array* methods in AboutDialog
this corrects the properties Authors, Artists and Documenters
2015-11-06 13:46:10 -05:00
MIkkel Kruse Johnsen
62b9345c7f Merge pull request #2 from orion75/gtk-sharp-3-14-branch
Gtk sharp 3 14 branch
2015-10-30 08:23:19 +01:00
Harol Alfonso Reina
c099ec1fac build: Post-release version bump to 3.14.0, Update API_VERSION, Update PACKAGE_VERSION 2015-10-29 12:31:21 -05:00
Harol Alfonso Reina
c2fd7af4b4 Changed type of property BackgroundGdk in gtk-api.raw 2015-10-29 12:28:34 -05:00
Martin Kupec
a76f60df81 Add possibility to pick glib type name for custom classes
This patch adds TypeName attribute which can be used on custom class
derived from GLib.Object in order to set GLib type name of the class.
2015-10-29 12:25:16 -05:00
Martin Kupec
5a7a0f7a3c Fix properties setting when constructing GLib.Objects
This is a proper fix of old FIXME.
It defers setting of managed properties during GLib.Object construction
until we have paired Managed and Unmanaged objects.
2015-10-29 12:14:55 -05:00
Harol Alfonso Reina Herrera
b20872aa41 Revert: Seperate pkgconfig version from package version 2015-10-29 11:43:03 -05:00
Harol Alfonso Reina Herrera
018b624236 Create gtkdotnet Project in Solution 2015-10-29 11:25:24 -05:00