Commit Graph

3928 Commits

Author SHA1 Message Date
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
Harol Alfonso Reina Herrera
c7dfa5decc Update Solution to Visual Studio 2013 2015-10-29 11:19:50 -05:00
Harol Alfonso Reina Herrera
751a5ceed5 Update References file's in csproj 2015-10-29 10:10:23 -05:00
Harol Alfonso Reina Herrera
16310b15a0 Update csproj TargetFrameworkVersion 2015-10-29 09:24:44 -05:00
Antonius Riha
d98f6c3421 csproj ToolsVersion to 4.0 2015-10-29 08:48:49 -05:00
Mikkel Kruse Johnsen
542be14153 Constructor 2015-09-04 13:56:56 +02:00
Mikkel Kruse Johnsen
e34a6d7606 Return false if no border set 2015-09-04 13:21:17 +02:00
Mikkel Kruse Johnsen
e1cba4116a Rename RowActivated to ListRowActivated for ListBox 2015-09-04 12:08:06 +02:00
Mikkel Kruse Johnsen
95f59a7b5a Fix IScrollable and List class 2015-09-04 11:54:19 +02:00
Mikkel Kruse Johnsen
6774f0b71d Track 3.16.6 2015-09-04 11:15:29 +02:00
Mikkel Kruse Johnsen
120b3ce9cd Merge remote-tracking branch 'upstream/master' 2015-07-24 07:42:55 +02:00
MIkkel Kruse Johnsen
4e1224b83c Merge pull request #1 from nyxiscoo1/master
Removed CssProvider reference to unavailable interface
2015-07-24 07:34:47 +02:00
nyx
eb227d8598 Removed CssProvider reference to unavailable interface GtkStyleProviderPrivate 2015-07-23 23:40:17 +03:00
Stephan Sundermann
89b2dae6d8 sample: Fix compilation of opaque and val tests on osx
Using regular expressions for targets is not supported, that's why now a
generated-stamp is used to determine whether the files have been
generated. This bug might not be related to osx but newer automake
versions at least >= 1.14.1
2015-05-25 17:11:47 +02:00
Bertrand Lorentz
1dd10af290 Add a .gitattributes file to have git keep CRLF endings in *.sln files 2015-05-25 17:03:31 +02:00
Bertrand Lorentz
5422daaabc Convert some source files to Unix line endings
No real code change in this commit.
2015-05-25 16:57:08 +02:00
Bertrand Lorentz
a3db272fee gio: Use the GioNativeDll in all custom gio code
The previous commit added the GioNativeDll constant for DllImport
statements, so we might as well use it.
2015-05-10 17:50:23 +02:00
Antonius Riha
b06ff4fd15 gio: Improve the Run method API in GLib.Application
We don't need an argc parameter, but the program name is required.

Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2015-05-10 17:46:32 +02:00
Bertrand Lorentz
3680a39323 build: Bump mono dependency to 3.2.8
Mono 3.2.8 was released way back in February 2014, and is now available
in most current distros.

With mono, we now only use the "mcs" unified compiler. This also allows
us to build on systems where the compatibility script "gmcs" is not
available.
2015-05-10 17:16:00 +02:00
Mikkel Kruse Johnsen
8bf4dc10d9 3.14.6 2015-01-20 10:26:02 +01:00
Mikkel Kruse Johnsen
9cb9715654 Don't use API 3.12.0.0 just yet 2014-11-06 09:28:59 +01:00
Mikkel Kruse Johnsen
4efdb7c3aa Seperate pkgconfig version from package version 2014-11-05 15:06:03 +01:00
Mikkel Kruse Johnsen
cfb2f3f862 Install cairo-api.xml 2014-11-05 14:43:53 +01:00
Mikkel Kruse Johnsen
d445b4943e Fix conditional in Makefile.am 2014-11-05 08:59:19 +01:00
Mikkel Kruse Johnsen
4c4e2a8754 Remove utf8 variant. Not used anymore on windows 2014-11-05 08:49:52 +01:00
Mikkel Kruse Johnsen
c851bdc837 Ignore gui-thread-check on windows 2014-11-05 08:49:09 +01:00
Mikkel Kruse Johnsen
54eb84c40c Int size on 64 bit 2014-11-05 08:48:24 +01:00
Mikkel Kruse Johnsen
9df74498ed Update to cairo API 1.12 2014-11-03 16:11:56 +01:00
Mikkel Kruse Johnsen
2baa86a03e Include cairo in gapi 2014-11-03 16:11:39 +01:00
Mikkel Kruse Johnsen
33722f0f15 Make samples able to compile 2014-11-03 15:53:22 +01:00
Mikkel Kruse Johnsen
d33628d632 Updated to Gtk 3.12 2014-11-03 15:52:55 +01:00
Mikkel Kruse Johnsen
5fc657a39c Generator problems in GtkWidgetClass 2014-11-03 15:50:20 +01:00
Mikkel Kruse Johnsen
61c921e5b2 Mark deprecated functions as Obsolete 2014-11-03 15:48:39 +01:00
Master T
08f4ae2eb4 glib: Check for self-assignment of Opaque.Raw property
This avoids unnecessary work, and prevents the IntPtr from being
freed when assigned to itself.

Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2014-09-21 16:13:31 +02:00
Antonius Riha
b75e7c82b6 gtk: Fix Builder xml definition loading
Gtk.Builder crashes when AddFromString(string) is called with a string
that contains a BOM. Hence, if the buffer contains a BOM, just skip it.

This fixes the crash with the Gtk# 3 project template in MonoDevelop
(robpvn/MonoDevelopGtkSharp3Template).
2014-09-21 15:49:10 +02:00
Antonius Riha
a281a85f9d gtk: Use the same behavior in Builder constructor overloads
Each overload needs to call Assembly.GetCallingAssembly () explicitly,
otherwise the calling assembly would end up being gtk-sharp.
2014-09-21 15:45:00 +02:00
Antonius Riha
2034648ec2 csproj: Fix assembly names and include *.dll.config in output
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2014-09-21 15:07:38 +02:00
Stephan Sundermann
69ea133855 glib: In Value.Update, check if val is null before updating
Signed-off-by: Bertrand Lorentz <bertrand.lorentz@gmail.com>
2014-09-21 14:29:53 +02:00
Bertrand Lorentz
324fc7b0e3 build: Fix distcheck by adding VariantDemo.cs in the tarball 2014-08-10 19:59:45 +02:00
Bertrand Lorentz
9a72bb67ff build: Post-release version bump to 2.99.4
Better late than never.
2014-08-10 19:52:32 +02:00
Stephan Sundermann
8e0de299e4 generator: Set Owned to false when ownership of a parameter changes
This fixes an issue where unref would get called too often because the
ownership has changed when passing an instance to the native side.

See https://github.com/mono/gtk-sharp/pull/112 for more details.
2014-08-10 18:35:19 +02:00
Stephan Sundermann
961b9ef348 glib: Add binding for GBytes
This patch adds bindings for GBytes https://developer.gnome.org/glib/stable/glib-Byte-Arrays.html

The code was first generated using gobject-introspection and then
refactored. The new type is also added to the generator SymbolTable.
2014-08-10 18:20:32 +02:00
Bertrand Lorentz
fe0be81892 build: Require GLib 2.32 or above
GLib 2.32 has been released in March 2012, so we can now require it a
build and run time. This allows us to remove GLib 2.31 conditionals,
mark the Thread.Init as obsolete, and remove all references to
libgthread.

Please note that the API exposed in glib and gio is still from 2.28, but
we will have some API additions in the future. First example is the next
commit, which brings GBytes, an addition in GLib 2.32.
2014-08-10 18:20:01 +02:00
Stephan Sundermann
280087e431 Value: Don't try to marshal if type has no StructLayout
If the StructLayout is not set, StructureToPtr will throw an exception.
In these cases the type is probably wrapped using a handle and thus
needs no update.
2014-08-10 15:36:40 +02:00
Stephan Sundermann
1fab57eeac Value: First try to invoke a constructor with IntPtr, bool
In Cairo there the default constructor does not take a ref to the native
object making the object invalid when trying to access it.

This commit changes the behaviour to search for another constructor that
takes an owner variable which is set to false when invoked to indicate
that the managed side should take a ref.
2014-08-10 15:33:50 +02:00
Bertrand Lorentz
7ea0c4afaf glib: Fix native GLib warnings when disposing SourceProxy objects
When an instance of SourceProxy was finalized, we would try to remove
the corresponding source, even if it was already removed. This now
causes native GLib to print out warnings because it can't find the
source ID.

Now Source.Remove only calls g_source_remove if we really had a handler
registered for the ID we're removing.
2014-07-05 16:16:58 +02:00