* glue/widget.c (gtksharp_gtk_widget_get_window): Fix. Return the
window, not the address of the window pointer.
svn path=/trunk/gtk-sharp/; revision=12073
* generator/SignalHandler.cs: the generated Dispose method now calls
base.Dispose and always disconnects the handler. Thanks to
Petr Danecek <danecek@ucl.cas.cz>.
svn path=/trunk/gtk-sharp/; revision=12060
* gdk/Color.custom: Added constructors from System.Drawing.Color
and from rgb byte tuples.
* gdk/Colormap.custom: Add new .custom file for the AllocColor
call.
svn path=/trunk/gtk-sharp/; revision=12054
* gdk/Drawable.custom: Added nice overload for DrawRectangle.
Plus older ChangeLog entries that I had not commited
svn path=/trunk/gtk-sharp/; revision=12052
* gtk/TextBuffer.custom : Added method, named
"GetIterAtOffset" to wrap C API procedure
"gtk_text_buffer_get_iter_at_offset" in a
more expected way.
svn path=/trunk/gtk-sharp/; revision=12022
* configure.in : Added support for Rsvg.NET -- librsvg
.NET bindings. (Made a check for the library. And
made it so "rsvg/Makefile" would be generated. Also
made it so it will display if rsvg-sharp.dll will
be generated or not.)
* makefile : Added support for Rsvg.NET -- librsvg
.NET bindings. (Added an entry for Rsvg.NET.)
* sources/gtk-sharp.sources : Added an entry for
Rsvg.NET -- librsvg .NET bindings.
* rsvg/ : Created "rsvg/" directory. (To hold stuff
for Rsvg.NET.)
* rsvg/Tool.cs : Created Rsvg.Tool class to hold
various procedures (which were not automatically
wrapped).
* rsvg/Makefile.in : Created "rsvg/Makefile.in".
* api/Makefile.in : Added and entry for Rsvg.NET.
svn path=/trunk/gtk-sharp/; revision=12020
* generator/Parser.cs: use XmlDocument.Load (Stream). The one using
(String) expects an uri.
* generator/Signal.cs: always remove the delegate from the signal
callback (prior to this, the last handler was not being removed).
Dispose the callback (ie, disconnect from the signal) when there are
no registered delegates to handle it.
* generator/SignalHandler.cs: added 2 new fields to hold the instance
and the handler ID. The finalization is now done in Dispose and
disconnects the signal handler when no delegate will handle the signal.
Changed gobject-2.0 to libgobject-2.0-0.dll.
* glib/SignalCallback.cs: implemented IDisposable interface.
svn path=/trunk/gtk-sharp/; revision=11976
* generator/ObjectGen.cs : gen GLib.Value ctor, not uint
* glib/Object.cs : use GLib.Type in RegisterGType and
make the g_object_new ctor use GLib.Type.
* glib/Type.cs : new thin wrapper for GValue type
* glib/*.cs : s/Type/System.Type
svn path=/trunk/gtk-sharp/; revision=11920
* generator/CallbackGen.cs : suppress len params from
string/len pairs.
* generator/Parameters.cs : begin the refactoring to use
Parameter class. Suppress len params from string/len pairs.
*/*.custom : remove all overrides of string/len pairs
*/*.cs : ditto. Thanks to Alp Toker for the foundation
patch that this change was built upon.
svn path=/trunk/gtk-sharp/; revision=11913
* api/gtk-api.xml : mark TreeModel::GetValue value param out
suggested by Lee Mallabone <gnome@phonicmonkey.net>
* sources/Gtk.metadata : metadata for above
* sources/README : update the gnomedb/gda version reqs
svn path=/trunk/gtk-sharp/; revision=11766
* sources/Gtk.metadata: Add GetLayoutOffsets to the rule for out params.
* gtk/FileSelection.custom (Button): Rename to FSButton, so that
we won't wipe out our original Gtk.Button docs.
svn path=/trunk/gtk-sharp/; revision=11761
* gconf/GConf/Client.cs:
* gconf/GConf/NoSuchKeyException.cs: added key string to the exception
when Get does not find it.
svn path=/trunk/gtk-sharp/; revision=11544
* gnome/CanvasProxy.cs: Make the voidObjectAffineSVPintSignal
class be in the 'GtkSharp' namespace, instead of 'GtkSharp.Gnome'.
svn path=/trunk/gtk-sharp/; revision=11502
* api/gtk-api.xml: Gtk.Editable.InsertText should have the
position be marked 'ref', not 'out', because it is an in-out parameter.
* gtk/Entry.custom: Overload for InsertText.
* gtk/Clipboard.custom: New overload for SetText.
svn path=/trunk/gtk-sharp/; revision=11430
GtkCellRenderer, GtkWindow, GtkRuler, GtkLayout, GtkScrolledWindow
and GtkSpinButton. Monotalk is very useful for this kind of work.
svn path=/trunk/gtk-sharp/; revision=11429
* glib/MainContext.cs: beginning of MainContext class, just
Iteration and Pending methods to be able to refresh Gtk in the
middle of time consuming function where it's not worth while to
use threads
* glue/style.c (gtksharp_gtk_style_get_font_description): new
function to access style's font_description field
* gtk/Style.custom: added font description property
svn path=/trunk/gtk-sharp/; revision=11358
* glue/Makefile.am (libgtksharpglue_la_LIBADD): Set this so
that people linking to libgtksharpglue.so get their
dependencies.
(I've had this patch sitting around forever, I think it got
approved, and it certainly appears correct.)
svn path=/trunk/gtk-sharp/; revision=11329
Write method to make it always regenerate the correct
stuff. Thanks to Rachel for helping me out at the middle of the
night.
svn path=/trunk/gtk-sharp/; revision=11269
* api/gtk-api.xml:
* sources/Gtk.metadata:
* gtk/Window.custom: Mark out params in gtk_window_get_size and gtk_window_get_default_size.
svn path=/trunk/gtk-sharp/; revision=11268
* glib/SignalCallback.cs: new methods AddDelegate and RemoveDelegate.
* generator/Signal.cs: add/remove signal handlers from the delegate used
to invoke them.
* generator/SignalHandler.cs: use Delegate instead of MulticastDelegate.
svn path=/trunk/gtk-sharp/; revision=11255
* gda/Application.cs:
* gnomedb/Application.cs: synced version number with its corresponding
C library version.
svn path=/trunk/gtk-sharp/; revision=11248
* sources/Gtk.metadata (GtkTextView): Add a patch from Fredrik
Nilsson <jymdman@home.se> to add needed 'out' parameters.
svn path=/trunk/gtk-sharp/; revision=10355
* pango/Layout.custom: Add Size get property and add some nicer overloads
to avoid explicit passing in the string length
svn path=/trunk/gtk-sharp/; revision=10231
* api/gst-api.xml: Give int values to the ElementState enum, remove
incorrectly generated SetInternalConnectionFunction and a duplicated
type field
svn path=/trunk/gtk-sharp/; revision=10054
* sources/Gnome.metadata: add out param rules for a bunch of Canvas
methods (pointed out by Paul Duran).
* api/gnome-xml.api: updated
svn path=/trunk/gtk-sharp/; revision=9838
* makefile: when doing distclean, attempt distclean on all the
C# subdirs too
* gconf/Makefile.in: added distclean target to rm the Makefiles
in the subdirs of gconf/
* glue/Makefile.am: build libgtksharpglue as an unversioned
module to avoid so -> so.0 -> so.0.0 symlink mess
* */Makefile.in: call mkinstalldirs before installing any files
so that subdirs can be installed seperately or in any sequence
(eg binding dirs before native dirs)
svn path=/trunk/gtk-sharp/; revision=9828
* api/gst-api.xml: Make Gst# link to libgstreamer.so as per pkg-config
--libs gstreamer
* sources/gtk-sharp.sources: ditto
svn path=/trunk/gtk-sharp/; revision=9791
* glib/Log.cs: removed the IntPtr argument and keep a reference to
the delegate passed to unmanaged world as suggested by rachel.
svn path=/trunk/gtk-sharp/; revision=9586
* gconf/Makefile.in, sample/Makefile.in: Use $(MAKE) not "make."
* parser/Makefile.in: Use CFLAGS and CPPFLAGS hints from configure,
and the base dependency CFLAGS. Fixes case where iconv.h is outside
of the compiler's default path.
svn path=/trunk/gtk-sharp/; revision=9578
* api/*.xml : a few new attrs
* generator/Parameters.cs : remove redundant ref keywords
* gtk/ListStore.custom: overload SetColumnTypes
* gtk/TreeStore.custom: overload SetColumnTypes
* parser/GAPI/Metadata.pm : allow callback nodes at class level
* sources/Gtk.metadata : hide ClipboardClearFunc and GetFunc,
tag types param of SetColumnTypes as array, uncomment needs_ref
tags on Widget methods to match the current api.xml file
svn path=/trunk/gtk-sharp/; revision=9148
* glib/Value.cs: cast Typefundamentals.* to uint (GType is
unsigned int), fix Value (GLib.Object) - use new GetGType method
* glib/Object.cs: new GetGType method, returns _obj GType
svn path=/trunk/gtk-sharp/; revision=9063
we need to ref this object once we have a pointer to it or not.
By default this is set to true -- constructors and other functions
where we do own the object need to set this to false before setting
the "Raw" property. Also added Unref and RefCount methods.
* glue/object.c, glue/type.c: some utility functions for
refcounting support
* gdk/Pixbuf.custom: manually wrap a few functions so that
the refcount ends up being correct at the end (need an extra Unref)
* api/gdk-api.xml, sources/Gdk.metadata: metadata updates for
hiding manually-wrapped Pixbuf stuff
svn path=/trunk/gtk-sharp/; revision=8913
use when the IntPtr is NULL.
* generator/SignalHandler.cs, generator/CallbackGen.cs: removed
call to Initialize for structs
* gtk/Clipboard.custom, gtk/ClipboardClearFunc.cs,
gtk/ClipboardGetFunc.cs,
gtk/GtkSharp.GtkClipboardClearFuncNative.cs,
gtk/GtkSharp.ClipboardGetFuncNative.cs, SelectionData.custom:
Hand-wrapped selection handling stuff, along with relevant
signals and the like.
* gnome/voidObjectAffineSVPintSignal.cs: removed Initialize
for hand-wrapped signal
* sample/GnomeHelloWorld.cs, sample/Size.cs: compare against
.Zero instead of using IsNull
* api/gtk-api.xml, sources/Gtk.metadata: metadata updates for
hiding some manually-wrapped stuff
svn path=/trunk/gtk-sharp/; revision=8912
Much of this patch from Vlad, with substantial rework by mk.
* */makefile.win32 : introduce mapdllnames.pl, api, and glue
* generator/CallbackGen.cs : rework namespacing for csc compilation
* generator/Parameters.cs : ditto
* generator/Signal.cs : ditto
* generator/SignalHandler.cs : ditto
* glue/win32dll.c : new dll construction source
* glib/Value.cs : new ushort ctor/cast operator
* gtk/Table.custom : comment this out until we add a default ctor tag
* gtk/ThreadNotify.cs : make ReadyEvent public
* sources/Gdk.metadata : mark a Parse() param as ref
svn path=/trunk/gtk-sharp/; revision=8590
WeakReferences instead of hashing the real objects. Without this
change, GObjects were never collected.
(Raw, set): Put a WeakReference to the object in Objects.
(Object.GetObject): Get the WeakReference from Objects, and from
there the actual object.
(Object.DisposeNative): Remove the Raw pointer from Objects.
svn path=/trunk/gtk-sharp/; revision=8578