Commit Graph

169 Commits

Author SHA1 Message Date
Mike Kestner
f61ac5c89c 2003-12-03 Mike Kestner <mkestner@speakeasy.net>
* generator/CallbackGen.cs : use new sig and isig classes.
	* generator/Ctor.cs : use new sig, isig, and body classes.
	* generator/ImportSignature.cs : isig code spun out from Parameters.
	* generator/Method.cs : use new sig, isig, and body classes.
	* generator/MethodBody.cs : spun Initialize, GetCallString,
	Finish, and Exception throwing methods from Parameters.
	* generator/Parameters.cs : Slayed the evilness that was CreateSignature.
	It is now essentially a container for Parameter classes instead of a
	tangled mess of code trying to do everything remotely related to
	parameter lists. Also completely killed the VAType/IsVarArgs stuff,
	as it can be done with the array and params attrs instead.
	* generator/Property.cs : use new sig class.
	* generator/Signature.cs : new method sig generator extracted from
	Parameters class. add "params" keyword support for tagged parameters.
	* gnome/Gnome.metadata : hide IconList.GetSearchPath (to be manual)
	* gnome/gnome-api.xml : regen
	* gtk/ListStore.custom : kill unneeded overload
	* gtk/TreeStore.custom : kill unneeded overload
	* gtk/Gtk.metadata : mark params/args on *store_newv
	* gtk/gtk-api.xml : regenerated

svn path=/trunk/gtk-sharp/; revision=20755
2003-12-03 23:08:14 +00:00
Ettore Perazzoli
7a10147c5c * sample/TestDnd.cs: New.
* gtk/TargetEntry.custom: New.

* glue/dragcontext.c: New.

* glib/Object.cs: New public property TypeName in class Object.

* gdk/DragContext.custom: New.

svn path=/trunk/gtk-sharp/; revision=20754
2003-12-03 20:23:25 +00:00
Mike Kestner
96f6adc6a7 2003-11-29 Mike Kestner <mkestner@speakeasy.net>
* gtk/Gtk.metadata : fix targets for Drag.SourceSet.
	* gtk/gtk-api.xml : regen

svn path=/trunk/gtk-sharp/; revision=20620
2003-11-30 03:45:41 +00:00
Mike Kestner
c1916a0aa0 2003-11-29 Mike Kestner <mkestner@speakeasy.net>
* generator/Parameters.cs : handle null_ok for arrays.
	* gtk/Gtk.metadata : mark a null_ok in Drag.DestSet
	* gtk/gtk-api.xml : regen

svn path=/trunk/gtk-sharp/; revision=20619
2003-11-30 03:25:35 +00:00
Mike Kestner
32f12c714b 2003-11-29 Mike Kestner <mkestner@speakeasy.net>
* */Makefile.in : remove the nowarns
	* gdk/Rectangle.custom : add System.Drawing.Rect implicit cast op.
	* sample/Size.cs : use System.Drawing.Rectangles
	* sample/GnomeHelloWorld.cs : remove an unneeded null check

svn path=/trunk/gtk-sharp/; revision=20612
2003-11-29 23:48:14 +00:00
Mike Kestner
5cebcec983 2003-11-19 Peter Williams <peter@newton.cx>
* gtk/Gtk.metadata: Add some array attributes for some "type *elem,
 	int n_elem" array params.

svn path=/trunk/gtk-sharp/; revision=20251
2003-11-19 23:12:47 +00:00
Mike Kestner
4c24cd0747 2003-11-18 Peter Williams <peter@newton.cx>
* gtk/NodeStore.cs (GetNode): New public function. Patch refactored
	a bit to eliminate code duplication with get_node_cb.

svn path=/trunk/gtk-sharp/; revision=20188
2003-11-18 20:13:39 +00:00
Mike Kestner
62a858e0cd 2003-11-16 Mike Kestner <mkestner@ximian.com>
* generator/Parameters: handle array+len param pairs.
	* gtk/Gtk.metadata : unhide DestDefaults and mark targets param of
	drag_dest_set as array.
	* gtk/gtk-api.xml : regenerate

svn path=/trunk/gtk-sharp/; revision=20096
2003-11-17 03:44:32 +00:00
Miguel de Icaza
ef410860df Add TreeIter handlers
svn path=/trunk/gtk-sharp/; revision=20057
2003-11-16 05:07:44 +00:00
Mike Kestner
8c66c5c7c6 2003-11-14 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : fully qualify attr paths
	* parser/gapi-fixup.cs : compile a path expression per Ben Maurer
	suggestion.

svn path=/trunk/gtk-sharp/; revision=20013
2003-11-14 22:34:07 +00:00
Mike Kestner
b57221cf44 2003-11-05 Mike Kestner <mkestner@ximian.com>
* gtk/ITreeNode.cs : make Parent readonly
	* gtk/TreeNode.cs : use an internal method to set parent on the
	child, and set child.Parent to null in RemoveChild.

svn path=/trunk/gtk-sharp/; revision=19651
2003-11-05 22:11:45 +00:00
Mike Kestner
58b580c26f 2003-11-04 Mike Kestner <mkestner@ximian.com>
* gtk/TreeNodeAttribute.cs : sealed per Ben Maurer's suggestion.
	* gtk/TreeNodeValueAttribute.cs : ditto

svn path=/trunk/gtk-sharp/; revision=19648
2003-11-05 21:25:32 +00:00
Mike Kestner
912980c396 2003-11-04 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : add set to Val prop
	* glue/Makefile.am : build nodestore.c
	* glue/makefile.win32 : link nodestore.o
	* glue/nodestore.c : new, glue for TreeModel implementation
	* gtk/NodeStore.cs : new tree store implementation
	* gtk/ITreeNode.cs : new interface for nodestore node types
	* gtk/TreeNode.cs : abstract class for deriving nodestore nodes
	* gtk/TreeNodeAttribute.cs : tree node marking attr
	* gtk/TreeNodeValueAttribute.cs : node column marking attr
	* gtk/TreeView.custom : add ctor(NodeStore)

svn path=/trunk/gtk-sharp/; revision=19630
2003-11-04 23:20:15 +00:00
John Luke
8c74eb6186 * gtk/Gtk.metadata: set correct preferred constructor for button
* gtk/gtk-api.xml: regenerated

svn path=/trunk/gtk-sharp/; revision=19628
2003-11-04 22:52:11 +00:00
Radek Doulik
3fb667172b 2003-11-01 Radek Doulik <rodo@ximian.com>
* gtk/TreeModelSort.custom: implementation of GetValue/SetValue
	(copied from TreeStore.custom)

	* gtk/TreeModel.custom: added GetValue/SetValue

svn path=/trunk/gtk-sharp/; revision=19518
2003-11-01 12:00:26 +00:00
Mike Kestner
7cf6671bce 2003-10-30 Ken Foster <kenfoster@tampabay.rr.com>
* glue/button.c: initial creating of glue file for GdkButton
	* glue/Makefile.am: added button.c to glue make
	* glue/makefile.win32: added button.c to win32 glue make
	* gtk/Button.custom: expose in_button GdkButton member

svn path=/trunk/gtk-sharp/; revision=19486
2003-10-30 18:19:59 +00:00
Mike Kestner
0a6f618d58 2003-10-28 Mike Kestner <mkestner@ximian.com>
* */Makefile.in : create the apidir before installing to it.

svn path=/trunk/gtk-sharp/; revision=19442
2003-10-28 20:03:29 +00:00
Martin Willemoes Hansen
9925ac1e6f * gtk/Gtk.metadata: Added the rest of sources/Gtk.metadata
and sorted the metadata.
        * gtk/gtk-api.xml: Regenerated, to reflect the above changes.
          Tags are swapped around. PaintBox, PaintBoxGap, PaintShadow and
          PaintShadowGap are moved arround as well.
        * sources/Gtk.metadata: Removed

svn path=/trunk/gtk-sharp/; revision=19407
2003-10-26 19:05:59 +00:00
Martin Willemoes Hansen
109fe49de3 * gtk/Gtk.metadata: Added metadata from sources/Gtk.metadata
* gtk/gtk-api.xml: Reflects changes of the metadata move,
          tags are swapped around.
        * sources/Gtk.metadata: Removed metadata, which are moved to
          gtk/Gtk.metadata

svn path=/trunk/gtk-sharp/; revision=19349
2003-10-23 21:28:32 +00:00
Martin Willemoes Hansen
d4c4b4f137 * gtk/Gtk.metadata: Added metadata from sources/Gtk.metadata
* gtk/gtk-api.xml: Reflects changes of the metadata move,
          tags are swapped around.
        * gtkhtml/Gtk.metadata: Added metadata from sources/Gtk.metadata
        * gtkhtml/gtkhtml-api.xml: Reflects changes of the metadata move,
          tags are swapped around.
        * sources/Gtk.metadata: Removed metadata, which are moved to
          gtk/Gtk.metadata and gtkhtml/Gtk.metadata

svn path=/trunk/gtk-sharp/; revision=19310
2003-10-22 19:25:37 +00:00
Mike Kestner
974db35edf 2003-10-20 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : mark TargetEntry.flags as type TargetFlags.
	* gtk/gtk-api.xml : regenerated  [fixes #49859]

svn path=/trunk/gtk-sharp/; revision=19235
2003-10-20 22:05:01 +00:00
Mike Kestner
5eadb9b87c 2003-10-20 Mike Kestner <mkestner@ximian.com>
* generator/Parameters.cs : treat interface out params like objects.
	* gtk/gtk-api.xml : regenerated
	* gtk/Gtk.metadata : mark TreeSelection.GetSelected params out.
	* gtk/TreeSelection.custom : emptied since it's now generated.
	* sources/Gtk.metadata : kill hide of TreeSelection.GetSelected.
	[fixes #49858]

svn path=/trunk/gtk-sharp/; revision=19229
2003-10-20 21:27:38 +00:00
Mike Kestner
8eeccbb55c 2003-10-20 Mike Kestner <mkestner@ximian.com>
* atk/atk-api.xml : regenerated
	* gdk/gdk-api.xml : regenerated
	* gtk/gtk-api.xml : regenerated
	* gtkhtml/gtkhtml-api.xml : regenerated [Fixes #49875]
	* parser/gapi2xml.pl : handle unnamed parameter declarations.

svn path=/trunk/gtk-sharp/; revision=19217
2003-10-20 20:02:16 +00:00
Mike Kestner
ff35a19db0 2003-10-18 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : add move-node rules for Paint methods.
	* gtk/gtk-api.xml : regenerated
	* parser/gapi2xml.pl : put paint_ methods in global, not Paint.
	* parser/gapi-fixup.cs : add move-node rule handling. [Fixes #47980]

svn path=/trunk/gtk-sharp/; revision=19184
2003-10-19 01:35:24 +00:00
Mike Kestner
67e0164e7d 2003-10-17 Mike Kestner <mkestner@ximian.com>
* gtk/Window.cs : override Raw prop and take a ref, since gtk+
	owns the ref to new Windows, and we need a ref.  [Fixes #47721]

svn path=/trunk/gtk-sharp/; revision=19151
2003-10-17 22:31:46 +00:00
Gonzalo Paniagua Javier
971b309120 2003-10-17 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gtk/ThreadNotify.cs: close the pipe and detach the GSource when
	explicitly requested or finalized.

svn path=/trunk/gtk-sharp/; revision=19142
2003-10-17 19:17:19 +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
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
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
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
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
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
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
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
Gonzalo Paniagua Javier
0663cb37ba 2003-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gdk/Pixbuf.custom: use windows dll name. Removed DllImport that is
	already in the generated file.

	* glib/Thread.cs: use windows dll name.

	* gtk/ThreadNotify.cs: close <remark> comment.

svn path=/trunk/gtk-sharp/; revision=17731
2003-08-30 00:26:38 +00:00
Alp Toker
68261125e9 2003-08-28 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for
        TextGC

svn path=/trunk/gtk-sharp/; revision=17678
2003-08-28 00:19:39 +00:00
John Luke
310ff89edd 2003-08-26 John Luke <jluke@cfl.rr.com>
* gtk/ThreadNotify.cs: mark dllimported methods private

svn path=/trunk/gtk-sharp/; revision=17651
2003-08-27 02:26:05 +00:00
Alp Toker
e91763b734 2003-08-26 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for
        BaseGC, plus the ability to set GCs

svn path=/trunk/gtk-sharp/; revision=17605
2003-08-26 00:48:00 +00:00
Duncan Mak
710bbc7959 2003-08-06 Xavier Amado <xavier@blackbloodstudios.com>
* gtk/Notebook.custom (CurrentPageWidget): Added a property for
	getting the current page widget directly.

2003-07-30  Duncan Mak  <duncan@ximian.com>

	* en/Gnome/CanvasShape.xml: documented.

svn path=/trunk/gtk-sharp/; revision=17100
2003-08-06 04:40:02 +00:00
Duncan Mak
fec0df9def * art/Makefile.in:
* atk/Makefile.in:
* gda/Makefile.in:
* gdk/Makefile.in:
* glade/Makefile.in:
* gnome/Makefile.in:
* gnomedb/Makefile.in
* gtk/Makefile.in:
* pango/Makefile.in:
* rsvg/Makefile.in: Suppress warnings CS0660 and CS0661.

svn path=/trunk/gtk-sharp/; revision=16730
2003-07-27 06:48:40 +00:00
Mike Kestner
e13cec3477 2003-07-23 Mike Kestner <mkestner@ximian.com>
* gtk/FileSelection.custom : more s/new Object/GetObject

svn path=/trunk/gtk-sharp/; revision=16590
2003-07-23 23:56:47 +00:00
Mike Kestner
23464e6514 2003-07-23 Mike Kestner <mkestner@ximian.com>
[Equal credit to Ettore Perazzoli <ettore@ximian.com> for fixing
	all the bugs in the initial patch]
	* */*.custom : fix incorrect usage of new Object (IntPtr) where
	Glib.Object.GetObject should've been used.  add ref_owned param
	to GetObject calls.
	* generator/CallbackGen.cs : setup ref_owned in bodies
	* generator/ClassBase.cs : add ref_owned to GetObject FromNative call
	* generator/Method.cs : setup ref_owned in bodies
	* generator/Property.cs : setup ref_owned in bodies
	* generator/SignalHandler.cs : pass ref_owned to GetObject
	* generator/StructBase.cs : setup ref_owned in bodies
	* glib/Object.cs : kill Ref/Unref methods.  Don't want it to be
	easy for users to screw with ref counts, or make it look like they
	should need to.
	(GetObject): add ref_owned param and ref/unref to remain at 1
	* glib/Value.cs : pass ref_owned to GetObject

svn path=/trunk/gtk-sharp/; revision=16581
2003-07-23 17:19:21 +00:00
Duncan Mak
05172d9599 * en/Gtk/FSButton.xml: Removed the constructor, per the custom
file update and added documentation.

* gtk/FileSelection.custom (FSButton): Mark the constructor as
'internal', instead of 'public'.

svn path=/trunk/gtk-sharp/; revision=16513
2003-07-22 04:38:13 +00:00