Commit Graph

48 Commits

Author SHA1 Message Date
Mike Kestner
4bf0846a5f 2003-02-22 Mike Kestner <mkestner@speakeasy.net>
* sources/makefile : patch from Charles Krempeaux to add
	get-source-code target which wgets tarballs.

svn path=/trunk/gtk-sharp/; revision=11842
2003-02-22 19:19:15 +00:00
Mike Kestner
c0b574a686 2003-02-21 Mike Kestner <mkestner@speakeasy.net>
* mapdllnames.pl : a little whitespace action
	* api/*-api.xml : move to win32 dllnames
	* */makefile.win32 : remove the mapdllnames step
	* */*.cs : move to win32 dllnames
	* */*.custom : move to win32 dllnames
	* sources/gtk-sharp.sources : move to win32 dllnames

svn path=/trunk/gtk-sharp/; revision=11823
2003-02-22 04:34:56 +00:00
Mike Kestner
d743db9340 2003-02-21 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : remove stray enum get_type methods.
	* parser/gapi2xml.pl : ignore get_type methods on enums.

svn path=/trunk/gtk-sharp/; revision=11796
2003-02-21 05:54:32 +00:00
Mike Kestner
90913930a7 oops, mark the Set method, not Get.
svn path=/trunk/gtk-sharp/; revision=11791
2003-02-21 03:44:42 +00:00
Mike Kestner
284ab36d8b 2003-02-19 Mike Kestner <mkestner@speakeasy.net>
* 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
2003-02-20 05:31:14 +00:00
Duncan Mak
bab803685d * api/gtk-api.xml:
* sources/Gtk.metadata: Mark 'out' param in GetSelectionBounds,
thanks to Lee Mallabone for spotting that.

svn path=/trunk/gtk-sharp/; revision=11584
2003-02-14 19:17:10 +00:00
Duncan Mak
fdaa84817e * sources/Gtk.metadata:
* 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
2003-02-10 00:32:14 +00:00
Duncan Mak
7a1734be34 Mark out params for methods in GtkCalendar,
GtkCellRenderer, GtkWindow, GtkRuler, GtkLayout, GtkScrolledWindow
and GtkSpinButton. Monotalk is very useful for this kind of work.

svn path=/trunk/gtk-sharp/; revision=11429
2003-02-10 00:09:42 +00:00
Duncan Mak
b566d8b21a 2003-02-06 Duncan Mak <duncan@ximian.com>
* 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
2003-02-06 07:03:49 +00:00
Miguel de Icaza
41e3e3bb9a Hopefully this will work, but its not automatic :-(
svn path=/trunk/gtk-sharp/; revision=11234
2003-02-05 04:53:30 +00:00
Alejandro Sánchez Acosta
737ac92412 Added gnome-print XML API.
----------------------------------------------------------------------

svn path=/trunk/gtk-sharp/; revision=11114
2003-02-02 16:27:43 +00:00
Duncan Mak
4d694b215f * gtk/Widget.custom: Add a nice overload, rename it to
'RequestSize' instead of 'SizeRequest' to avoid a name clash.

* api/gtk-api.xml:
* sources/Gtk.metadata: out param for gtk_widget_get_size_request.

svn path=/trunk/gtk-sharp/; revision=11046
2003-01-30 02:56:49 +00:00
Duncan Mak
984d952967 * api/gtk-api.xml:
* sources/Gtk.metadata:
* sources/Pango.metadata: Add some more metadata rules.

svn path=/trunk/gtk-sharp/; revision=11042
2003-01-30 02:33:38 +00:00
Duncan Mak
62a545218f Update the xml files.
svn path=/trunk/gtk-sharp/; revision=11040
2003-01-30 02:27:57 +00:00
Rodrigo Moya
52081ec9ed 2003-01-28 Rodrigo Moya <rodrigo@ximian.com>
* configure.in:
	* api/gda-api.xml:
	* api/gnomedb-api.xml:
	* sources/gtk-sharp.sources:
	* sources/Gda.metadata: added support for latest libgda/libgnomedb.

svn path=/trunk/gtk-sharp/; revision=10999
2003-01-28 17:59:36 +00:00
Radek Doulik
10be759584 disable default protected constructor in Frame
svn path=/trunk/gtk-sharp/; revision=10791
2003-01-21 21:42:24 +00:00
Duncan Mak
26a40b9ebf 2003-01-10 Duncan Mak <duncan@ximian.com>
* 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
2003-01-10 19:11:39 +00:00
Rodrigo Moya
4d30832fa7 2003-01-09 Rodrigo Moya <rodrigo@ximian.com>
* makefile:
	* configure.in:
	* api/Makefile.in:
	* api/gphoto-api.xml:
	* sources/gtk-sharp.sources:
	* gphoto/Makefile.in:
	* gphoto/.cvsignore: removed gphoto2 bindings, to be moved to mphoto.

svn path=/trunk/gtk-sharp/; revision=10314
2003-01-09 22:54:37 +00:00
Duncan Mak
e059803b19 2003-01-06 Pedro Abelleira Seco <pedroabelleira@yahoo.es>
* 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
2003-01-07 04:03:48 +00:00
Duncan Mak
8400c23479 2003-01-05 Duncan Mak <duncan@ximian.com>
* sources/Gtk.metadata (TextIter.BackwardSearch): Add out param here too.

svn path=/trunk/gtk-sharp/; revision=10192
2003-01-06 00:28:35 +00:00
Duncan Mak
20160aa0fd * sources/Gtk.metadata (TextIter.ForwardSearch): Add out param
* sources/Gdk.metadata (Drawable.GetSize): Add out param.

* gtk/TextBuffer.custom (Clear): Add a new Clear method.

svn path=/trunk/gtk-sharp/; revision=10187
2003-01-05 23:48:45 +00:00
Alp Toker
6826fd0c1f 2003-01-02 Alp Toker <alp@atoker.com>
* 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
2003-01-02 16:33:19 +00:00
Rodrigo Moya
4f63fe50a9 2002-12-25 Rodrigo Moya <rodrigo@ximian.com>
* sources/gtk-sharp.sources: added libgphoto2.

	* api/gphoto-api.xml: added API file for libgphoto2.

	* gphoto/Makefile.in: added Makefile for building libgphoto2
	bindings.

	* makefile:
	* configure.in:
	* api/Makefile.in: added libgphoto2 to build.

svn path=/trunk/gtk-sharp/; revision=9895
2002-12-26 01:01:22 +00:00
Kristian Rietveld
5bc31b52ca 2002-12-22 Kristian Rietveld <kris@gtk.org>
* 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
2002-12-23 01:54:38 +00:00
Alp Toker
15589b1c83 2002-12-20 Alp Toker <alp@atoker.com>
* 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
2002-12-20 05:44:17 +00:00
Gonzalo Paniagua Javier
35ef99c45f 2002-12-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* api/gdk-api.xml:
	* sources/Gdk.metadata: PixbufLoader.Pixbuf have to ref the new Pixbuf.

svn path=/trunk/gtk-sharp/; revision=9667
2002-12-15 11:58:37 +00:00
Mike Kestner
3a108845d7 2002-11-21 Mike Kestner <mkestner@speakeasy.net>
* 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
2002-11-22 03:30:18 +00:00
Vladimir Vukicevic
58f6f01d45 * glib/Object.cs: add needs_ref boolean that controls whether
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
2002-11-10 10:09:05 +00:00
Vladimir Vukicevic
9ad6d1b6a4 * generator/StructBase.cs: create a Zero static member for
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
2002-11-10 10:03:51 +00:00
Alp Toker
cca2363dae 2002-11-03 Alp Toker <alp@atoker.com>
* sources/gtk-sharp.sources: Update to support GStreamer 0.4.2
        * api/gst-api.xml : ditto
        * gst/Application.cs : ditto

svn path=/trunk/gtk-sharp/; revision=8802
2002-11-03 22:03:42 +00:00
Alp Toker
e06e2ba8dd Add GStreamer support
svn path=/trunk/gtk-sharp/; revision=8726
2002-11-01 05:01:22 +00:00
Mike Kestner
b2f04c1d80 2002-10-26 Mike Kestner <mkestner@speakeasy.net>
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
2002-10-27 02:30:51 +00:00
Mike Kestner
2e07bf7e87 2002-10-26 Mike Kestner <mkestner@speakeasy.net>
* api/*.xml : get libgda and libgnomedb metadata setup
	* gconf/*/Makefile.in : patch from MauricioC for -L's and /r's
	* gnomedb/Makefile.in : patch from MauricioC for -L's and /r's
	* generator/ClassBase.cs (ctor): mangle hash names for sigs and props
	* generator/Parameters.cs (MangleName): handle params, null, and ref
	* generator/Parser.cs (ParseNamespace): ignore "hidden" types
	* generator/StructBase.cs (MangleName): handle params, null, and ref
	* glib/Object.cs (Equals): kill, also kill == and !=
	* sources/Gda.metadata : new, make Gda behave without hand edits
	* sources/GnomeDb.metadata : ditto

svn path=/trunk/gtk-sharp/; revision=8577
2002-10-26 08:03:16 +00:00
Kristian Rietveld
537d076d86 Hrm, also have to commit this.
svn path=/trunk/gtk-sharp/; revision=8072
2002-10-08 19:32:29 +00:00
Rachel Hestilow
301db575de 2002-09-21 Rachel Hestilow <hestilow@ximian.com>
* parser/gapi2xml.pl: Adjust enum regex to allow negative values.

svn path=/trunk/gtk-sharp/; revision=7683
2002-09-21 14:21:15 +00:00
Rachel Hestilow
6b6bb616b2 2002-09-12 Rachel Hestilow <hestilow@ximian.com>
* sources/Gtk.metadata: Set null_ok on the callback argument
	to Menu.Popup.

	* generator/Parameters.cs: Handle null_ok properly for callback
	arguments.

svn path=/trunk/gtk-sharp/; revision=7412
2002-09-12 20:25:29 +00:00
Rachel Hestilow
32ae593a0e 2002-09-11 Rachel Hestilow <hestilow@ximian.com>
* glib/Object.cs (Ref): Added.

	* gtk/Object.custom (Ref): Overload. Note that we were reffed.
	(DisposeNative): Unref if we were explicitly reffed.

	* generator/Method.cs: Call Ref if needs_ret is set.
	* generator/StructBase.cs: Call Ref on all object accessors.

	* glue/style.c: Ref returned GCs.

	* sources/Gtk.metadata: Set needs_ret on various gdk-related
	accessors in GtkWidget. Hide Ref/Unref methods on Widget and
	RcStyle as these ought to be deprecated anyway.

svn path=/trunk/gtk-sharp/; revision=7380
2002-09-12 05:21:16 +00:00
Rodrigo Moya
8b9ee5b8e1 2002-09-08 Rodrigo Moya <rodrigo@gnome-db.org>
* makefile:
	* configure.in:
	* sources/gtk-sharp.sources: added needed stuff for libgnomedb.

	* gnomedb/Makefile.in:
	* api/Makefile.in:
	* api/gnomedb-api.xml: new files for libgnomedb API.

svn path=/trunk/gtk-sharp/; revision=7354
2002-09-11 09:43:17 +00:00
Rachel Hestilow
1f68bc999b 2002-09-07 Rachel Hestilow <hestilow@ximian.com>
* parser/gapi2xml.pl: Add support for "fake struct" opaque types.
	* generator/StructBase.cs: Generate wrapper fields for opaque
	fields as well as pointer fields.
	* api/gdk-symbols.xml: Remove GdkAtom as it is now wrapped.

svn path=/trunk/gtk-sharp/; revision=7311
2002-09-08 01:29:07 +00:00
Rodrigo Moya
14e24ebbf9 2002-08-31 Rodrigo Moya <rodrigo@ximian.com>
* api/gda-api.xml: new file for the libgda API.

	* gda/*: added libgda bindings.

	* sources/README: updated requirements.

svn path=/trunk/gtk-sharp/; revision=7167
2002-09-01 10:28:11 +00:00
Rachel Hestilow
c8d090f62f 2002-08-31 Rachel Hestilow <hestilow@ximian.com>
Proper GList, GSList support. Read-only for now.

	* glue/list.c: Added.
	* glue/Makefile.am: Add list.c
	* glue/type.c: Add function gtksharp_is_object.

	* glib/ListBase.cs, List.cs: Added.
	* glib/SList.cs: Inherit from ListBase.
	* glib/Object.cs: Add static method "IsObject".

	* generator/Method.cs: Pass on element_type to constructor
	if specified.
	* generator/SymbolTable.cs: Move GList to manual types.

	* sample/GladeViewer.cs: Remove list hacks.

	* sources/Gnome.metadata: Specify element types for
	CanvasPathDef.Split and IconList.GetSelection. Rename
	CanvasPathDef *to methods to properly capitalized *To.
	* sources/Gtk.metadata: Hide Widget.ListAccelClosures until
	GClosure is handled properly.
	* sources/Pango.metadata: Added.

	* sample/test/TestToolbar.cs: Compile with recent delegate changes.

svn path=/trunk/gtk-sharp/; revision=7166
2002-09-01 04:46:38 +00:00
Rachel Hestilow
38e7bdeec5 2002-08-28 Rachel Hestilow <hestilow@ximian.com>
* generator/CallbackGen.cs: Generate wrappers to map
	from managed delegates to native ones.
	* generator/Ctor.cs: Call parms.Initialize for the static case.
	* generator/Parameters.cs: Add "CType" property. Append []
	to CSType if necessary. Add "HideData" property if a container
	wishes to hide the user_data (used in callbacks).
	(Initialize): Add case for callback.
	* generator/SymbolTable.cs: Add size_t.

	* glue/program.c: string[] marshalling is no longer broken,
	remove hack.

	* sources/Gtk.metadata: Disable
	GtkColorSelection.SetChangePaletteHook and
	GtkTreeView.GetSearchEqualFunc for now, they return delegates and
	we don't support native->managed delegate mapping yet.

svn path=/trunk/gtk-sharp/; revision=7133
2002-08-28 20:58:01 +00:00
Rachel Hestilow
6c3d639e49 2002-08-26 Rachel Hestilow <hestilow@ximian.com>
* sources/Gtk.metadata: Add null-ok for Menu.Popup.

svn path=/trunk/gtk-sharp/; revision=7071
2002-08-27 00:50:22 +00:00
Rachel Hestilow
0f652408ed 2002-08-23 Rachel Hestilow <hestilow@ximian.com>
* Applied patch from Robot101 for maintainer-clean, etc.
	Needed for packaging.

svn path=/trunk/gtk-sharp/; revision=6977
2002-08-23 21:22:16 +00:00
Rachel Hestilow
e9f5e789b6 2002-08-20 Rachel Hestilow <hestilow@ximian.com>
Ditto for generator and api.

svn path=/trunk/gtk-sharp/; revision=6829
2002-08-20 20:54:28 +00:00
Rachel Hestilow
f94279195c 2002-08-20 Rachel Hestilow <hestilow@ximian.com>
* makefile: Add parser to build (for install only)
	* parser/makefile: Add distclean target.

	* parser/gapi.pl: Forgot to add this.
	* api/: Replace APIs with correctly generated ones.

svn path=/trunk/gtk-sharp/; revision=6827
2002-08-20 20:35:42 +00:00
Radek Doulik
c220e2c8e6 added missing space
svn path=/trunk/gtk-sharp/; revision=6822
2002-08-20 20:03:28 +00:00
Rachel Hestilow
e9d1e0b6dc 2002-08-19 Rachel Hestilow <hestilow@ximian.com>
* art/Makefile.in (clean): Change to avoid bugging out on generated/CVS.

	* glib/ObjectManager.cs: Added. Used to be auto-generated, but
	now it can infer names, and relies on per-namespace ObjectManager
	classes to inform it of oddly-named classes.

	* generator/IGeneratable.cs, GenBase.cs: New "DoGenerate" property.
	* generator/*Gen.cs: Honor DoGenerate.
	* generator/CodeGenerator.cs: Support including dependency files
	which will not be generated.
	* generator/ObjectGen.cs: Generate mapping file per-namespace, as one
	that calls back to the one in glib. Only generate if the name does
	not follow the normal conventions, otherwise, GtkSharp.ObjectManager
	can infer the name.
	* generator/Parser.cs: Accept 'generate' flag to pass on to the
	IGeneratables. Parse a new toplevel element, "symbol", which adds
	a type to the SymbolTable (instead of hard-coding it).
	* generator/SignalHandler.cs: Do not optimize signal handler creation,
   instead creating them in their own namespaces. Do not generate
	if the calling Signal told us not to.
	* generator/Signal.cs: Do not generate handlers if container's DoGenerate
	is false. Adjust to the marshaller name being in a sub-namespace.
	* generator/SymbolTable.cs (AddSimpleType, AddManualType): Used
	to add simple and manually wrapped types at runtime instead of
	compile-time.
	(FromNative): Remove hard-coded cases for manually wrapped types, use
	a generic case instead.

	* api: Added. Move api files and generation targets here.
	* source: Added. Move source parsing here.

	* generator/makefile: Move actual generation to api/.
	* glib/Makefile.in: Remove generated/* target.
	* glue/Makefile.am: Fix to include canvas-marshal. Move canvas stuff
	to GNOME target.

	* gnome/CanvasProxy.cs: Update to work with SignalHandlers being
	namespace-specific.

	* parser/Metadata.pm: Moved to GAPI/Metadata.pm, renamed, etc.
	* parser/gapi2xml.pl: Use GAPI::Metadata.
	* parser/makefile: Install scripts, remove source parse build target.
	Rename formatXML to gapi_format_xml.

svn path=/trunk/gtk-sharp/; revision=6818
2002-08-20 19:56:18 +00:00