Commit Graph

453 Commits

Author SHA1 Message Date
Martin Willemoes Hansen
65f3b21788 * gdk/Pixbuf.custom: Added missing DllImport statement and
proper copyright header.

svn path=/trunk/gtk-sharp/; revision=17686
2003-08-28 10:40:14 +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
Martin Willemoes Hansen
a591aef382 Reverted last bad patch
svn path=/trunk/gtk-sharp/; revision=17647
2003-08-26 21:35:28 +00:00
Gonzalo Paniagua Javier
0996f5f7fd 2003-08-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gconf/GConf/Value.cs: implemented support for lists.

	* glib/ListBase.cs: implemented the IDisposable stuff and created a
	new method, FreeList, to free the list when needed.

	* glade/HandlerNotFoundException.cs: make it derive from
	SystemException. Don't override Message, the message is created in the
	.ctor.

svn path=/trunk/gtk-sharp/; revision=17646
2003-08-26 21:26:30 +00:00
Martin Willemoes Hansen
cf917e3981 * sources/makefile
* sources/gtk-sharp.sources
        * sources/.cvsignore: Target Gtk+-2.2.3 and Pango-1.2.4

svn path=/trunk/gtk-sharp/; revision=17637
2003-08-26 20:27:41 +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
Martin Willemoes Hansen
4289134771 * gnomeprint:
* api/gnomeprint-api.xml: Removed, gnomeprint is now included
        in gnome.

svn path=/trunk/gtk-sharp/; revision=17457
2003-08-21 07:57:27 +00:00
John Luke
350fd53fa7 2003-08-19 John Luke <jluke@cfl.rr.com>
* glib/ListBase.cs:  Add convenience .Append (string) method

svn path=/trunk/gtk-sharp/; revision=17416
2003-08-19 21:07:24 +00:00
Martin Willemoes Hansen
05d0c9bf27 * generator/Method.cs: Fixed bug where all ToString methods
was marked as override, this is only correct if the ToString
        method does not have any parameters.

svn path=/trunk/gtk-sharp/; revision=17402
2003-08-19 10:51:33 +00:00
Mike Kestner
fadf3bc4a9 2003-08-18 Aleksey Sanin <aleksey@aleksey.com>
* generator/SignalHandler.cs : take refs on GObject sig parms.

svn path=/trunk/gtk-sharp/; revision=17397
2003-08-19 04:52:25 +00:00
Duncan Mak
8e1bf959d0 (Gtk.TreeView.CellArea): Apply patch from
Aleksey Sanin <aleksey@aleksey.com> to declare the "Gdk.Rectangle
rect" parameter as an out parameter. This is required because
Gdk.Rectangle is a struct.

svn path=/trunk/gtk-sharp/; revision=17362
2003-08-15 23:19:56 +00:00
Martin Willemoes Hansen
11eb925508 * sources/Gnome.metadata: Added GObject as the parent for GnomePrintTransport and
GnomePrintPdf
        * sources/gtk-sharp.sources: Added libgnomeprintui/gpaui

svn path=/trunk/gtk-sharp/; revision=17327
2003-08-14 14:47:19 +00:00
Martin Willemoes Hansen
fe0b380f6b * sources/makefile:
* sources/gtk-sharp.sources: Added libgnomeprint-2.2.2 and
        libgnomeprintui-2.2.2

svn path=/trunk/gtk-sharp/; revision=17308
2003-08-13 18:41:20 +00:00
Mike Kestner
64b0c972b6 2003-08-08 Mike Kestner <mkestner@ximian.com>
* sources/gtk-sharp.sources : point to gtkhtml-3.0.8 dir
	* sources/gtkhtml-font-style-enum.patch : ditto
	* sources/makefile : fix some urls, make a get-gtkhtml-code
	target, and use gtkhtml-3.0.8 instead of cvs.

svn path=/trunk/gtk-sharp/; revision=17194
2003-08-08 17:45:44 +00:00
Duncan Mak
5b6a4b3dfb 2003-08-06 Duncan Mak <duncan@ximian.com>
* sources/Atk.metadata: Make Mr. Art.VpathDash an Opaque struct
	instead of a plain ol' struct.

svn path=/trunk/gtk-sharp/; revision=17145
2003-08-06 22:14:45 +00:00
Duncan Mak
59a430ee35 (Gtk.Widget.SizeRequest): Mark the
requisition parameter as out.

svn path=/trunk/gtk-sharp/; revision=17140
2003-08-06 20:52:02 +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
4d5ffe430c * sources/Gnome.metadata:
(CanvasItem.SetValist):
(CanvasItem.Construct): Hidden, because we don't support va_list
params.
	(CanvasItem): Hid the constructor, as each subclass has their own
contsructor and we don't support va_list params.
	(CanvasItem.W2i):
(CanvasItem.I2w): Marked parameters as ref, so they can be used as
in/out parameters.
	(Canvas.GetMiterPoints):
(Canvas.GetColor): Fixed return type to be 'bool' instead of 'int'.
	(CanvasClipgroup.Wind): Fixed property type. It should be an
Art.WindRule enum, not a UInt.
	(Canvas.W2cAffine):
(CanvasItem.AffineAbsolute):
(CanvasItem.AffineRelative):
(CanvasItem.I2wAffine):
(CanvasItem.I2cAffine): Hidden, use the impl. in the custom file
instead.
	* gnome/Canvas.custom: Added for W2cAffine.
* gnome/CanvasItem.custom: Reformatted. Added AffineRelative,
AffineAbsolute, I2wAffine, I2cAffine. These are needed because of
the 'const double affine[6]' parameter.

svn path=/trunk/gtk-sharp/; revision=16876
2003-07-30 06:36:18 +00:00
Duncan Mak
51ae478c43 * en/Gtk/Label.xml: Finished documentation for the Gtk.Label
class.

* sources/Gtk.metadata:
* api/gtk-api.xml: Marked the arguments to GetSelectionBounds and
GetLayoutOffsets as out params.

svn path=/trunk/gtk-sharp/; revision=16861
2003-07-29 23:02:50 +00:00
Duncan Mak
5482d6b526 Added new convenience factory methods, FromStream and FromAssembly.
svn path=/trunk/gtk-sharp/; revision=16809
2003-07-29 00:24:08 +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
Martin Willemoes Hansen
9d369d8cf9 * generator/ClassBase.cs: Fixed printouts of ctor validation.
Warnings refering to the same ctor were printed multiple times.

svn path=/trunk/gtk-sharp/; revision=16563
2003-07-23 07:16:46 +00:00
John Luke
c8d02f85e0 remove GLib and System.Drawing references
remove workaround for mscorlib
        use Type.GetMembers instead of .GetMethods
        remove Glib.IdleHandler for simplicity

svn path=/trunk/gtk-sharp/; revision=16551
2003-07-22 23:58:07 +00:00
Mike Kestner
31001501ed 2003-07-22 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs (GenerateBody): kill the "cast_type"
	overload of this, since cast_type wasn't even used.
	* generator/Property.cs : call simpler GenerateBody sig

svn path=/trunk/gtk-sharp/; revision=16550
2003-07-22 22:56:10 +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
Duncan Mak
573ef76a41 * sources/makefile (get-source-code): make it go a bit faster by
checking out all files in one go.

* gtk/IconSet.custom (Sizes): added proper binding to
gtk_icon_set_get_sizes (), this fixes bug #45835.

svn path=/trunk/gtk-sharp/; revision=16284
2003-07-16 03:29:47 +00:00
Duncan Mak
870b00b76e * en/Gtk/ItemFactory.xml: Rename GetItemByAction and
GetWidgetByAction to GetItem and GetWidget, to reflect metadata
changes.

* en/Gtk/TextBuffer.xml: Remove all references to *ByName methods,
as they are now all overrides.

* en/Gtk/HTML.xml: Update to use the new Begin overloads, since
bug #46427 is fixed.

* sources/Gtk.metadata
(GtkIconSet): hide the GetSizes method.
(GtkTextBuffer): new overrides
        MoveMarkByName    -> MoveMark
        DeleteMarkByName  -> DeleteMark
        ApplyTagByName    -> ApplyTag
        RemoveTagByName   -> RemoveTag
(GtkItemFactory): new overrides
        GetItemByAction   -> GetItem
        GetWidgetByAction -> GetWidget

* sources/gtkhtml-font-style-enum.patch: A patch to use real values
in gtkhtml-enums.h so that the parser won't choke on the complex enum
declarations.

svn path=/trunk/gtk-sharp/; revision=16282
2003-07-16 02:07:51 +00:00
Duncan Mak
ed0079acdf * sources/gtkhtml-font-style-enum.patch: A patch to use real values
in gtkhtml-enums.h so that the parser won't choke on the complex enum
declarations.

* sources/makefile: Apply the above patch after checking out the
source code for GtkHTML

svn path=/trunk/gtk-sharp/; revision=16275
2003-07-15 23:00:42 +00:00
Mike Kestner
90705a1c98 2003-07-14 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : regenerated
	* gdk/Drawable.custom : DrawRectangle filled param is now bool
	* generator/Parameters.cs : studlify names ending w/ uscore
	* gtk/GtkSharp.GtkClipboardClearFuncNative : s/Opaque/Object
	* gtk/GtkSharp.GtkClipboardGetFuncNative : s/Opaque/Object
	* parser/gapi2xml.pl : put <ns>_string_* methods in Global
	* sample/Scribble.cs : update to new DrawRectangle api
	* sources/Gdk.metadata : hide some conflicting methods
	* sources/Gtk.metadata : finally fix the Progress crap and
	renames, hides and such to fix conflicts
	* sources/README : mention new gtk-2.2 reqs
	* sources/gtk-sharp.sources : update to new gtk-2.2 reqs
	* sources/makefile : update for 2.2 api

svn path=/trunk/gtk-sharp/; revision=16254
2003-07-15 05:52:09 +00:00
Mike Kestner
1200492df5 2003-07-12 Mike Kestner <mkestner@speakeasy.net>
* api/gda-api.xml : hide the new Type class
	* source/Gda.metadata : hide the new Type class

svn path=/trunk/gtk-sharp/; revision=16148
2003-07-12 17:59:05 +00:00
Mike Kestner
de34331936 2003-07-11 Mike Kestner <mkestner@speakeasy.net>
* gdk/Selection.custom : add static fields for the  primary,
	secondary, and clipboard and clipboard selection Gdk.Atoms.
	* glue/Makefile.am : add selection.c
	* glue/selection.c : add glue to get the atoms.
	* gtk/TextBuffer.custom : add a PasteClipboard overload for
	pasting to the cursor location.

svn path=/trunk/gtk-sharp/; revision=16130
2003-07-12 04:09:00 +00:00
Mike Kestner
3ff827ed69 2003-07-10 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : regenerated
	* gdk/Threads.cs : killed since the methods are now gen'd
	* generator/ClassGen.cs : new, static class generatable
	* generator/Parameters.cs : mangle new and byte as param names
	* generator/Parser.cs : parse new <class> elements
	* generator/SymbolTable.cs : add GC SimpleGen
	* parser/gapi2xml.pl : static class element fixes
	* parser/GAPI/Metadata.pm : add class element
	* sources/Art.metadata: new, rename Affine.ToString method
	* sources/Atk.metadata: rename State class
	* sources/Gdk.metadata: hide Pixbuf static class for now. rename
	Event and Pango static classes to avoid collisions.
	* sources/Gnome.metadata: rename Gtk and Gdk static classes to
	avoid collisions.
	* sources/GnomeDb.metadata: rename Stock static class to
	avoid collisions.
	* sources/Gtk.metadata: rename Stock static class to
	avoid collisions. Hide Idle class.

svn path=/trunk/gtk-sharp/; revision=16115
2003-07-11 02:00:13 +00:00
Ettore Perazzoli
6f04d85cee * gtk/Layout.custom: New file, adding the Layout::BinWindow
property.

* glue/layout.c: New file, adding glue for getting the bin_window
of a GtkLayout.

svn path=/trunk/gtk-sharp/; revision=16048
2003-07-09 03:59:28 +00:00
Mike Kestner
2d3e7d7c9c 2003-07-06 Mike Kestner <mkestner@speakeasy.net>
* api/gtk-api.xml : regenerated
	* parser/GAPI/Metadata.pm : add support for property
	attribute alteration.
	* sources/Gtk.metadata : rule to mark TextTag.Weight as
	PangoWeight instead of gint. fixes 45214.

svn path=/trunk/gtk-sharp/; revision=15977
2003-07-06 06:33:15 +00:00
Mike Kestner
54a97361e9 2003-07-05 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : regenerated
	* parser/gapi2xml.pl : first pass at trying to expose
	static classes for typeless method aggregation.

svn path=/trunk/gtk-sharp/; revision=15976
2003-07-06 04:08:13 +00:00
Mike Kestner
5f59a56e26 2003-07-05 Mike Kestner <mkestner@speakeasy.net>
* sources/makefile : fix the download uri's for the gnomedb
	lib source.

svn path=/trunk/gtk-sharp/; revision=15975
2003-07-06 03:56:17 +00:00
Mike Kestner
a41824d910 2003-07-04 Mike Kestner <mkestner@speakeasy.net>
* api/*-api.xml : regenerated
	* parser/gapi2xml.pl (addFuncElems): only ignore get_type
	methods for enum types, so that we don't suppress some methods.
	(addPropElem): remove doc-str since we don't autogen docs and
	access types for enum/boxed/flags/obj as an offset from the end
	of the param_spec to avoid problems with split(/,/).

svn path=/trunk/gtk-sharp/; revision=15954
2003-07-05 04:07:48 +00:00
Rodrigo Moya
040178ed40 2003-07-04 Rodrigo Moya <rodrigo@ximian.com>
* sources/makefile: updated download targets for libgda and
	libgnomedb.

svn path=/trunk/gtk-sharp/; revision=15924
2003-07-04 16:43:08 +00:00
Rodrigo Moya
38725b7a49 2003-07-04 Rodrigo Moya <rodrigo@ximian.com>
* sources/gtk-sharp.sources:
	* api/gda-api.xml:
	* api/gnomedb-api.xml: updated for libgda/libgnomedb 0.90.

svn path=/trunk/gtk-sharp/; revision=15921
2003-07-04 11:48:17 +00:00
Martin Willemoes Hansen
55683e5118 * glib/Object.cs: Changed getData, setData to a single Data property
Different keys are allowed now.

svn path=/trunk/gtk-sharp/; revision=15915
2003-07-04 07:13:19 +00:00
Mike Kestner
2efd85f9a5 2003-07-02 Shane Hyde <shane@enactive.org>
* generator/GenBase.cs : put #line directive after the
	#region so line numbers match up.

2003-07-02  Mike Kestner  <mkestner@speakeasy.net>

	* generator/StructBase.cs : remove doc comments

svn path=/trunk/gtk-sharp/; revision=15873
2003-07-02 18:13:24 +00:00
Martin Willemoes Hansen
ff5b07b97a * parser/gapi_pp.pl: Added striping of C comments
svn path=/trunk/gtk-sharp/; revision=15639
2003-06-25 21:22:28 +00:00
Martin Willemoes Hansen
34f971ceb1 glib/Type.cs: Added ToString
svn path=/trunk/gtk-sharp/; revision=15589
2003-06-23 21:46:31 +00:00
Mike Kestner
edc0d396cb 2003-06-14 Mike Kestner <mkestner@speakeasy.net>
* configure.in : tagging for 0.10

svn path=/trunk/gtk-sharp/; revision=15388
2003-06-14 18:11:01 +00:00
Mike Kestner
08a8f34594 2003-06-14 Mike Kestner <mkestner@speakeasy.net>
* gtk/TreeViewColumn.custom : cast Array param to
	object[] before indexing into it.

svn path=/trunk/gtk-sharp/; revision=15387
2003-06-14 17:56:16 +00:00
Mike Kestner
3353e2d35e 2003-06-14 Mike Kestner <mkestner@speakeasy.net>
* glib/Value.cs : cast uint to TypeFundamentals

svn path=/trunk/gtk-sharp/; revision=15386
2003-06-14 17:40:51 +00:00
Mike Kestner
bbf727c80e 2003-06-14 Mike Kestner <mkestner@speakeasy.net>
* CallbackGen.cs : rework for internal callback helpers,
	pass NS to parms ctor
	* Ctor.cs : pass NS to parms ctor
	* Method.cs : pass NS to parms ctor
	* Parameters.cs : refactoring, plus rework for internal
	callback helpers.
	* Signal.cs : pass NS to parms ctor

svn path=/trunk/gtk-sharp/; revision=15385
2003-06-14 17:30:32 +00:00