Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11]) by narn.NetBSD.org (Postfix) with ESMTP id 5716663B93C for ; Mon, 20 Oct 2008 13:17:50 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 0) id B74C963B276; Mon, 20 Oct 2008 13:17:49 +0000 (UTC) Received: from nef.pbox.org (nef.pbox.org [IPv6:2001:7a8:202:1::1:1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.netbsd.org (Postfix) with ESMTPS id D30E363B26C for ; Mon, 20 Oct 2008 13:17:47 +0000 (UTC) Received: from nef.pbox.org (localhost [127.0.0.1]) by nef.pbox.org (8.13.8/8.13.8/) with ESMTP id m9KDHZ1n019972 for ; Mon, 20 Oct 2008 15:17:35 +0200 (CEST) Received: (from agc@localhost) by nef.pbox.org (8.13.8/8.13.8/Submit) id m9KDHYt5019971 for pkgsrc-changes@netbsd.org; Mon, 20 Oct 2008 14:17:34 +0100 (BST) Received: from cvs.netbsd.org (unknown [IPv6:2001:4f8:4:7:2e0:81ff:fe25:eab4]) by mail.netbsd.org (Postfix) with ESMTP id 9505963B116 for ; Thu, 16 Oct 2008 22:09:23 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 86ED3175D0; Thu, 16 Oct 2008 22:09:23 +0000 (UTC) From: Thomas Klausner Subject: CVS commit: pkgsrc/x11/gtk-sharp To: pkgsrc-changes@netbsd.org Reply-To: wiz@netbsd.org Message-Id: <20081016220923.86ED3175D0@cvs.netbsd.org> Date: Thu, 16 Oct 2008 22:09:23 +0000 (UTC) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.5 (nef.pbox.org [127.0.0.1]); Mon, 20 Oct 2008 15:17:35 +0200 (CEST) Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes Precedence: list Module Name: pkgsrc Committed By: wiz Date: Thu Oct 16 22:09:23 UTC 2008 Modified Files: pkgsrc/x11/gtk-sharp: Makefile distinfo Log Message: Update to 2.12.4: 2008-09-23 Mike Gorse * atk/Makefile.am: add atk/atk.h to glue_includes. * atk/glue/Makefile.am: Compile atk/glue/generated.c. 2008-09-23 Andrés G. Aragoneses Fixes BNC#384475. * atk/Object.custom: Provide a new overload that receives an enum instead of an ulong, for a friendlier managed API. 2008-09-18 Mike Kestner * bootstrap-2.12: bump svn version. * generator/Signal.cs: add a workaround for G_TYPE_POINTER usage in the GtkEditable::text_inserted signal. The signal parameter received by the closure will be an IntPtr, which we then have to use to read/write the value directly from unmanaged memory. [Fixes #427588] 2008-09-18 Mike Kestner * generator/LPGen.cs: remove WIN64LONGS hackery. * generator/LPUGen.cs: remove WIN64LONGS hackery. * generator/SymbolTable.cs: for WIN64LONGS, map them directly to (u)int SimpleGens instead of using the LP generatables. 2008-09-16 Jeffrey Stedfast * generator/Property.cs (IsDeprecated): Allow "1" or "true". * generator/Method.cs (.ctor): Allow "1" or "true". * generator/ClassBase.cs: Allow a value of "true" to work the same as "1" for the deprecated and abstract attributes. * generator/ObjectGen.cs (Generate): Remove the extra generated space if the class isn't abstract. 2008-09-12 Zoltan Varga * glib/GType.cs (FindTypeInReferences): Put a try-catch around the assembly loading as failure to load a referenced assembly is not really an error. 2008-09-12 Mike Gorse * atk/Object.custom, atk/glue/object.c: Support GetIndexInParent. 2008-09-09 Mike Kestner * generator/ReturnValue.cs: warning cleanup. * gtk/Gtk.metadata: warning cleanup. 2008-09-09 Zoltan Varga * glib/GType.cs (FindTypeInReferences): Skip dynamic assemblies. 2008-09-08 Mike Kestner * glib/GType.cs: beef up the referenced assembly loading code to handle assemblies located in the same directory as the referring assembly. Fixes #423450. 2008-09-05 Andrés G. Aragoneses Fixes BNC#387220. * glib/glue/signal.c: New glue file to call g_signal_query(). * glib/glue/Makefile.am: Add signal.c. * glib/Signal.cs: check return type prior to emitting. 2008-08-28 Andrés G. Aragoneses * atk/Util.custom: unregister get_root function when the setter receives null. Partial fix for BNC#411444. 2008-08-27 Mike Kestner * generator/ManagedCallString.cs: use existing Parameters.IsHidden method to check for hidden user data. 2008-08-27 Mike Kestner * generator/ManagedCallString.cs: revert last change. There are a lot of "broken" callback sigs out there which expose user data because it's not in the last parameter in the list. I don't think we can reasonably make a change to hide all those at this point. This change at least hides all the user_data which comes right before a GError param at the end of the list. I need to follow up with a change which handles data parameters in any parameter position, but allows the user to mark "exposed" data params for compatibility reasons. * generator/Parameters.cs: hide data params which are at the end of a list behind an error param. * gtk/Gtk.metadata: mark an array parameter on TextBufferDeserializeFunc. 2008-08-27 Mike Kestner * glib/Signal.cs: multiple dispose guarding for closures. 2008-08-27 Mike Kestner * generator/ManagedCallString.cs: fixes for data parameter hiding in native to managed callback generation. 2008-08-20 Mike Kestner * glib/Object.cs: * glib/Signal.cs: fix a couple 2.0-isms. Patch from Christian Hoff. 2008-08-20 Mike Kestner * bootstrap-2.12: bump svn version after tag. 2008-08-20 Mike Kestner * generator/ReturnValue.cs: use new ListPtrToArray marshaler for lists with known element types. * glib/Marshaller.cs: new ListPtrToArray marshaller with more aggressive list disposal. * gtk/Container.custom: remove manual Children impl. Use Children in GetEnumerator instead of pinvoking directly. * gtk/Gtk.metadata: remove hidden attr and add element type and owned for Container.GetChildren to generate it properly. 2008-08-20 Mike Kestner Patch from Christian Hoff fixing bug #396195. * generator/Property.cs: handle interface adapter values. * generator/InterfaceGen.cs: register the gtype so mapping occurs automatically for interface adapters. New GetObject overload to handle already wrapped objects more efficiently. * glib/Value.cs: handle set_Val for interface adapter objects. 2008-08-19 Brad Taylor * atk/Object.custom: Add method to allow emission of visible-data-changed signal. * atk/TextChangedDetail.cs: * atk/TextAdapter.custom: Add method to allow emission of text-changed signal. 2008-08-13 Mike Kestner * atk/Atk.metadata: switch Value methods to ref params since atk actually checks for initialized values instead of just treating it like uninitialized memory. Makes for uglier API, but avoids crashes in unfortunate memory content scenarios. 2008-08-04 Mike Kestner * gtk/IconTheme.custom: elements and the list returned by ListIcons are owned. 2008-08-04 Mike Kestner * gtk/Gtk.metadata: mark IconTheme.LoadIcon return as owned. 2008-07-23 Mike Kestner * atk/Atk.metadata: map some out params on Atk.Value. They were unusable in their existing form. 2008-07-08 Mike Kestner Patch from Christian Hoff with a few minor tweaks. * generator/CallbackGen.cs: refactor to use ManagedCallString and drop a ton of redundant, half-baked code. * generator/ManagedCallString.cs: add Unconditional setup method for stuff that has to happen before the try block. Add "drop_first" concept so it can be reused by CallbackGen which doesn't drop first params. * generator/Signal.cs: use Unconditional method for prep. * generator/VirtualMethod.cs: use Unconditional method for prep. * gtk/Gtk.metadata: mark a ref param. [Fixes #394352] 2008-06-28 Mike Kestner * gtk/Gtk.metadata: mark ListStore.Reorder array param. * gtk/ListStore.cs: compat obsolete method, though the old one was useless. 2008-06-28 Mike Kestner * glib/Marshaller.cs: some 64 bit fixes for time_t marshaling issue found by Federico. 2008-06-28 Mike Kestner * gtk/TreeSelection.custom: use list marshaler to avoid O(n^2) copy from old custom code. [Fixes #404669] 2008-06-28 Mike Kestner * gtk/Gtk.metadata: mark a const string. [Fixes #404630] 2008-06-27 Mike Kestner * gtk/Gtk.metadata: fix a couple out params. 2008-06-20 Mike Kestner * glib/Value.cs: Patch from Christian Hoff. Support for byte and sbyte values. 2008-06-17 Mike Kestner * glib/SignalClosure.cs: post back the gvalues after the closure is invoked using a new Update method on GLib.Value. This only impacts boxed types, since they are the only "value types" passed by ref in the signal marshaling environment. We can't call set_boxed on the value to update it, since that allocs new memory, we need to marshal the updated struct out to the existing native memory address using g_value_get_boxed. * glib/Value.cs (Update): new update method for writing values to an existing boxed type instance instead of allocating a new native struct. Fixes #398929. 2008-06-17 Mike Kestner * glib/GType.cs (LookupType): traversed referenced assemblies to find types in currently unloaded assemblies. Fixes #400595. 2008-06-16 Andrés G. Aragoneses * atk/Object.custom: * atk/glue/object.c: Simplified code for previous issue (recommendation from mkestner). 2008-06-16 Mike Kestner * glib/glue/object.c: fixes for object, boxed, and gtype property paramspec creation. Patch provided by Christian Hoff. 2008-06-09 Andrés G. Aragoneses * atk/Object.custom: * atk/glue/object.c: Temporary workaround for infinite recursion issue. 2008-06-06 Andrés G. Aragoneses * glib/glue/thread.c: Fix a warning. 2008-06-06 Mike Kestner Initial Patch submitted by Christian Hoff with some small style alterations and a round trip sample by me. Supports the registration of managed properties with the GType system, so that things like custom cell renderers can be accessed via the native property system from treeview. * glib/glue/object.c : property registration related glue. * glib/Object.cs: implement managed property registration. * glib/PropertyAttribute.cs: add new props and ctor for managed property registration. * sample/PropertyRegistration.cs: little test app to test round- tripping of registered properties. * sample/Makefile.am: add new sample. 2008-06-06 Mike Kestner * atk/Object.custom: use 'as StateSet' instead of cast to avoid cast exceptions in the null case. Apparently it's not an exception any more, according to folks on #monodev. I still prefer as for GetObject 'casting'. 2008-06-06 Andres G. Aragoneses * atk/Object.custom: * atk/glue/object.c: Implement virtual method OnRefStateSet(). 2008-05-30 Mike Kestner * gdk/Pixbuf.custom: don't use the autogenerated PixbufDestroyNative delegate type since is has a byte[] parameter that blows up. 2008-05-30 Mike Kestner * gtk/Object.custom: * gtk/glue/object.c: remove the destroy override. it doesn't work. 2008-05-28 Mike Kestner * gtk/Object.custom: move Dispose call to a vm override so that it runs after all signals and native overrides have run. * gtk/glue/object.c: destroy override implementation. 2008-05-28 Lluis Sanchez Gual * gtk/Object.custom: If all destroy handlers have been unregistered, remove the hashtable entry since it is not needed anymore. 2008-05-27 Mike Kestner * generator/Method.cs (GenerateBody): when generating value type methods, we should demarshal the 'this' memory before any ref or out parameters in the event that someone passes 'this' as a param. That will ensure that an updated value coming back from the native side ends up in the memory location. 2008-05-22 Mike Kestner * gtk/Widget.custom: guard against MissingIntPtrCtorException in the Activate and SetScrollAdjustments funky signal VM impl. Can't use SignalClosure easily. Could be reworked more cleanly at some point. Or not. 2008-05-21 Mike Kestner * gtk/Object.custom (OnDestroyed): ensure Dispose runs even if no Destroyed handlers are connected. 2008-05-21 Mike Kestner * gtk/Application.cs (CurrentEvent): use Event.GetEvent to retrieve an explicit event subclass. 2008-05-15 Mike Kestner * kill the makefile.win32 build system. it has been unmaintained for quite some time, replaced by the auto* build in cygwin. 2008-05-14 Andres G. Aragoneses * atk/Object.custom: Track API changes in GLib.Signal. * glib/Signal.cs: AddEmissionHook binding (for closing #386950), and change API of Emit to mimic the detailed_signal pattern. * glib/GType.cs: GType.FromName: new wrapper for native call. * glib/ObjectManager.cs: Use the new FromName managed method. 2008-05-08 Mike Kestner * atk/atk-api-2.12.raw: reparsed. * gdk/gdk-api-2.12.raw: reparsed. * gtk/gtk-api-2.12.raw: reparsed. * parser/gapi2xml.pl: fixes for signal and vm order needed for proper interface struct layout. [Fixes #386802] 2008-05-07 Stephane Delcroix * gtk/Object.custom: swap the event removing and destroy calls. 2008-05-07 Andres G. Aragoneses * atk/Object.custom, atk/glue/object.c: Remove unneeded return types (I don't know why gcc ever let this compile...). 2008-05-06 Mike Kestner * glib/Object.cs: revert the connection optimization from r102349. It breaks under the current CellRenderer implementation which probably can't be reworked compatibly to take advantage of this code. * glib/SignalClosure.cs: use IntPtr.ToInt64 instead of (long) since the cast apparently has issues on bleeding edge mono. 2008-05-06 Mike Kestner * gtk/Gtk.metadata: mark Rc.DefaultFiles accessors as null_term_array. 2008-05-02 Mike Kestner * generator/GenerationInfo.cs: refactor glue writer implementation so that GlueEnabled means there is a valid glue writer available. Avoids crashes in scenarios where an unwriteable glue path is provided to the generator. Generate a glue function which scans the type hierarchy of an object for the most-derived unmanaged ancestor so that we can invoke class methods on it, avoiding infinite recursions. * generator/Signal.cs: revamp the default handler vm overriding mechanism. When class fields exist which can be directly hooked into, we now generate glue to override and chain up to unmanaged base funcs. This avoids some strangeness in the g_signal_override_class_closure and g_signal_chain_from_overridden reported in #332300 and also lays the groundwork for automated generation of non-signal VMs. * gtk/Gtk.metadata: block signal glue generation for a few types which don't seem to install headers. 2008-05-02 Mike Kestner * glib/Object.cs: Don't bother hooking VM into the class field if another managed ancestor has already done so. Add a LogFunc printing a stack trace for the GObject log domain if GTK_SHARP_DEBUG is set in the environment. It's a bit noisy to do unconditionally. 2008-05-02 Mike Kestner * gtk/Object.custom: some NULL guarding in Dispose and Destroy handling. 2008-05-02 Mike Kestner * atk/Atk.metadata: hide Global.AddGlobalEventListener. * atk/Global.custom: AddGlobalEventListener impl. * atk/Util.custom: AddGlobalEventListenerHandler prop. [Fixes the rest of #365437] 2008-05-01 Mike Kestner * gtk/gtk-api-2.12.raw: regen, removes some private printing API. * source/gtk-sharp-2.12-sources.xml: hide some private printing API. 2008-05-01 Mike Kestner * generator/InterfaceGen.cs: use CName and mangle it. ClassFieldName is not guaranteed to be set now. * generator/Signal.cs: read ClassFieldName from the api xml. Move glue writer lookup inside the block to avoid exceptions for now. 2008-04-30 Mike Kestner * generator/InterfaceGen.cs: * generator/Signal.cs: use generic signal marshaling instead of generating signature specific marshaling callbacks. * glib/glue/closure.c: glue for new closure impl. * glib/Object.cs: open up a couple hashes internally. * glib/Signal.cs: hook in closure based connection and expose EmissionHook functionality for atk usage. * glib/SignalClosure.cs: new generic signal marshaling mechanism. * glib/ToggleRef.cs: null guarding in Target and let Signal remove itself from hash when it disposes itself. 2008-04-30 Mike Kestner * parser/gapi2xml.pl: put class struct field in the signal elems. * atk/atk-api-2.12.raw: * gdk/gdk-api-2.12.raw: * gtk/gtk-api-2.12.raw: 2008-04-28 Mike Kestner * glib/Value.cs : Add GParam support and beef up the Boxed type marshaling to support types with New methods via reflection. 2008-04-28 Mike Kestner * glib/GType.cs : Add a few missing static fields. 2008-04-24 Mike Kestner * gdk/Window.custom (Destroy): take a normal ref for the native method to release, and Dispose our toggle ref. Fixes #382186. 2008-04-24 Andres G. Aragoneses * glib/Signal.cs: Remove unneeded cast. 2008-04-24 Andres G. Aragoneses * atk/Object.custom: custom protected method for firing the ChildrenChanged signal. * glib/Signal.cs: first implementation of a managed method for emitting signals. 2008-04-19 Mike Kestner * gtk/glue/statusicon.c: fix time parameter usage. Not even sure how that compiled. I <3 C. 2008-04-17 Mike Kestner * atk/glue/misc.c: glue for vms and singleton setup. * atk/Misc.custom: add OnThreadsEnter, OnThreadsLeave, and SetSingletonInstance members for Bridge implementors. [More of #365437] 2008-04-17 Mike Kestner * glib/Object.cs: add Harden method to reduce the reflection overhead in Gnome.Program. 2008-04-17 Mike Kestner * glib/ToggleRef.cs: Add a Harden method to switch to a standard ref and just leak it. * gtk/Application.cs: revert the QuitPrepare stuff since it didn't always work. 2008-04-17 Mike Kestner * gtk/TreeModelAdapter.custom: * gtk/TreeModelFilter.custom: * gtk/TreeModelSort.custom: reworked patch from Christian Hoff to throw NotImplementedException for SetValue methods. Those should never have been added to the interface, and it's better to throw an exception than have infinite recursion kill the program. [Fixes #379542] 2008-04-16 Mike Kestner * gtk/Gtk.metadata: hide PrintContext.get_CairoContext. * gtk/PrintContext.custom: manual get_cairo_context implementation. Mono.Cairo assumes it is wrapping owned references, so we need to take a ref out on the returned cairo_t pointer. * sample/GtkDemo/DemoPrinting.cs: dispose the CairoContext in to be a good citizen and avoid warnings. 2008-04-15 Mike Kestner * generator/ReturnValue.cs: use new GLib.Opaque.OwnedCopy for owned opaque return values. * glib/Opaque.cs: introduce OwnedCopy property to support returning owned opaque instances from native to managed callbacks. [Fixes #374641] 2008-04-15 Mike Kestner * gtk/Gtk.metadata: hide GtkKey_ for manual impl. * gtk/Key.cs: manual implementation to manage delegate wrapper persistence. [Fixes #378989] 2008-04-15 Mike Kestner * gtk/FileSystemModel.custom: remove dead file. 2008-04-15 Mike Kestner * glib/Marshaller.cs: marshal null string arrays as a null IntPtr[]. [Fixes #378514] 2008-04-14 Mike Kestner * gtk/Application.cs: add QuitPrepare event for Gnome.Program usage. 2008-04-08 Marek Habersack * generator/InterfaceGen.cs: added a check for null obj in the generated GetObject method. 2008-04-04 Mike Kestner * atk/Atk.metadata: add a few more owned refs. 2008-04-04 Mike Kestner * glib/Global.cs: renamed from Program.cs. Program.Name is now Global.ProgramName to try to avoid clashes with existing Gnome.Program usage. * gtk/Application.cs: s/GLib.Program.Name/GLib.Global.ProgramName. 2008-04-04 Mike Kestner * atk/Atk.metadata: markup all the Ref* methods to indicate owned refs. * generator/ReturnValue.cs: Add owned object ToNative handling. * generator/VirtualMethod.cs: Split ToNative call from managed method invocation to avoid duplicate calls in null checking scenarios. * glib/Object.cs: add OwnedHandle property for use by language binding code which needs to pass owned refs to native methods. 2008-04-04 Mike Kestner * atk/Object.custom: take out a ref on the return value of OnRefChild. Also add some null guarding and default to IntPtr.Zero on exceptions. 2008-04-01 Mike Kestner * generator/InterfaceGen.cs: support "generic" interface implementations like those exposed by gio. This is specifically for libraries which return GTypes which are not exposed by the library but which implement GInterfaces which are exposed by the library. 2008-03-28 Andres G. Aragoneses * atk/Object.custom: custom properties for overriding class methods. * atk/Makefile.am: include Object.custom. * atk/glue/object.c: glue to override class methods. * atk/glue/Makefile.am: include object.c. 2008-03-27 Andres G. Aragoneses * glib/Program.cs: Add new static class for utility property, moving the code to call g_set_prgname() from gtk/Application.cs to here, and changing return value of g_set_program_name from bool to void. * gtk/Application.cs: Use Program.Name as a replacement of calling the native function g_set_prgname(). * glib/Makefile.am: add Program.cs. 2008-03-21 Mike Kestner * bootstrap-2.12: bump svn version * generator/CallbackGen.cs: add dnotify support to invoker. Store and respond with incoming UserData params. Start using __prefixed private vars to avoid collisions with parameters, like the 'result' params in gio. * generator/ManagedCallString.cs: use new data/dnotify invoker ctors. * generator/MethodBody.cs: * generator/Parameters.cs: don't link "out" length params to preceding strings. * generator/VMSignature.cs: don't require UserData to be last param, since it can have things like error after it. 2008-03-21 Mike Kestner * gtk/Gtk.metadata: s/GtkDestroyNotify/GDestroyNotify in vms too. 2008-03-14 Mike Kestner * pango/AttrList.custom: pass copies of the attrs to insert* since the list assumes ownership. * pango/Makefile.am: add new custom file. * pango/Pango.metadata: hide AttrList.Insert* for custom impl. 2008-03-12 Mike Kestner * glib/GType.cs: add an Init method for explicit initialization. 2008-03-04 Mike Kestner * bootstrap-2.12: update version to 2.12 and tag 2008-02-29 Mike Kestner * gdk/Event.cs: add New method for consistency with generated boxed types. Will be used by GLib.Value in the future. 2008-02-29 Mike Kestner * generator/ReturnValue.cs: null-term array handling. * glib/Marshaller.cs: marshaling methods for null-term arrays. 2008-02-29 Mike Kestner * sample/Action.cs: qualify Action usage. * sample/GtkDemo/DemoApplicationWindow.cs: qualify Action usage. * sample/GtkDemo/DemoUIManager.cs: qualify Action usage. 2008-02-29 Mike Kestner * configure.in.in: atk checks and SUBSTs. * atk/Util.custom: custom properties for overriding class methods. * atk/glue/util.c: glue to override class methods. 2008-02-26 Mike Kestner * generator/ByRefGen.cs: fix mismatched alloc/free. 2008-02-22 Mike Kestner * gdk/Pixbuf.custom: add destroy notification and pin byte[] to avoid GC complications. Add a couple new convenience ctors as well. [Fixes #362951] 2008-02-21 Mike Kestner * glib/Source.cs: rework proxy removal to avoid boxing profile. * glib/Idle.cs: save src_id in proxy to facilitate removal. * glib/Timeout.cs: save src_id in proxy to facilitate removal. [Fixes #359561] 2008-02-07 Mike Kestner * generator/ReturnValue.cs: null term array marshaling. * glib/Marshaller.cs: new marshalers for null-terminated string arrays. [Fixes #342113] 2008-02-07 Mike Kestner * generator/Parameters.cs: fix off-by-1 in null term array marshaling. 2008-02-06 Mike Kestner * gdk/Gdk.metadata: mark ApplyEmbeddedOrientation return as owned. 2008-01-30 Mike Kestner * generator/ClassBase.cs: null check ifaces in recursive method and signal lookup. 2008-01-29 Mike Kestner * generator/ManagedCallString (Setup): use error param name instead of hardcoding error. 2008-01-29 Mike Kestner * generator/VirtualMethod (CName): mangle the name. * generator/SymbolTable.cs (MangleName): add 'remove' and 'foreach' mappings. Should probably just get a C# keyword list and map all of them instead of onesy twoseys. Fixes for tnymail binding generation. 2008-01-24 Lluis Sanchez Gual * glade/XML.custom: due to a recent Mono fix (bug #322762), Type.GetFields does not return private fields from base classes anymore, so the BindFields now has to go through the class hierarchy to get all fields. 2008-01-23 Mike Kestner * bootstrap-2.12: update version and tag 2.11.91. 2008-01-22 Mike Kestner * glib/Object.cs: expose an internal ToggleRef prop. * glib/Signal.cs: use ToggleRef for lookups instead of Object. Add a Free method and release connections and gchandles. * glib/ToggleRef.cs: add signal hash and release signals on free. 2008-01-17 Mike Kestner * glib/Object.cs: remove ref from Objects hash prior to releasing it. 2008-01-17 Mike Kestner * glib/ToggleRef.cs: check for null reference in IsAlive. 2008-01-17 Mike Kestner * generator/Property.cs: missing Parent null check needed for direct GLib.Object subclasses. Suggested by mario@gnome.cl. [Fixes #321536] 2008-01-17 Mike Kestner * sample/Assistant.cs: new Gtk.Assistant sample. * sample/Makefile.am: hook in new sample. 2008-01-11 Mike Kestner * bootstrap-2.12: update version to 2.11.90. * configure.in.in: incorporate build service patch. * glib/glib-sharp-2.0.pc.in: add cflags for new api.xml. * glib/Makefile.am: install api.xml to correct dir. 2008-01-07 Mike Kestner * generator/SymbolTable.cs: map "unsigned long" to LPUGen. 2008-01-02 Mike Kestner * gtk/MoveFocusHandler.cs: obsolete event types. * gtk/TextView.custom: obsolete move-focus signal. * gtk/Window.custom: obsolete move-focus signal. Compat fixes for removal of signals from gtk+ API. [Fixes #350770] 2007-12-17 Mike Kestner * parser/gapi_pp.pl: parse 'typedef struct\n{' properly. 2007-12-12 Mike Kestner * generator/Parameters.cs: fix marshaling for ArrayCount params where casting is required, like gsize/size_t count parameters. 2007-12-11 Mike Kestner * parser/gapi2xml.pl: fix tightloop in single-line prop declarations. 2007-12-06 Mike Kestner * * : update to 2.12 API. 2007-12-04 Mike Kestner * generator/SymbolTable.cs: add goffset mapping. 2007-12-04 Mike Kestner * configure.in.in: check for default off_t size * generator/SymbolTable.cs: map off_t based on configure check. * generator/Makefile.am: add OFF_T_FLAGS to compile. 2007-12-03 Mark Probst * generator/SymbolTable.cs: Added "where" to the list of mangled names. 2007-11-29 Mike Kestner * parser/gapi_pp.pl: collapse embedded multiline function fields to a single line. [Fixes #344853] 2007-11-29 Mike Kestner * generator/MethodBase.cs: move Name stuff from subclasses. Check for (G|S)et in new Has props. * generator/Method.cs: * generator/VirtualMethod.cs: refactor out Name stuff. Use new Has(G|S)etterName props. * pango/Pango.metadata: workaround Has/Hash collision with the old broken getter check. [Fixes #344954] 2007-11-29 Mike Kestner * glib/Signal.cs: ignore GCHandles with null targets since their object has been collected. [Fixes #344250 again] 2007-11-28 Mike Kestner * glib/Object.cs: take ref using method param to avoid NREs. [Fixes #344250] 2007-11-16 Mike Kestner * glib/Object.cs: use toggle refs for all objects. de-obsolete Data hash. Add internal Signals hash. * glib/Signal.cs: switch to weak gchandles. * glib/WeakObject.cs: kill. 2007-11-16 Eskil Bylund * gtk/ListStore.custom: * gtk/TreeStore.custom: Implement InsertWithValues. * gtk/Gtk.metadata: Deprecate the old generated method. [Fixes #325040] 2007-11-12 Mike Kestner * sample/TreeModelDemo.cs: lt/gt typo bugfix [Fixes #333653] 2007-11-12 Mike Kestner * generator/SymbolTable.cs: remove GCallback mapping. * glib/GCallback.cs: kill, bad idea. 2007-11-12 Mike Kestner * glib/IOChannel.cs: IOChannel wrapper implementation. * glib/Makefile.am: build new files. * glib/Marshaller.cs: new string array marshaling methods. * glib/Spawn.cs: g_spawn* wrapper implementation. * sample/SpawnTests.cs: tests for the new GLib.Process class and a cursory exercise of IOChannel for SpawnAsyncWithPipes. 2007-11-09 Mike Kestner * generator/Parameters.cs: support for null_term_array attribute. 2007-11-08 Mike Kestner * glib/Marshaller.cs: new null-terminated string[] marshaler from Mono.Unix with adaptations by Michael Hutchinson. 2007-11-02 Mike Kestner * glib/SList.cs: * glib/List.cs: add Array dup of object[] ctor since we are passing typed arrays from generated code. 2007-11-02 Mike Kestner * generator/Method.cs: need to use on the Base method name to lookup complements and determine if the method is a getter or setter when an explicit interface method name is used. 2007-10-24 Mike Kestner * generator/SymbolTable.cs: mappings for GCallback and GSourceFunc. * glib/GCallback.cs: GCallback declaration. * glib/Source.cs: GSourceFunc declaration. 2007-10-24 Mike Kestner * generator/VirtualMethod.cs: clean up compiler warning and duplicate call. 2007-10-24 Mike Kestner * generator/InterfaceGen.cs: generate an Implementor prop on the adapters to obtain the underlying object. 2007-10-22 Mike Kestner * configure.in.in: add a win64 check and a compiler define for handling win64 32bit longs. * generator/LPGen.cs: use int to marshal on win64. * generator/LPUGen.cs: use uint to marshal on win64. * generator/SymbolTable.cs: remove fixme. 2007-10-16 Mike Kestner * gtk/CellRenderer.custom : marshal GTypes as IntPtr like the generator does. * gtk/Container.custom : ditto. [Fixes comment #8 on 327058] 2007-10-15 Mike Kestner * generator/InterfaceGen.cs : gen Handle props as overrides. * glib/GInterfaceAdapter.cs : add abstract Handle prop. * glib/Value.cs: add ctor (GInterfaceAdapter). 2007-10-04 Peter Johanson * gtk/Gtk.metadata: Make the public fields on Gtk.Rcstyle writeable. 2007-10-04 Mike Kestner * glib/DestroyNotify.cs: add CDeclCallback to the delegate. * glib/Signal.cs: use DestroyHelper. * gdk/Input.custom: use DestroyHelper. * gtk/Quit.custom: remove new on DestroyHelper handler. * gtk/TreeModelFilter.custom: remove new on DestroyHelper handler. * gtk/TreeViewColumn.custom: remove new on DestroyHelper handler. 2007-10-02 Mike Kestner * generator/*.cs: implement the interfaces on the adapters too. Generate an Implementor interface for users which exposes the methods to implement. Register based on the Implementor sub-iface. * gtk/*Adapter.custom: custom implementations for the custom interface members. * gtk/TreeIter.custom: make UserData public. * sample/TreeModelDemo.cs: sample for implementing a TreeModel interface. 2007-10-01 Mike Kestner * generator/OpaqueGen.cs: disable Copy generation fix until I can figure out why it breaks DnD. 2007-10-01 Mike Kestner * gtk/TreePath.custom: use Marshal.Copy to copy indices array. 2007-10-01 Mike Kestner * glib/Object.cs: add ctor (), which invokes CreateNativeObject to allow direct subclasses that do all the registration automatically. 2007-09-21 Mike Kestner * generator/*.cs: add DefaultValue prop for obtaining a sane value when we need to return a value but something bad has happened such that we can't get a real value. Needed for iface signal marshaling, among other places we're partially working around it now. 2007-09-19 Mike Kestner * generator/InterfaceGen.cs: remove some dead code from a previous implementation attempt. 2007-09-19 Mike Kestner * generator/VirtualMethod.cs: refactor delegate generation into GenerateCallback and add [CDeclCallback] which was missing. * generator/InterfaceGen.cs: kill GenerateDelegates. They are now generated by VirtualMethod.GenerateCallback. 2007-09-14 Mike Kestner * generator/CallbackGen.cs (GenInvoker): null check the sig field and set it up. This can happen when generating the marshaling types from dependent libraries instead of via the Generate method. 2007-09-11 Mike Kestner * gtk/Gtk.metadata: virtual_method rules for GInterface generation. * generator/ReturnValue.cs (ToNative): new method for the virtual method generation. * generator/Parameters.cs (FromNative): null guarding. * generator/ManagedCallString.cs: rework for interface method generation including callback and error param support. * generator/CallbackGen.cs: Invoker support. new class that deals with persistence of native and wrapper delegates in native to managed callback method signatures. * generator/VirtualMethod.cs: support for generation of interface methods, and all the funky parameters that come with that. * generator/InterfaceGen.cs: Fill out the adapter implementation. * generator/MethodBody.cs: Initialize overload. Extend ThrowsException to support GError outside the last parameter slot. * glib/GInterfaceAttribute.cs: New attribute to mark interfaces and obtain adapter type. * glib/Object.cs (AddInterfaces): interface registration method. * glib/GInterfaceAdapter.cs: New abstract class for interface adapter generation. * glib/Makefile.am: add new files. 2007-09-11 Mike Kestner * gtk/Object.custom (Destroy): add a null check to avoid Gtk criticals. The destroy case seems to be problematic with a bunch of existing code, so this turns it into a noop. 2007-09-06 Mike Kestner * AssemblyInfo.cs.in : add IgnoreClassInitializers attr to all. * generator/ObjectGen.cs : add custom-attr generation for objects. * glib/ClassInitializerAttribute.cs : obsolete * glib/IgnoreClassInitializersAttribute.cs : new assembly attr to avoid a blind GetMethods reflection. * glib/Makefile.am : add files * glib/TypeInitializerAttribute.cs : new attr to specify init method to be run at type registration. * gtk/Widget.custom : remove the ClassInitializerAttr. * gtk/Gtk.metadata : add a custom-attr node to GtkWidget. * sample/Subclass.cs : use the IgnoreClassInitializers attr. 2007-08-14 Mike Kestner * gtk/Gtk.metadata : kill a few "new" warnings in FileChooser implementors. 2007-08-14 Mike Kestner * glib/ListBase.cs : add AllocNativeElement method and an Append (object) method that uses it. * glib/List.cs : add object[] ctor using new append method. * glib/SList.cs : add object[] ctor using new append method. These are needed to return G(S)List* values as virtual method return values. 2007-08-13 Mike Kestner * generator/MethodBody.cs : finally kill the s/out ref/ref/ hack. * generator/Parameter.cs : ditto. 2007-08-13 Mike Kestner * generator/ByRefGen.cs : implement IManualMarshaler. * generator/Parameter.cs : use StructParameter for ByRefGen. 2007-08-13 Mike Kestner * generator/*.cs : switch to IntPtr marshaling for struct types in the managed to native direction. * gtk/*.custom : adjust to new gapi struct pinvoke sigs. 2007-08-01 Mike Kestner * generator/CallbackGen.cs : use Parameters.NativeCallbackSignature. * generator/Ctor.cs : use Parameters.ImportSignature prop. * generator/ImportSignature.cs : kill * generator/MethodBase.cs : kill ImportSignature prop. * generator/Method.cs : use Parameters.ImportSignature prop. * generator/NativeCallbackSignature.cs : kill * generator/Parameters.cs : add ImportSig and NativeCallbackSig. * generator/Signal.cs : use Parameters.NativeCallbackSignature prop. * generator/VirtualMethod.cs : use Parameters.ImportSignature prop. 2007-07-31 Mike Kestner * generator/Ctor.cs : Validate before generating and adjust protection on a couple private methods. * generator/Parameters.cs : remove unused var to kill warning. 2007-07-30 Mike Kestner * generator/MethodBody.cs : refactor finish logic into parameter. * generator/Parameters.cs : refactor finish logic into parameter and fix some failures to marshal ref params post call. 2007-07-27 Mike Kestner * generator/OpaqueGen.cs : only generate Copy override for methods with no parameters. Fixes a gnome-sharp build problem. 2007-07-26 Mike Kestner * parser/gapi2xml.pl : beef up error message for signal vm parse. [Fixes #82149] 2007-07-24 Mike Kestner * bootstrap-2.10 : bump version and tag 2.10.2. 2007-07-20 Mike Kestner * gtk/Calendar.custom : workaround invalid states in widget when raising month_changed signals. [Fixes #78524] 2007-07-20 Mike Kestner * gtk/gtk-api-2.10.raw : refresh. * parser/gapi_pp.pl : combine lines that end in '\' before sending them through the pattern matching. [Fixes #79214] 2007-07-19 Mike Kestner * generator/OpaqueGen.cs : override the new Copy vm if a Copy method exists for the type. * glib/Opaque.cs : add a virtual method to allow subclasses with Copy methods to override. Use the method in GetOpaque for unowned instantiations to try to obtain an owned instance. [Fixes #82037] 2007-07-18 Mike Kestner * gdk/EventExpose.cs : return a pointer from the get_area glue pinvoke to avoid VS crashes on win32. * gdk/glue/event.c : return a GdkRectangle* to avoid stack imbalance on VS debugger. [Fixes #82098] 2007-07-17 Mike Kestner * gtk/Gtk.metadata : map TreeModelFilter ctor param to prop to avoid subclass ctor exception. [Fixes #82115] 2007-07-17 Mike Kestner * generator/CallbackGen.cs : make GError** signatures fatal to avoid compilation problem in gmime-sharp. 2007-07-12 Mike Kestner * generator/StructBase.cs : use typeof to pass type to PtrToStruct to avoid an instantiation and method call. Duh. 2007-07-10 Mike Kestner * generator/ImportSignature.cs : use Parameter.NativeSignature prop and refactor out some GError handling. * generator/MethodBody.cs : Refactor logic into Parameters. * generator/Parameters.cs : add ArrayParameter, ArrayCountPair, and ErrorParameter subclasses to refactor spaghetti code in MethodBody. 2007-07-03 Mike Kestner * bootstrap-generic : use automake --foreign to make automake-1.10 happy with gnu make function usage. 2007-06-25 Mike Kestner * gtk/StatusIcon.custom : present_icon is in the glue lib. 2007-06-25 Ankit Jain * gdk/Gdk.metadata : hide Property.Get for manual impl. * gdk/Property.custom : manually marshal the data param in Get. 2007-06-19 Mike Kestner * gdk/Property.custom : obsolete compat overload for Change(). * gdk/Gdk.metadata : array attr for Property.Change (). * gdk/Makefile.am : add custom file. 2007-06-18 Mike Kestner * bootstrap-2.10 : bump version and tag. 2007-06-05 Mike Kestner * glib/ManagedValue.cs (ReleaseWrapper): new method. * glib/Value.cs : release the ManagedValue wrapper to avoid leaks. [Fixes #81799] 2007-05-03 Wade Berrier * generator/gapi2-codegen.in: * parser/gapi2-fixup.in: * parser/gapi2-parser.in: Don't use 'which' anymore, as it doesn't work in all caes (ie: when symlinks are in the way) 2007-04-28 Mike Kestner * generator/NativeCallbackSignature.cs : * generator/Signal.cs : don't use ref IntPtr in native callback sigs for struct parameters. Use IntPtr and StructureToPtr. Fixes the layout issues in MD introduced by the structure marshaling rework. 2007-04-24 Aaron Bockover * gtk/Widget.custom (StyleGetProperty): return null if gtksharp_widget_style_get_property returns FALSE (property doesn't exist) [Fixes #81445] * gtk/glue/widget.c (gtksharp_widget_style_get_property): check return of gtk_widget_class_find_style_property for NULL; function now returns TRUE if spec is not NULL, FALSE otherwise To generate a diff of this commit: cvs rdiff -r1.4 -r1.5 pkgsrc/x11/gtk-sharp/Makefile cvs rdiff -r1.3 -r1.4 pkgsrc/x11/gtk-sharp/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.