Commit Graph

520 Commits

Author SHA1 Message Date
Gonzalo Paniagua Javier
ca54b617d6 2003-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gconf/tools/schemagen.cs: support for lists.

svn path=/trunk/gtk-sharp/; revision=19140
2003-10-17 17:36:20 +00:00
Mike Kestner
686688d760 2003-10-15 Mike Kestner <mkestner@ximian.com>
* generator/Property.cs : use new Opaque value ctor and
	rework get/set blocks for Opaque types. [Fixes #47959]
	* glib/Opaque.cs : kill explicit IntPtr operator.
	* glib/Value.cs : rework Opaque value ctor.

svn path=/trunk/gtk-sharp/; revision=19088
2003-10-15 20:13:50 +00:00
Mike Kestner
63887acbb5 2003-10-14 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : rule for ClipboardGetFunc
	* gtk/Clipboard.custom : comment out for now don't think any
	of this is needed.
	* gtk/ClipboardClearFunc.cs : gen'd now
	* gtk/ClipboardGetFunc.cs : gen'd now
	* gtk/GtkSharp.GtkClipboardClearFuncNative.cs : gen'd now
	* gtk/GtkSharp.GtkClipboardGetFuncNative.cs : gen'd now
	* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : remove a couple clipboard hides

svn path=/trunk/gtk-sharp/; revision=19048
2003-10-14 21:27:46 +00:00
Mike Kestner
708906b081 2003-10-14 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* gtk/Gtk.metadata : begin the port of the Gtk rules
	* gtk/Makefile.in : apply metadata in gen target
	* gtkhtml/gtkhtml-api.xml : regenerated
	* gtkhtml/Gtk.metadata : a couple rules ported
	* gtkhtml/Makefile.in : apply metadata in gen target
	* sources/Gtk.metadata : port first 350 lines of rules.

svn path=/trunk/gtk-sharp/; revision=19047
2003-10-14 20:29:59 +00:00
Mike Kestner
4877d314e9 2003-10-14 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : removed all the obsolete "out" rules

svn path=/trunk/gtk-sharp/; revision=19041
2003-10-14 17:36:10 +00:00
Mike Kestner
bdc5c7071f 2003-10-13 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : mark an array param on PixbufDestroyNotify
	* gdk/gdk-api.xml : regenerated
	* generator/CallbackGen.cs : Handle out params in callback sigs
	and ditch the object[] args handling for typed args.
	* generator/Parameters.cs : more proactive PassAs logic.  We now
	default all simple pointer types (uint*, int*, double*, etc...)
	to out params unless they are marked otherwise in the XML with a
	pass_as tag or an array tag.  [Fixes #32104]

svn path=/trunk/gtk-sharp/; revision=18993
2003-10-13 21:53:40 +00:00
Mike Kestner
f314da0c9f 2003-10-13 Mike Kestner <mkestner@ximian.com>
* gnome/Gnome.metadata : new xpath metadata rules
	* gnome/Makefile.in : apply metadata before generation
	* gnome/gnome-api.xml : regenerated
	* parser/gapi-fixup.cs : use XmlDocument.Save (filename)
	instead of opening a stream manually.
	* sources/Gnome.metadata : killed

svn path=/trunk/gtk-sharp/; revision=18975
2003-10-13 17:38:22 +00:00
Mike Kestner
6e44bd8cdb 2003-10-12 Mike Kestner <mkestner@ximian.com>
* art/Art.metadata : new xpath metadata rules
	* art/Makefile.in : apply metadata before generation
	* atk/Atk.metadata : new xpath metadata rules
	* atk/Makefile.in : apply metadata before generation
	* gda/Gda.metadata : new xpath metadata rules
	* gda/Makefile.in : apply metadata before generation
	* gdk/Gdk.metadata : new xpath metadata rules
	* gdk/Makefile.in : apply metadata before generation
	* gnomedb/GnomeDb.metadata : new xpath metadata rules
	* gnomedb/Makefile.in : apply metadata before generation
	* pango/Pango.metadata : new xpath metadata rules
	* pango/Makefile.in : apply metadata before generation
	* parser/Makefile.in : build and install new gapi-fixup
	* parser/gapi-fixup.cs : new xpath based metadata engine
	* sources/*.metadata : remove most of the old metadata,
	still have to convert Gtk and Gnome to xpaths.

svn path=/trunk/gtk-sharp/; revision=18947
2003-10-13 03:06:22 +00:00
Mike Kestner
4fa6636411 2003-10-11 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : applied patch from jluke for hides
	requested in bug #38660. Also cleaned up the sprawling "hidden"
	rules to reduce the overall footprint.

svn path=/trunk/gtk-sharp/; revision=18894
2003-10-11 22:42:26 +00:00
Mike Kestner
03ac3ab7fe 2003-10-11 Mike Kestner <mkestner@ximian.com>
* generator/OpaqueGen.cs (FromNativeReturn): just do a
	new on the type.  GLib.Opaque.GetOpaque was apparently an
	homage to GetObject that just seems wrong.

svn path=/trunk/gtk-sharp/; revision=18893
2003-10-11 21:33:16 +00:00
Mike Kestner
45bc875da7 2003-10-11 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : markes some out tags on
	TreeView.GetCursor.  [Fixes #49556]

svn path=/trunk/gtk-sharp/; revision=18892
2003-10-11 21:13:15 +00:00
Mike Kestner
71e9414883 2003-10-11 Mike Kestner <mkestner@ximian.com>
* generator/Parameters.cs : Properly handle out params for
	Object and Opaque types.
	* gtk/ListStore.custom: remove out on GetValue overload
	* gtk/TreeStore.custom: remove out on GetValue overload
	* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : remove some incorrect out tags

svn path=/trunk/gtk-sharp/; revision=18891
2003-10-11 20:53:10 +00:00
Mike Kestner
e72ae71073 2003-10-10 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* sources/Gtk.metadata : mark pos and path pass_as="out" for
	TreeView.GetDragDestRow and GetDestRowAtPos [Fixes #49517]

svn path=/trunk/gtk-sharp/; revision=18869
2003-10-10 22:14:01 +00:00
Mike Kestner
3b6068b79b fix bug number in ChangeLog
svn path=/trunk/gtk-sharp/; revision=18868
2003-10-10 21:57:14 +00:00
Mike Kestner
55d02e6062 2003-10-10 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* gtk/TreePath.custom : implement Indices property by
	hand. Patch from tds00mahi@thn.htu.se (malte) [Fixes #49254]
	* sources/Gtk.metadata : hide TreePath.Indices.

svn path=/trunk/gtk-sharp/; revision=18867
2003-10-10 21:55:32 +00:00
Mike Kestner
8fd17765c1 2003-10-10 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated
	* gtk/FileSelection.custom : implement the Selections property by
	hand.  [Fixes #49254]
	* sources/Gtk.metadata : hide FileSelection.GetSelections.

svn path=/trunk/gtk-sharp/; revision=18866
2003-10-10 21:34:34 +00:00
Mike Kestner
3f0273bece 2003-10-10 Mike Kestner <mkestner@ximian.com>
* */makefile.win32 : remove api dir from build and fix clean target

svn path=/trunk/gtk-sharp/; revision=18864
2003-10-10 18:58:19 +00:00
Mike Kestner
bc8ca2e212 2003-10-10 Mike Kestner <mkestner@ximian.com>
* gdk/gdk-api.xml : regenerated
	* sources/Gdk.metadata : mark Cursor opaque. mark confine_to and
	cursor null_ok in Gdk.Pointer.Grab. [Fixes #48273]

svn path=/trunk/gtk-sharp/; revision=18847
2003-10-10 04:45:42 +00:00
Mike Kestner
a2e87da28e 2003-10-09 Mike Kestner <mkestner@ximian.com>
* generator/Statistics.cs (Report): pretty it up.
	* generator/SymbolTable.cs : handle const-xmlChar as ConstString

svn path=/trunk/gtk-sharp/; revision=18832
2003-10-09 23:14:12 +00:00
Mike Kestner
3814787622 2003-10-09 Mike Kestner <mkestner@ximian.com>
* pango/Makefile.in : fix path to glib-sharp.dll

svn path=/trunk/gtk-sharp/; revision=18830
2003-10-09 22:46:39 +00:00
Martin Willemoes Hansen
6b629e8cef * Makefile.in: Updated to reflect moval of api xml files from api/
to each assembly dir.
        * configure.in: Ditto
        * art/.cvsignore Ditto
        * art/Makefile.in: Ditto
        * atk/.cvsignore Ditto
        * atk/Makefile.in: Ditto
        * gda/.cvsignore Ditto
        * gda/Makefile.in: Ditto
        * gdk/.cvsignore Ditto
        * gdk/Makefile.in: Ditto
        * gdk/gdk-symbols.xml Ditto
        * glade/.cvsignore Ditto
        * glade/Makefile.in: Ditto
        * gnome/.cvsignore Ditto
        * gnome/Makefile.in: Ditto
        * gnomedb/.cvsignore Ditto
        * gnomedb/Makefile.in: Ditto
        * gst/.cvsignore Ditto
        * gst/Makefile.in: Ditto
        * gtk/.cvsignore Ditto
        * gtk/Makefile.in: Ditto
        * gtk/gtk-symbols.xml Ditto
        * gtkhtml/.cvsignore Ditto
        * gtkhtml/Makefile.in: Ditto
        * pango/.cvsignore Ditto
        * pango/Makefile.in: Ditto
        * rsvg/.cvsignore Ditto
        * rsvg/Makefile.in: Ditto
        * sources/gtk-sharp-sources.xml: Ditto
        * api/: Removed

svn path=/trunk/gtk-sharp/; revision=18827
2003-10-09 22:29:59 +00:00
Mike Kestner
3c973421cb 2003-10-09 Mike Kestner <mkestner@ximian.com>
* api/*-api.xml : regenerated
	* parser/gapi_pp.pl : ignore simple comments.  [Fixes #47450]
	* parser/gapi2xml.pl : turn off debug.

svn path=/trunk/gtk-sharp/; revision=18794
2003-10-09 05:54:55 +00:00
Mike Kestner
aa9ff69ce1 2003-10-09 Mike Kestner <mkestner@ximian.com>
* generator/Property.cs : don't do new for Objects if FromNativeReturn
        returns null.  [Fixes #48055]

svn path=/trunk/gtk-sharp/; revision=18793
2003-10-09 05:16:37 +00:00
Mike Kestner
732cdf7729 2003-10-08 Mike Kestner <mkestner@ximian.com>
* */Makefile.in : rework the prefix handling for duncan's packaging.

svn path=/trunk/gtk-sharp/; revision=18778
2003-10-08 22:13:47 +00:00
Martin Willemoes Hansen
691173a8ac * gnome/PrintJob.custom: Added default ctor.
* gnome/PrintDialog.custom: Added overloaded ctor with fewer parameters.
        * sources/Gnome.metadata: Disabled default ctor for PrintJob,
          changed type from int to PrintDialogFlags for PrintDialog ctor and
          changed return type from byte to string for PrintConfig.Get.

svn path=/trunk/gtk-sharp/; revision=18738
2003-10-08 07:16:39 +00:00
Mike Kestner
f716fb7003 2003-10-07 Mike Kestner <mkestner@ximian.com>
* api/gtk-api.xml : regenerated
	* generator/Method.cs : gen new_flag automatically if set
	* sources/Gtk.metadata : mark new_flag on Gtk.Bin.GetChild

svn path=/trunk/gtk-sharp/; revision=18736
2003-10-08 02:56:44 +00:00
Mike Kestner
c9580f2355 2003-10-07 Mike Kestner <mkestner@ximian.com>
* generator/ObjectGen.cs (Generate): check sigs.Count in addition
	to the null check to determine if the signals hash should be
	generated.

svn path=/trunk/gtk-sharp/; revision=18718
2003-10-07 22:21:45 +00:00
Mike Kestner
ec59bb6398 2003-10-07 Mike Kestner <mkestner@ximian.com>
* parser/gapi2xml.pl : look for ");" at the end of property
	declarations to avoid problems with ';' in property docstrings.
	* api/gtk-api.xml : regenerated.  [Fixes #47987]

svn path=/trunk/gtk-sharp/; revision=18715
2003-10-07 19:28:40 +00:00
Mike Kestner
9eeca84abe 2003-10-07 Mike Kestner <mkestner@ximian.com>
* glib/ListBase.cs : assume ref_owned=false for GObject lists.
	[Fixes #49145]

svn path=/trunk/gtk-sharp/; revision=18710
2003-10-07 18:08:32 +00:00
Mike Kestner
0ea6f12c9e 2003-10-07 Mike Kestner <mkestner@ximian.com>
* gtkhtml/Makefile.in : add art-sharp ref
	* sources/Gtk.metadata : make gtk_widget_size_request pass_as ref
	instead of out.  [Fixes #46354]

svn path=/trunk/gtk-sharp/; revision=18709
2003-10-07 17:11:19 +00:00
Mike Kestner
f350dd74fa 2003-10-07 Mike Kestner <mkestner@ximian.com>
* gtkhtml/Makefile.in : add gnome api to includes and ref in build
	* gtkhtml/gkthtml-api.xml : regenerated
	* sources/Gtk.metadata : remove the gtkhtml gnomeprint hides

svn path=/trunk/gtk-sharp/; revision=18708
2003-10-07 16:19:51 +00:00
Mike Kestner
65fec771bb 2003-10-06 Mike Kestner <mkestner@ximian.com>
* Makefile.in : add gtkhtml dir.
	* configure.in : expand gtkhtml/Makefile
	* api/Makefile.in : remove gtkhtml-api.xml
	* generator/CodeGenerator.cs : parse new --outdir, --customdir,
	and --assembly-name args.
	* generator/GenerationInfo.cs (Ctor): new (dir, dir,assembly) ctor
	* gtkhtml/HTMLStream.custom : moved here from gtk dir
	* gtkhtml/gtkhtml-api.xml : moved here from api dir
	* gtkhtml/Makefile.in : gen source and build dll
	* sources/gtk-sharp-sources.xml : write gtkhtml api to new dir

svn path=/trunk/gtk-sharp/; revision=18696
2003-10-07 05:52:23 +00:00
Mike Kestner
9a0e14875a 2003-10-06 Artem Popov <artemis@yandex.ru>
* gtk/Dialog.custom : Action area is an HButtonBox, not a VBox.

svn path=/trunk/gtk-sharp/; revision=18686
2003-10-06 20:54:27 +00:00
Mike Kestner
9877690874 2003-10-06 Mike Kestner <mkestner@ximian.com>
* generator/InterfaceGen.cs (Generate): gen the EventHandlers for sigs
	* generator/Signal.cs (GetHandlerName): kill this and split it into
	EventHandlerName and EventHandlerArgsName props instead of the ugly
	out param hack.
	(GenEventHandler): make public void and add gen_info param. open
	stream with gen_info. use new *Name props.
	(Generate): only gen the EventHandler if we're genning the container,
	not for implementors.

svn path=/trunk/gtk-sharp/; revision=18684
2003-10-06 20:12:09 +00:00
Mike Kestner
06a02e97b4 2003-10-06 Mike Kestner <mkestner@ximian.com>
* generator/CodeGenerator.cs (Main): use new ObjectGen.GenerateMappers.
	* generator/GenerationInfo.cs (Ctor): new (dir, assembly) ctor
	* generator/ObjectGen.cs : move hash management to Generate from Ctor,
	index it on dir, and make it hold new DirectoryInfo refs.  Refactor
	GenerateMapper. The object mappers are now assembly based instead of
	namespace based.

svn path=/trunk/gtk-sharp/; revision=18681
2003-10-06 18:18:49 +00:00
Mike Kestner
1c7dfb776c 2003-10-06 Mike Kestner <mkestner@ximian.com>
* generator/Signal.cs (Generate): pass gen_info to sighdnlr.Generate.
	use gen_info.AssemblyName in Args instantiation.
	* generator/SignalHandler.cs (Generate): use gen_info to open stream.
	refactor out some local vars.

svn path=/trunk/gtk-sharp/; revision=18678
2003-10-06 16:15:05 +00:00
Mike Kestner
be9946dca2 2003-10-04 Mike Kestner <mkestner@ximian.com>
* generator/CallbackGen.cs : remove CloseWriter call.
	* generator/GenBase.cs : kill CreateWriter and CloseWriter.

svn path=/trunk/gtk-sharp/; revision=18616
2003-10-05 00:37:24 +00:00
Mike Kestner
460b3e5623 2003-10-04 Mike Kestner <mkestner@ximian.com>
* generator/AliasGen.cs : stub new Generate overload.
	* generator/BoxedGen.cs : implement new Generate overload.
	* generator/CallbackGen.cs (Generate):implement new overload.
	* generator/ClassBase.cs : implement new Generate overload and
	pass around the gen_info.
	* generator/ClassGen.cs : implement new Generate overload.
	* generator/Ctor.cs (Generate): s/sw/gen_info.
	* generator/EnumGen.cs : implement new Generate overload.
	* generator/GenBase.cs : expose NSElem, add gen_info param to
	AppendCustom. kill CreateWriter.
	(GenWrapper): add gen_info param and use it to open stream.
	* generator/GenerationInfo.cs : new class to pass around generation
	related information and perform tasks like opening streams.
	* generator/IGeneratable.cs : add Generate(gen_info) overload.
	* generator/InterfaceGen.cs : implement new Generate overload.
	* generator/ManualGen.cs : stub new Generate overload.
	* generator/Method.cs (Generate): accept gen_info. kill GenerateComments.
	* generator/ObjectGen.cs : implement new Generate overload.
	* generator/OpaqueGen.cs : implement new Generate overload.
	* generator/Parameters.cs (Initialize): s/sw/gen_info.
	* generator/Property.cs (Generate): accept gen_info.
	* generator/Signal.cs (Generate): accept gen_info.
	* generator/SimpleGen.cs : stub new Generate overload.
	* generator/StructBase.cs : s/sw/gen_info
	* generator/StructGen.cs : implement new Generate overload.

svn path=/trunk/gtk-sharp/; revision=18615
2003-10-05 00:20:17 +00:00
Mike Kestner
c9ef435827 2003-10-03 Mike Kestner <mkestner@ximian.com>
* generator/GenBase.cs : remove unused do_generate private member.

svn path=/trunk/gtk-sharp/; revision=18573
2003-10-03 22:27:47 +00:00
Mike Kestner
5b7aaf1c4f 2003-10-03 Mike Kestner <mkestner@ximian.com>
* generator/*.cs : Kill DoGenerate.

svn path=/trunk/gtk-sharp/; revision=18572
2003-10-03 22:20:40 +00:00
Mike Kestner
c17c41c4a8 2003-10-03 Mike Kestner <mkestner@ximian.com>
* api/gtk-symbols.xml : make GtkType a uint like GType.
	* generator/CodeGenerator.cs : adopt new parser semantics
	* generator/Parser.cs : move to single parser/multiple Parse. Remove
	DoGenerate hack and let the CodeGenerator control this. Return
	generatables instead of loading symboltable.
	* generator/SymbolTable : add AddTypes method. Revamp dealiasing code.

svn path=/trunk/gtk-sharp/; revision=18570
2003-10-03 22:11:47 +00:00
Mike Kestner
ff7d040ae0 2003-10-02 Mike Kestner <mkestner@ximian.com>
* api/gnome-api.xml : regenerated
	* parser/gapi2xml.pl : handle enum <name> {...};  Thanks to
	Martin for identifying the bug and providing a candidate patch.

svn path=/trunk/gtk-sharp/; revision=18524
2003-10-02 15:48:36 +00:00
Mike Kestner
4da6295257 2003-10-01 Mike Kestner <mkestner@ximian.com>
* README.generator : updates for new parser script
	* api/Makefile.in : add gtkhtml-api.xml
	* api/*-api.xml : regenerated
	* parser/makefile : install new parsing script
	* parser/gapi-parser : new xml-driven parsing script
	* sources/makefile : call new parsing script
	* sources/gtk-sharp-sources.xml : new parser input file
	* sources/gtk-sharp.sources : killed

svn path=/trunk/gtk-sharp/; revision=18491
2003-10-01 21:42:29 +00:00
Martin Willemoes Hansen
08d90b259b * sources/Gnome.metadata: Use const-gchar* instead of const-guchar*,
when the value is realy a string
        * api/gnome-api.xml: Ditto

svn path=/trunk/gtk-sharp/; revision=18384
2003-09-29 11:05:30 +00:00
Martin Willemoes Hansen
a366cb0987 * sources/gtk-sharp.sources: Fixed, wrong library used for libgnomeprintui
* api/gnome-api.xml: Ditto

svn path=/trunk/gtk-sharp/; revision=18343
2003-09-28 11:20:01 +00:00
John Luke
c5bc3138ea 2003-09-23 John Luke <jluke@cfl.rr.com>
* README:
	* sources/README: reflect the current targets

svn path=/trunk/gtk-sharp/; revision=18272
2003-09-24 01:36:36 +00:00
Rachel Hestilow
a0d8f5872d 2003-09-19 Rachel Hestilow <rachel@nullenvoid.com>
* sources/Gtk.metadata, api/gtk-api.xml: Rename
	'Event' signals on Widget and TextTag to WidgetEvent
	and TextTag event, respectively, to avoid
	ambiguity with System.EventHandler/EventArgs.

svn path=/trunk/gtk-sharp/; revision=18196
2003-09-20 02:56:10 +00:00
Mike Kestner
86936daeb8 2003-09-18 Mike Kestner <mkestner@ximian.com>
* configure.in : releasing 0.11

svn path=/trunk/gtk-sharp/; revision=18174
2003-09-18 19:12:45 +00:00
Rachel Hestilow
69e51261af 2003-09-17 Rachel Hestilow <rachel@nullenvoid.com>
* glib/DelegateWrapper.cs: Remove 'RemoveIfNotAlive'
	and revamp the memory management to use destroy
	notification.

	* generator/CallbackGen.cs: Do not generate the call to
	RemoveIfNotAlive.

	* gtk/GtkSharp.GtkClipboardGetFuncNative,
	GtkSharp.GtkClipboardClearFuncNative: Do not call
	RemoveIfNotAlive.

svn path=/trunk/gtk-sharp/; revision=18163
2003-09-18 03:49:18 +00:00
Rachel Hestilow
9ff3497076 2003-09-17 Rachel Hestilow <rachel@nullenvoid.com>
* generator/StructBase.cs: Make pointer, wrapped,
	bitfield, and dummy fields private fields.

svn path=/trunk/gtk-sharp/; revision=18162
2003-09-18 03:43:10 +00:00