Commit graph

3222 commits

Author SHA1 Message Date
Mike Kestner aae2b05300 Implement IEquatable<T> on structs.
* gdk/Gdk.metadata: suppress Color.GetHashCode().
* gdk/Point.custom: remove generated methods.
* generator/StructBase.cs: Generate Equals(T), Equals(object), and GetHashCode.
* generator/StructField.cs: helper property for equality testing.
* gtk/TreeIter.custom: remove generated methods.
2011-10-07 21:55:26 -05:00
Mike Kestner 9d448f4eab Remove incorrect documentation.
* doc/en/Pango/Layout.xml: remove null verbiage for out parameters
    to GetExtents.
2011-10-02 13:39:52 -05:00
Mike Kestner 61a213c7b8 Merge pull request #25 from Forage/master
GAPI: Additonal types support + class const fields support
2011-09-26 07:20:38 -07:00
Age Bosma 240ff0995a Add support for GValueArray type 2011-09-26 13:54:48 +02:00
Age Bosma d900b32e93 Add support for gintptr and guintptr types 2011-09-26 13:53:32 +02:00
Age Bosma 757dafa156 Add support for class const fields 2011-09-26 13:52:12 +02:00
Mike Kestner 04b8f3e9f8 Merge pull request #24 from dufoli/master
Fix NRE for SetBackgroundPattern
2011-09-06 05:43:05 -07:00
Olivier Dufour 2c83126846 Fix NRE in Gdk.Window.SetBackgroundPattern
If we set it to null background is set to parent brackground.
So we must handle null case and sent it to native.
2011-09-01 21:25:25 +02:00
Mike Kestner db7944ffb5 Merge pull request #23 from bl8/fix-uninstall
build: Specify assembly version when uninstalling from the GAC
2011-08-16 06:21:10 -07:00
Bertrand Lorentz 18d1af6907 build: Specify assembly version when uninstalling from the GAC
We need to qualify the assembly name with the version, otherwise gacutil
uninstall all versions of the assembly.
Fixes http://bugzilla.xamarin.com/show_bug.cgi?id=207
2011-08-11 18:44:58 +02:00
Mike Kestner 6580e217f9 Merge pull request #22 from dufoli/master
Support properties in GInterface
2011-08-03 12:19:19 -07:00
Olivier Dufour b14746d856 Fix build of gtk# by avoiding colision introduced with properties for ginterface 2011-08-02 19:27:22 +02:00
Olivier Dufour f0579eb53d parser: Add property support for ginterface 2011-08-01 21:18:02 +02:00
Mike Kestner fe776b3a48 Merge pull request #21 from bl8/gtk-settings-props
Gtk.Settings: Add all properties as a fixup
2011-08-01 07:45:00 -07:00
Mike Kestner fed1583d7f Merge pull request #20 from bl8/parse-extended
parser: Handle the G_DEFINE_TYPE_EXTENDED macro
2011-08-01 07:42:35 -07:00
Bertrand Lorentz ecc2fa29fa Gtk.Settings: Add all properties as a fixup
In gtksettings.c, properties are installed using a custom function. So a
few properties were added as custom code. Move those as a fixup, and add
all the other properties too.

The only missing properties now are gtk-im-preedit-style and
gtk-im-status-style, because their type is hidden.
2011-07-31 15:29:48 +02:00
Bertrand Lorentz 63db97e9ad parser: Handle the G_DEFINE_TYPE_EXTENDED macro
G_DEFINE_TYPE_EXTENDED is the general macro for type implementations, on
which G_DEFINE_TYPE_WITH_CODE is based. Handle it just like
G_DEFINE_TYPE_WITH_CODE.

Reparse the API with that change, which marks a few classes as
implementing GtkStyleProvider.
2011-07-31 12:32:43 +02:00
Mike Kestner 4f42fb77fb Improve ToggleRef release overhead.
Candidate patch provided by Andres in pull request #17.

* glib/Object.cs: use ToggleRef.Dispose.
* glib/ToggleRef.cs: implement IDisposable and expose former Free
    functionality as Dispose().  Free is now private non-lock taking
    called by Dispose and the idle queue handler.
2011-07-29 13:37:39 -05:00
Mike Kestner 10f4f03943 Merge pull request #16 from knocte/master
Pull request, already signed-off by mkestner in #gtk#
2011-07-29 10:25:23 -07:00
Andres G. Aragoneses 228a2b3da4 glib: Fix calling to Free() twice for the same ToggleRef
Apparently the recent changes in gtk-sharp master that changed
the destroy/dispose strategy caused a bug about calling
g_object_remove_toggle_ref() twice because now Dispose(true)
could call ToggleRef.Free() directly bypassing
ToggleRef.QueueUnref(). This change makes sure that
the ref is removed from the PendingDestroys list.
2011-07-29 18:21:27 +01:00
Mike Kestner c7657fcab4 Merge pull request #15 from bl8/fix-draw-samples
Fix drawing samples
2011-07-29 09:50:30 -07:00
Bertrand Lorentz 6e6d448cf2 DemoDrawingArea: Fix sample to actually do some drawing 2011-07-29 18:10:58 +02:00
Bertrand Lorentz b2931f22c3 DemoColorSelection: Remove Drawn callback and preserve selected color
The drawing area is automatically cleared to the background color, so we
don't need a Drawn callback to do it ourselves.

Preserve the color selected in the color selection dialog, so that it's
pre-selected the next time the dialog is opened.
2011-07-29 18:10:36 +02:00
Mike Kestner da1481b23d Mark Widget::draw as manually marshaled
* gtk/Gtk.metadata: Widget draw signal has a cairo_t param that is
    problematic to marshal as a GLib.Value.  Manually marshal it.
2011-07-28 17:16:28 -05:00
Mike Kestner 51d5faf651 Mark calling convention on GInterface callbacks
Fixes #583901.  Adapted from fix for 2.12 from Markus Henschel.

* glib/GInterfaceAdapter.cs: add UnmanagedFunctionPointer attrs
2011-07-24 18:29:04 -05:00
Mike Kestner 1a0ecbb111 Add gio-sharp dep to gtk-sharp pc file 2011-07-18 12:44:44 -05:00
Mike Kestner 9e29be27d7 Add some missing references to samples 2011-07-18 10:40:12 -05:00
Mike Kestner 86cd963359 Merge pull request #14 from bl8/gio-merges
Gio merges from https://github.com/mono/gio-sharp
2011-07-17 12:49:52 -07:00
Alex Launi bcf42187a8 gio: Fix return type of GMount.GuessContentType* 2011-07-17 17:28:51 +02:00
Gabriel Burt f6009bbde1 gio: Implement GioStream.SetLength 2011-07-17 17:09:41 +02:00
Stephane Delcroix 5290f4c520 gio: Wrap IOStream in GIOStream too 2011-07-17 16:59:11 +02:00
Mike Kestner d90fae8da7 Merge pull request #13 from bl8/fix-windowwindowclass-enum
gdk: Fix up WindowWindowClass enum value names
2011-07-16 11:02:14 -07:00
Mike Kestner c098797e7b Merge pull request #12 from bl8/combobox-entry
gtk: Facilitate use of ComboBox and ComboBoxText with an Entry
2011-07-16 10:59:24 -07:00
Bertrand Lorentz b0768d35f6 gtk: Include ComboBoxText.cs in the build
Also add missing using statement.
2011-07-16 18:18:14 +02:00
Bertrand Lorentz 9463e98ca2 gtk: move ComboBoxText custom code to a partial class
Also rename the constructor parameter to has_entry and pass its value to
CreateNativeObject.
2011-07-16 17:53:21 +02:00
Bertrand Lorentz 96a1f100c7 gdk: Fix up WindowWindowClass enum value names
WindowClass was renamed to WindowWindowClass so the fix ups were
incorrectly dropped.
2011-07-16 16:03:35 +02:00
Bertrand Lorentz bef589e836 gtk: Facilitate use of ComboBox and ComboBoxText with an Entry
Add ComboBox[Text] (bool with_entry) protected constructors to allow
subclasses with an Entry.
Add an Entry property for easy access to the Entry child widget.

Also remove the unused gtk/ComboBoxEntry.custom.
2011-07-16 15:45:30 +02:00
Mike Kestner c28312f826 Merge pull request #11 from bl8/interface_parse_fix
Fix handling of initialization functions for interfaces
2011-07-14 10:35:23 -07:00
Bertrand Lorentz a529ca3a94 Temporary quick fix for properties in interfaces without accessors
The interface parsing fix added a few properties on interfaces that have
no accessors. In this case, the code generated in the adapter for those
properties does not build: it tries to use (Get/Set)Property but they
don"t inherit from Glib.Object.

Hide those properties for now, until a proper fix is implemented. As
they were not available before, it's not that bad.
2011-07-08 20:12:07 +02:00
Bertrand Lorentz 139191f537 Fix naming collisions created by the interface parsing fix
The previous commit added several new signals in Gio.ActionGroup and
Gtk.GtkCellEditable that collide with method names. Do some rename
to fix this.
2011-07-08 20:12:07 +02:00
Bertrand Lorentz ad74c64345 parser: Fix handling of initialization functions for interfaces
With the new G_DEFINE_INTERFACE macro, the interface initialization
function is named *_default_init, so we need to handle that like
*_base_init and *_class_init.

Reparse gtk/gtk-api.raw and gio/gio-api.raw. This creates some new
signals that were previously incorrectly reported as virtual methods,
and also adds some properties.
2011-07-08 20:12:07 +02:00
Mike Kestner 59e38f55dc Merge pull request #10 from bl8/various-fixes
Various build fixes, fixups and clean ups
2011-07-04 10:17:52 -07:00
Mike Kestner 43b4522f87 Merge pull request #9 from bl8/more-sample-fixes
More sample fixes
2011-07-04 10:15:23 -07:00
Bertrand Lorentz 6e3ad5f7e3 gdk: Various fixups in Gdk.metadata
Unhide GdkDevice.GetState and hide the GdkColorInfo and GdkDeviceKey
private structs.

Specify the return types for several methods in GdkScreen, GdkDevice and
GdkDeviceManager.
2011-07-03 16:44:16 +02:00
Bertrand Lorentz d17d94f07e gdk: Kill libgdksharpglue
The only remaining bits in gdk/glue were 2 obsolete functions, which
were not really used.

Also clean up Device.custom to remove obsolete bits, including
references to libgdksharpglue.
2011-07-03 16:44:16 +02:00
Bertrand Lorentz e108bf59d4 gtk: Re-enable NodeView.CreateRowDragIcon method 2011-07-03 16:44:15 +02:00
Bertrand Lorentz 5c98eee787 build: add missing sample source in the tarball 2011-07-03 16:44:15 +02:00
Bertrand Lorentz 18d96029d2 build: Include cairo-api.xml in the tarball 2011-07-03 16:44:15 +02:00
Bertrand Lorentz 2656a5220c sample: Update CustomWidget sample and add it to the build 2011-07-03 13:32:35 +02:00
Bertrand Lorentz 75f9a8acb7 sample: Update CustomCellRenderer and add it to the build
The progress bar rendered by the CustomCellRenderer might not be visible
because of a bug in the default theme in GNOME 3. Applying the following
patch fixes that :
http://git.gnome.org/browse/gnome-themes-standard/commit/?id=756f2ea3
2011-07-03 13:32:35 +02:00