Commit Graph

1865 Commits

Author SHA1 Message Date
Alp Toker
2d2eb71ed0 2004-12-30 Alp Toker <alp@atoker.com>
* README.generator: Close tag fix for example XML.

svn path=/trunk/gtk-sharp/; revision=38177
2004-12-30 10:17:14 +00:00
John Luke
4156bdd9af fix, so make assemble works
svn path=/trunk/gtk-sharp/; revision=38163
2004-12-29 20:41:49 +00:00
John Luke
70635096fa 2004-12-29 John Luke <john.luke@gmail.com>
* gen-intptr-ctor-docs.cs: docs for Type (IntPtr) ctor
        * gen-gtype-ctor-docs.cs: docs for Type (GType) ctor
        * gen-finalize-docs.cs: docs Finalize methods
        * gen-gtype-docs.cs: docs GType properties, based off
        of gen-vm-docs.cs
        * en/*.xml: run these 4 tools for all the assemblies


svn path=/trunk/gtk-sharp/; revision=38159
2004-12-29 18:36:31 +00:00
Shane Landrum
d912969793 2004-12-29 Shane Landrum <epicene@pobox.com>
* en/Gtk/FileChooserEmbed.xml
	* en/Gtk/FileChooserDialog.xml
	* en/Gtk/FileChooserWidget.xml
	* en/Gtk/FileFilter.xml
	* en/Gtk/FileFilterFlags.xml
	* en/Gtk/FileChooser.xml: file chooser and filter docs.


svn path=/trunk/gtk-sharp/; revision=38156
2004-12-29 15:12:34 +00:00
Jeroen Zwartepoorte
db2ab91013 2004-12-28 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/gnomevfs/TestVolumes.cs: Update sample.


svn path=/trunk/gtk-sharp/; revision=38131
2004-12-28 14:15:53 +00:00
Jeroen Zwartepoorte
a1755d7914 2004-12-28 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Gnomevfs.metadata: Hide some more API.
	* gnomevfs/VfsStreamAsyncResult.cs: Make Done property internal.
	* gnomevfs/VolumeMonitor.custom: Hide GList API.


svn path=/trunk/gtk-sharp/; revision=38130
2004-12-28 14:12:35 +00:00
Jeroen Zwartepoorte
fa60ba6839 2004-12-28 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: PInvoke the _uri methods directory instead of
	using the ToString() methods.
	* gnomevfs/FileInfo.cs: Make the FileInfoNative field internal.
	* gnomevfs/Gnomevfs.metadata: Hide a bunch of unwanted API.
	* gnomevfs/Uri.custom: New API.
	* gnomevfs/Vfs.cs: Idem.


svn path=/trunk/gtk-sharp/; revision=38126
2004-12-28 09:14:15 +00:00
Mike Kestner
4f2d941b51 2004-12-27 Mike Kestner <mkestner@novell.com>
* generator/CallbackGen.cs : use ReturnValue and more of Parameter.
	* generator/GenBase.cs : remove unused NSElem prop.

svn path=/trunk/gtk-sharp/; revision=38115
2004-12-27 21:32:08 +00:00
Jeroen Zwartepoorte
f3b891e758 2004-12-27 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: s/uint/FilePermissions/.
	* gnomevfs/Gnomevfs.metadata: Make a bunch of API more user-friendly &
	C# like.
	* gnomevfs/Monitor.cs: Add internal MonitorEventType enum.
	* gnomevfs/Uri.custom: Move a bunch of API from Vfs.cs to Uri.
	* gnomevfs/Vfs.cs: Only put initialize & shutdown methods in here (plus
	some debug API).
	* gnomevfs/VfsStream.cs: Use new Uri API.
	* sample/gnomevfs/TestUnlink.cs: Fix sample.


svn path=/trunk/gtk-sharp/; revision=38112
2004-12-27 20:02:33 +00:00
Mike Kestner
bf9ed95944 2004-12-27 Mike Kestner <mkestner@novell.com>
* generator/EnumGen.cs : rework for a single pass thru ChildNodes.
	* generator/Parameters.cs : simplify PassAs logic.
	* generator/SimpleBase.cs : mark abstract.

svn path=/trunk/gtk-sharp/; revision=38111
2004-12-27 20:00:55 +00:00
Mike Kestner
5562bf645f some updates to generator/DESIGN
svn path=/trunk/gtk-sharp/; revision=38110
2004-12-27 18:02:52 +00:00
Mike Kestner
8d53021079 2004-12-27 Mike Kestner <mkestner@novell.com>
* generator/AliasGen.cs : derive from SimpleBase.
	* generator/ConstStringGen.cs : derive from SimpleBase.
	* generator/GObjectGen.cs : kill. now uses ManualGen.
	* generator/GStringGen.cs : kill. now uses MarshalGen.
	* generator/GUnicharGen.cs : kill. now uses MarshalGen.
	* generator/LPGen.cs : derive from SimpleGen.
	* generator/Makefile.am : update source files.
	* generator/ManualGen : make this general for handle types.
	* generator/MarshalGen : new CallByName/FromNative formatter class.
	* generator/SymbolTable.cs : needed some reorganizing and some
	restructuring of types to use MarshalGen.
	* generator/TimeTGen.cs : kill. now uses MarshalGen.

svn path=/trunk/gtk-sharp/; revision=38109
2004-12-27 17:38:52 +00:00
John Luke
f38222d9e0 remove warnings
remove obselete code that is no longer in the GTK+ version
update TODO

svn path=/trunk/gtk-sharp/; revision=38099
2004-12-26 22:00:32 +00:00
Mike Kestner
1d72136dd8 2004-12-26 Mike Kestner <mkestner@novell.com>
* generator/Makefile.am : add new file.
	* generator/SimpleBase.cs : new class for non-generated type mappers.
	* generator/*Gen.cs : first refactoring of "Simple" generatable types.
	Derive them all from SimpleBase. More to come.

svn path=/trunk/gtk-sharp/; revision=38097
2004-12-26 21:22:50 +00:00
Mike Kestner
1c4b5f81ba 2004-12-26 Mike Kestner <mkestner@novell.com>
* generator/CustomMarshalerGen.cs : kill bad idea unused class.
	* generator/Makefile.am : remove CustomMarshalerGen.cs.
	* generator/Method.cs : remove CustomMarshalerGen reference.

svn path=/trunk/gtk-sharp/; revision=38092
2004-12-26 19:40:24 +00:00
Mike Kestner
d8aa13ac21 2004-12-26 Mike Kestner <mkestner@novell.com>
* generator/*Gen.cs : implement IGeneratable fully on GenBase
	with abstract methods where necessary to refactor a ton of redundant
	code.

svn path=/trunk/gtk-sharp/; revision=38091
2004-12-26 19:33:34 +00:00
Mike Kestner
adef5f7bbd 2004-12-23 Mike Kestner <mkestner@novell.com>
* glib/ClassInitializerAttribute.cs : new attr for identifying type.
	inialization methods to be run by RegisterGType.
	* glib/Makefile.am : add file.
	* glib/Object.cs : add private method to invoke ClassInitializers.
	* gtk/glue/widget.c : some new glue for binding registration.
	* gtk/BindingAttribute.cs : new attr for registering key bindings.
	* gtk/Makefile.am : add file.
	* gtk/Widget.custom : add ClassInitializer method to scan types
	for [Binding] and register key bindings.

svn path=/trunk/gtk-sharp/; revision=38074
2004-12-23 22:59:59 +00:00
Dan Winship
7cc3f74b9c * generator/Signal.cs: fix some WriteLine()s that should have been
Write()s

svn path=/trunk/gtk-sharp/; revision=38056
2004-12-22 21:52:18 +00:00
Dan Winship
4eabbb4007 * sources/gtk-sharp-sources.xml: exclude a bunch of uninstalled
gtk headers.

        * gtk/gtk-api.raw: regen

        * gtk/Gtk.metadata: Remove some explicit hiding of things that
        shouldn't have been there anyway. Hide a few types that just show
        up as unusable stubs.

svn path=/trunk/gtk-sharp/; revision=38054
2004-12-22 19:37:58 +00:00
Mike Kestner
ba4b11a21b 2004-12-22 Mike Kestner <mkestner@novell.com>
* gdk/gdk-api.raw : update enum values.
	* gnome/gnome-api.raw : update enum values.
	* gtk/gtk-api.raw : update enum values.
	* pango/pango-api.raw : update enum values.
	* parser/gapi2xml.pl : pull whitespace out of enum prefixing logic.
	[Fixes #70593]

svn path=/trunk/gtk-sharp/; revision=38051
2004-12-22 19:12:15 +00:00
Mike Kestner
e38ece1fdb 2004-12-21 Mike Kestner <mkestner@novell.com>
* glib/Argv.cs : argv marshaling class.
	* glib/Makefile.am : add file.
	* glib/Marshaller.cs : mark the argv methods obsolete.
	* gtk/Application.cs : use GLib.Argv. [Fixes #68812]

svn path=/trunk/gtk-sharp/; revision=38046
2004-12-21 19:47:55 +00:00
Dan Winship
62258ca7c3 * generator/CallbackGen.cs:
* generator/CodeGenerator.cs: 
        * generator/ManagedCallString.cs:
        * generator/Property.cs: Remove unused vars

        * generator/Method.cs (GetHashCode): have to implement this since
        we're overriding Equals.

        * generator/CallbackGen.cs: print a message when generating a
        broken struct-returning callback. (Currently affects
        GtkSharp.TextSegSplitFuncNative and
        GtkSharp.TextSegCleanupFuncNative)

        * gdk/glue/device.c: 
        * gdk/glue/dragcontext.c: Add missing prototypes

        * gtk/Gtk.metadata: Mark SeparatorToolItem.Draw "new". Re-rename
        CheckMenuItem.Toggled to EmitToggled rather than Toggle, since
        that's a better description of what it does.

        * gtk/CheckMenuItem.custom: implement a "Toggle" method that does
        what the documentation claims it does.

        * gtk/NodeStore.cs: remove unused var

        * gnome/Gnome.metadata: mark DateEdit.Flags, Dialog.Default, and
        PropertyBox.State "new". Hide GnomePixmapEntry.GnomeEntry and
        GnomePixmapEntry.GtkEntry since they do exactly the same thing as
        the methods of the same names inherited from GnomeFileEntry.

        * gnome/glue/canvas-proxy.c:
        * gnome/glue/canvas-proxy.h:
        * gnome/glue/canvas-proxy-marshal.c:
        * gnome/glue/canvas-proxy-marshal.h:
        * gnome/glue/canvas-proxy-marshal.list: Remove unused code

        * gnome/glue/Makefile.am (libgnomesharpglue_2_la_SOURCES): update

        * panelapplet/PanelApplet.metadata: mark PanelApplet.Flags "new"

        * sample/CanvasExample.cs: 
        * sample/CustomCellRenderer.cs: 
        * sample/CustomNotebook.cs: 
        * sample/DrawingSample.cs:
        * sample/Fifteen.cs: 
        * sample/GladeTest.cs: 
        * sample/GtkDemo/DemoHyperText.cs: 
        * sample/GtkDemo/DemoPixbuf.cs: 
        * sample/ScribbleXInput.cs: remove unused vars, use
        GLib.Timeout.Add rather than the deprecated Gtk.Timeout.Add

svn path=/trunk/gtk-sharp/; revision=38043
2004-12-21 18:46:42 +00:00
Jeroen Zwartepoorte
2d8853461e 2004-12-21 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Async.cs:
	* gnomevfs/Directory.cs:
	* gnomevfs/Sync.cs:
	* gnomevfs/Vfs.cs: Make the constructors private so they don't show up
	in monodoc (these classes aren't meant to be instantiated).


svn path=/trunk/gtk-sharp/; revision=38025
2004-12-21 12:52:49 +00:00
Jeroen Zwartepoorte
bdf07d6a55 2004-12-21 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Gnomevfs.metadata: Hide the auto-generated ModuleCallback
	stuff in favor of the more developer friendly custom bindings.
	* gnomevfs/Makefile.am:
	* gnomevfs/ModuleCallbackAuthentication.cs:
	* gnomevfs/ModuleCallbackFillAuthentication.cs:
	* gnomevfs/ModuleCallbackFullAuthentication.cs:
	* gnomevfs/ModuleCallbackSaveAuthentication.cs:
	* gnomevfs/ModuleCallbackStatusMessage.cs: Complete the module callback
	implementations.


svn path=/trunk/gtk-sharp/; revision=38022
2004-12-21 09:18:44 +00:00
John Luke
163cacb30f 2004-12-20 John Luke <john.luke@gmail.com>
* en/Gtk/Widget.xml: finish
        * en/Gtk/Window.xml: finish
        * en/Gtk/*.xml: random stuff, mostly enums

svn path=/trunk/gtk-sharp/; revision=38021
2004-12-21 04:08:27 +00:00
John Luke
2cdcc3714c 2004-12-20 John Luke <john.luke@gmail.com>
* en/Gtk/CellView.xml: doc most of this
        * en/Gtk/EntryCompletion.xml: add an example from GtkDemo


svn path=/trunk/gtk-sharp/; revision=38008
2004-12-21 00:16:14 +00:00
John Luke
7535410958 enable completion on this now
svn path=/trunk/gtk-sharp/; revision=38006
2004-12-20 23:39:59 +00:00
Mike Kestner
b6b89a0633 2004-12-20 Mike Kestner <mkestner@novell.com>
* gdk/Gdk.metadata : mark a couple array params.
	* generator/Field.cs : remove the MarshalAs hack. We have to
	do something much more evil since MarshalAs can't hang.
	* generator/ImportSignature.cs : deal with out LP(U)Gen params.
	* generator/LPGen.cs : moved from SSizeTGen and generalized.
	* generator/LPUGen.cs : moved from SizeTGen and generalized.
	* generator/Makefile.am : update sources.
	* generator/MethodBody.cs : deal with out LP(U)Gen params.
	* generator/Parameters.cs : deal with out LP(U)Gen params.
	* generator/SymbolTable.cs : make all longs and size_t types LP(U)Gens.

svn path=/trunk/gtk-sharp/; revision=37999
2004-12-20 22:08:43 +00:00
Dan Winship
a610fb9a79 * generator/GUnicharGen.cs: generatable for gunichar, using
GLib.Marshaller.CharToGUnichar and .GUnicharToChar [#70704]

        * generator/SymbolTable.cs (SymbolTable): add a GUnicharGen.

        * generator/Makefile.am (sources): add GUnicharGen.cs

        * parser/gapi2xml.pl (addPropElem): g_param_spec_unichar() has
        type "gunichar" not "unichar".

        * gtk/gtk-api.raw: Regen

        * glib/Marshaller.cs: Import CharToGUnichar's glue method by the
        right name

svn path=/trunk/gtk-sharp/; revision=37998
2004-12-20 22:05:21 +00:00
Dan Winship
99735b0d7e * en/Gtk/StockManager.xml: gone
* en/Gtk/Stock.xml (Lookup): document here

svn path=/trunk/gtk-sharp/; revision=37997
2004-12-20 19:55:00 +00:00
Dan Winship
c87558b526 * sample/GtkDemo/DemoStockBrowser.cs: update this to work with
that. (It used to crash.)

svn path=/trunk/gtk-sharp/; revision=37996
2004-12-20 19:47:40 +00:00
Dan Winship
86d4828d5d * gtk/Gtk.metadata: Don't rename GtkStock to StockManager, hide
Lookup (so we can customize it) and AddStatic (since it can't work
        right from managed code), and tweak the params of Add.

        * gtk/Stock.custom: Implement Lookup() using a special
        ConstStockItem struct so the p/invoke layer won't try to free
        static strings. [#70589]

svn path=/trunk/gtk-sharp/; revision=37995
2004-12-20 19:33:29 +00:00
Mike Kestner
c9683719ef 2004-12-20 Mike Kestner <mkestner@novell.com>
* en/Gnome.Vfs/*.xml : updater run for recent changes.

svn path=/trunk/gtk-sharp/; revision=37987
2004-12-20 18:09:36 +00:00
Mike Kestner
5e298ce11a 2004-12-20 Mike Kestner <mkestner@novell.com>
* generator/Property.cs : generate Interface properties.
	* gtk/ComboBox.custom : remove dup model prop.
	* gtk/TreeView.custom : remove dup model prop.

svn path=/trunk/gtk-sharp/; revision=37985
2004-12-20 18:01:55 +00:00
Jeroen Zwartepoorte
e2fd0d5e42 2004-12-20 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Makefile.am:
	* gnomevfs/ModuleCallback.cs: 
	* gnomevfs/ModuleCallbackAuthentication.cs:
	* gnomevfs/ModuleCallbackFullAuthentication.cs:
	* gnomevfs/Vfs.cs: Use a custom VfsException for Result errors.
	* gnomevfs/VfsException.cs: new custom Exception class.
	* sample/gnomevfs/Makefile.am:
	* sample/gnomevfs/TestCallback.cs:
	
	Implement custom bindings for the ModuleCallback mechanism. Atm, only
	the GNOME_VFS_MODULE_CALLBACK_AUTHENTICATION and
	GNOME_VFS_MODULE_CALLBACK_FULL_AUTHENTICATION callbacks are implemented.
	Also added a test-case using the full authentication callback (tested
	using the sftp: method). [Partially fixes #70602]


svn path=/trunk/gtk-sharp/; revision=37972
2004-12-20 15:20:58 +00:00
Mike Kestner
1ff14a6bb2 2004-12-18 Mike Kestner <mkestner@novell.com>
* configure.in : bump version in preparation for 1.9.1 release.

svn path=/trunk/gtk-sharp/; revision=37924
2004-12-18 22:31:42 +00:00
Mike Kestner
d93acf8422 2004-12-18 Mike Kestner <mkestner@novell.com>
* gtk/ColorSelectionDialog.custom : fix some incorrect object wrapping
	and mark the ColorSelectionButton nested class Obsolete with a heinous
	warning message. [Fixes #68450]

svn path=/trunk/gtk-sharp/; revision=37923
2004-12-18 20:59:57 +00:00
Mike Kestner
b0ede33602 2004-12-18 Mike Kestner <mkestner@novell.com>
* generator/Field.cs : add MarshalAs attrs for (u)longs.

svn path=/trunk/gtk-sharp/; revision=37922
2004-12-18 17:40:51 +00:00
Mike Kestner
1cdd16f09c 2004-12-18 Mike Kestner <mkestner@novell.com>
* gconf/GConf/ChangeSet.cs : add internal Handle prop.
	* gconf/GConf/Engine.cs : new class to expose the default gconf engine
	perform changeset commits and reverses.

svn path=/trunk/gtk-sharp/; revision=37921
2004-12-18 16:44:20 +00:00
Mike Kestner
5e5c493b33 2004-12-17 Mike Kestner <mkestner@novell.com>
* gtk/ListStore.custom : dispose a bunch of GLib.Values.
	* gtk/TreeStore.custom : ditto.  Reworked and expanded from a patch
	by Ben "valgrind-boy" Maurer. [Fixes #69925]

svn path=/trunk/gtk-sharp/; revision=37919
2004-12-18 06:01:09 +00:00
Mike Kestner
348c8035e3 2004-12-17 Mike Kestner <mkestner@novell.com>
* glade/XML.custom (BindFields) : support multiple autoconnects
	in different roots by not writing null widgets to the tagged
	fields. [Fixes #68455]

svn path=/trunk/gtk-sharp/; revision=37917
2004-12-18 05:11:37 +00:00
Mike Kestner
9727ef31e2 2004-12-17 Mike Kestner <mkestner@novell.com>
* gtk/Gtk.metadata : hide Object and Widget.Destroy.
	* gtk/Object.custom : manual virtual Destroy impl.
	* gtk/Widget.custom : manual virtual Destroy impl.
	* gtk/Window.custom : hold a managed ref for all toplevels. Release
	it in a Destroy override.  Window is frequently subclassed and is
	never parented, so this keeps a managed ref around to avoid GC.
	[Fixes #70120]

svn path=/trunk/gtk-sharp/; revision=37914
2004-12-17 23:21:53 +00:00
Mike Kestner
d97845dbf0 2004-12-17 Mike Kestner <mkestner@novell.com>
* gdk/Gdk.metadata : mark out param on Window.GetFrameExtents.
	* gdk/WindowAttr.custom : new typed Mask prop.
	* gtk/Widget.custom : new typed WidgetFlags prop. mark Flags obsolete.

svn path=/trunk/gtk-sharp/; revision=37909
2004-12-17 21:44:47 +00:00
Mike Kestner
6f3dd46742 forgot an add
svn path=/trunk/gtk-sharp/; revision=37905
2004-12-17 20:34:25 +00:00
Mike Kestner
59faab866e 2004-12-17 Mike Kestner <mkestner@novell.com>
* gtk/Makefile.am : add new file.
	* gtk/glue/makefile.win32 : add missing file.
	* gtk/NodeCellDataFunc.cs : new callback delegate type and marshaler
	for NodeStore tree views using GtkTreeCellDataFuncs.
	* gtk/NodeStore.cs : add internal GetNode overload by TreeIter.
	* gtk/NodeView.cs : add AppendColumn overload that uses data funcs.
	* gtk/TreeViewColumn.custom : manual implementation for SetCellDataFunc
	to support both TreeIter and ITreeNode models.  We need to hold a ref
	to a delegate for each cell renderer on a column. [Fixes #63062]
	* sample/NodeViewDemo.cs : use a NodeCellDataFunc for one of the 
	cell renderers in the tree.

svn path=/trunk/gtk-sharp/; revision=37904
2004-12-17 20:32:33 +00:00
Dan Winship
8457bacdc9 * generator/Field.cs (StudlyName): Fall back to using "cname" if
"name" isn't defined (ie, when using the latest generator against
	api files output by an older parser).

svn path=/trunk/gtk-sharp/; revision=37902
2004-12-17 20:29:54 +00:00
Shane Landrum
43932ea8ae 2004-12-17 Shane Landrum <epicene@pobox.com>
* en/Gtk/Tooltips.xml
	* en/Gtk/ToggleToolButton.xml
	* en/Gtk/ToolItem.xml
	* en/Gtk/ToolbarChildType.xml
	* en/Gtk/SeparatorToolItem.xml
	* en/Gtk/TooltipSetArgs.xml: Docs for tooltips and toolbar tools.


svn path=/trunk/gtk-sharp/; revision=37895
2004-12-17 19:15:25 +00:00
Dan Winship
104dbedf07 * generator/ClassBase.cs (IgnoreMethod): Don't ignore GetFoo and
SetFoo methods if they aren't in the right form to be turned into
        property accessors. (Causes 13 previously ignored methods to now
        be wrapped. See doc/ChangeLog.)

        * gtk/Gtk.metadata: Fix up a few of those newly-exposed methods

svn path=/trunk/gtk-sharp/; revision=37891
2004-12-17 17:55:07 +00:00
Shane Landrum
93209fbd15 2004-12-17 Shane Landrum <epicene@pobox.com>
* en/Gtk/FontSelectionDialog.xml: Doc 1 property
	* en/Gtk/TargetEntry.xml
	* en/Gtk/TargetPair.xml
	* en/Gtk/SelectionData.xml
	* en/Gtk/SelectionGetArgs.xml
	* en/Gtk/SelectionNotifyEventArgs.xml
	* en/Gtk/SelectionRequestEventArgs.xml: Docs for selection-related
	and DND code.
	* en/Gtk/Stock.xml: Doc some new items for 2.4
	* en/Gtk/ToolButton.xml: Add docs


svn path=/trunk/gtk-sharp/; revision=37890
2004-12-17 17:52:22 +00:00
Shane Landrum
fb2a4b6c9a 2004-12-17 Shane Landrum <epicene@pobox.com>
* en/Gtk/RadioAction.xml
	* en/Gtk/RadioActionEntry.xml
	* en/Gtk/RadioButton.xml
	* en/Gtk/RadioMenuItem.xml
	* en/Gtk/RadioToolButton.xml: Add docs


svn path=/trunk/gtk-sharp/; revision=37889
2004-12-17 17:47:57 +00:00