Commit Graph

419 Commits

Author SHA1 Message Date
Dan Winship
196be89bc9 * glib/Value.cs: Obsolete the EnumWrapper and UnwrappedObject
constructors and casts. Add a new Enum cast.
	(Val): Handle Pointer values. Change the handling of Enum/Flags
	values to return the value directly rather than returning an
	EnumWrapper. Remove the Char (ie, "byte") handling since there
	aren't any char properties in all of gtk-sharp and the generator
	mistakenly converts them to strings anyway.

	* glib/EnumWrapper.cs: 
	* glib/UnwrappedObject.cs: Mark these Obsolete.

	* glib/glue/type.c (gtksharp_get_parent_type,
	gtksharp_get_type_name_for_id): 
	* glib/glue/value.c (gtksharp_value_get_value_type): Remove some
	unneeded glue methods.

	* generator/Ctor.cs (Generate):
	* generator/Property.cs (Generate): Simplify the enum and object
	property glue to not use EnumWrapper or UnwrappedObject.

	* sample/valtest/*: a regression test for GLib.Value

	* configure.in.in: add sample/valtest

svn path=/trunk/gtk-sharp/; revision=47564
2005-07-22 18:36:50 +00:00
Mike Kestner
762a1576fd make the sample 2.4 friendly
svn path=/trunk/gtk-sharp/; revision=46842
2005-07-01 17:45:07 +00:00
Mike Kestner
a0912263e2 2005-06-28 Mike Kestner <mkestner@novell.com>
* gtk/ComboBox.custom : add ctor (string[]).
	* gtk/ComboBoxEntry.custom : add ctor (string[]).
	* sample/test/TestComboBox.cs : simple new ComboBox tester.
	* sample/test/WidgetViewer.cs : button for simple new ComboBox tester.

svn path=/trunk/gtk-sharp/; revision=46657
2005-06-28 16:35:36 +00:00
Mike Kestner
fba841b1af some win32 compile fixes
svn path=/trunk/gtk-sharp/; revision=46558
2005-06-27 15:08:39 +00:00
Mike Kestner
a539e69747 some makefile win32 lovin
svn path=/trunk/gtk-sharp/; revision=46399
2005-06-22 21:49:25 +00:00
Mike Kestner
64dd7f67d4 2005-06-22 Mike Kestner <mkestner@novell.com>
* sample/GladeTest.cs : add a menu item signal connect to test for the
	problem described in bug#74946.
	* sample/test.glade : add menubar.

svn path=/trunk/gtk-sharp/; revision=46397
2005-06-22 21:44:34 +00:00
Mike Kestner
3a6e5fa8e2 2005-06-22 Mike Kestner <mkestner@novell.com>
* sample/GtkDemo/DemoHyperText.cs : replace PersistentData usage that
	breaks on csc.
	* sample/GtkDemo/DemoTreeStore.cs : fix a 2.0 usage.

svn path=/trunk/gtk-sharp/; revision=46383
2005-06-22 19:18:19 +00:00
Dan Winship
25e70f2a38 * sample/GtkDemo/DemoRotatedText.cs (RotatedTextExposeEvent): Use
Gdk.PangoRenderer.GetDefault() like the C gtk-demo rather than
	creating a new Gdk.PangoRenderer. [Fixes #74865]

	* gdk/Gdk.metadata: fix return type of Gdk.PangoRenderer.GetDefault

svn path=/trunk/gtk-sharp/; revision=45494
2005-06-06 14:40:46 +00:00
Mike Kestner
a51e811f17 2005-05-10 Mike Kestner <mkestner@novell.com>
* gdk/Pixbuf.custom : use non-obsolete PixbufLoader.Write overload.
	* gdk/PixbufLoader.custom : add obsolete PixbufLoader.Write overload
	for the uint case for backcompat. Update other uses to the new ulong
	overload.
	* sample/GtkDemo/DemoImage.cs : use PixbufLoader.Write (byte[])
	overload.

svn path=/trunk/gtk-sharp/; revision=44332
2005-05-10 16:11:18 +00:00
John Luke
6a62db1f0d use 48 for the icon size like gtk-demo
svn path=/trunk/gtk-sharp/; revision=44202
2005-05-07 17:49:05 +00:00
John Luke
ab20101e76 2005-05-06 John Luke <john.luke@gmail.com>
* pango/Makefile.am: add Matrix.custom
        * pango/Matrix.custom: add Pango.Matrix.Identity field
        which is the equivalent of PANGO_MATRIX_INIT
        * sample/GtkDemo/DemoRotatedText.cs: use Pango.Matrix.Identity
        * doc/en/Pango/Matrix.xml: add docs for Pango.Matrix.Identity


svn path=/trunk/gtk-sharp/; revision=44181
2005-05-07 00:16:47 +00:00
John Luke
642980e0bb manually set it to the PANGO_MATRIX_INIT values
svn path=/trunk/gtk-sharp/; revision=44102
2005-05-06 03:05:50 +00:00
Mike Kestner
09c61ee026 2005-05-04 Mike Kestner <mkestner@novell.com>
* autogen.sh : error out with bootstrap help message.
	* bootstrap : replaces autogen.sh for the 2.5.x release line.
	* bootstrap-2.4 : replaces autogen.sh for the 1.9.x release line.
	* configure.in.in : renamed from configure.in and added substitution
	for version, dependencies, CFLAGS and CSFLAGS.
	* README : bootstrap docs
	* */*-api.raw : moved to api-2.6.raw for bootstrapping.
	* */*-api-2.4.raw : added 2.4 api files for bootstrapping.
	* */glue/Makefile.am : add GTK_SHARP_VERSION_CFLAGS.
	* pango/Attribute.cs : add a #if GTK_SHARP_2_6 block.
	* pango/glue/attribute.c : add a couple #ifdef GTK_SHARP_2_6 blocks.
	* sample/GtkDemo/* : make the 2.6 demos conditional.

svn path=/trunk/gtk-sharp/; revision=44047
2005-05-04 20:53:02 +00:00
Dan Winship
900b14290c * parser/gapi2xml.pl: make note of _get_type methods for enums
* */*-api.xml: Regen, adding gtype="..." to many enum types

	* generator/EnumGen.cs (Generate): if the enum has the
	"gtype" property, add a GTypeAttribute pointing to an internal
	FooGType class whose GType property can be used to get the enum's
	GType.

	* generator/ObjectGen.cs:
	s/ObjectManager.RegisterType/GType.Register/

	* glib/GTypeAttribute.cs: attribute for indicating a property that
	will return the GType of a type (particularly for enums, which
	can't have GType properties added to them).

	* glib/GType.cs: renamed from Type.cs to match the type name
	(public static readonly GType ...): add a few missing types.
	(Register): moved from ObjectManager.RegisterType
	(LookupGType): moved from TypeConverter.LookupType and extended to
	handle GTypeAttribute. Also, fix mappings for sbyte/byte/char, and
	return specific GTypes for Object subclasses rather than always
	returning GType.Object.	[Fixes #74699]
	(LookupType): moved from ObjectWrapper.LookupType
	(ToString): return the type name
	
	* glib/Object.cs (RegisterGType):
	s/ObjectManager.Register/GType.Register/
	(LookupGType): Make this protected internal so GType can access
	it.

	* glib/ObjectManager.cs (RegisterType): deprecate in favor of
	GType.Register.
	(LookupType): moved to GType
	
	* glib/TypeConverter.cs (LookupType): now a deprecated wrapper
	around GType.LookupGType.

	* glib/Value.cs: Use GType casts rather than TypeConverter

	* gtk/NodeStore.cs (ScanType):
	* gtk/ListStore.custom (ListStore): 
	* gtk/TreeStore.custom (TreeStore): Use (GType) cast rather than
	TypeConverter. Remove the error check and exception, since the
	cast never returns GType.Invalid. (The check probably predates
	GLib.ManagedValue.)

	* gnome/PanelAppletFactory.cs (Register): Use a GType cast rather
	than GLib.Object.LookupGType (which is no longer accessible after
	an mcs bugfix)

	* sample/GtkDemo/DemoIconView.cs (CreateStore): use the Type[]
	constructor rather than the GType[] constructor, since it
	translates typeof(Gdk.Pixbuf) correctly now.

svn path=/trunk/gtk-sharp/; revision=44038
2005-05-04 16:54:24 +00:00
Dan Winship
a7d8b64f7a * generator/Parameters.cs (Parameters.Validate): If the parameters
end with "callback, gpointer, GDestroyNotify", then mark the
	callback as having "notified" Scope.
	(Parameters.IsHidden): Hide user_data and GDestroyNotify after a
	callback.
	(Parameter.Scope): make this settable
	(Parameter.IsDestroyNotify): new test

	* generator/MethodBody.cs (Initialize): Handle "notified" callback
	scope (using a GCHandle and GLib.DestroyHelper.NotifyHandler)

	* generator/CallbackGen.cs (GenWrapper): Add a static
	"GetManagedDelegate" method to the wrapper type, to translate a
	native delegate back to its corresponding managed delegate.
	(FromNative): use GetManagedDelegate.

	* generator/ReturnValue.cs (Validate): We handle callback return
	values now

	* generator/SymbolTable.cs: marshal GDestroyNotify as
	GLib.DestroyNotify

	* glib/DestroyNotify.cs: Moved from gtk

	* gtk/Gtk.metadata: globally change GtkDestroyNotify to
	GDestroyNotify, but then change back the ones that are exposed in
	the API. Un-hide lots of methods we can correctly autogenerate
	now.

	* gtk/DestroyHelper.cs: moved to glib

	* gtk/*.custom: remove methods that are autogenerated now, add
	Obsolete wrappers where needed, replace Gtk.DestroyHelper usage
	with GLib.DestroyHelper.

	* gdk/Gdk.metadata: 
	* gnome/Gnome.metadata: Turn Gdk.Drawable.SetData and
	Gnome.IconList.SetIconDataFull's GDestroyNotify args into
	gpointers so the generated API stays the same as it used to be.

	* rsvg/Handle.custom: implement deprecated SetSizeCallback

	* sample/GtkDemo/DemoIconView.cs (CreateSort): update for API
	changes

svn path=/trunk/gtk-sharp/; revision=44020
2005-05-04 11:47:25 +00:00
Dan Winship
b7e4cc507e * generator/Parameters.cs (IsHidden): method to check if a
parameter should be hidden in the managed sig (eg, because it's
	user_data, or it's the length of the preceding array/string, etc).
	(VisibleCount): the number of parameters that will actually be
	exposed in the managed signature.
	(IsAccessor): test VisibleCount, not Count
	(AccessorReturnType, AccessorName): deal with the fact that the
	accessor parameter might not be the first one.

	* generator/CallbackGen.cs:
	* generator/Signature.cs: use Parameters.IsHidden.

	* generator/Method.cs (Initialize): set is_set based on
	VisibleCount, not Count.
	(Validate): call base.Validate() before Initialize() so that
	VisibleCount will be correct in Initialize.

	* generator/MethodBody.cs (GetCallString, CallArrayLength,
	Initialize): update to deal with accessors with multiple args.

	* gtk/Clipboard.custom (SetText): implement as an Obsolete variant
	of the Text property

	* gtk/IconTheme.custom (SearchPath, SetSearchPath): obsolete
	SetSearchPath, implement a setter on SearchPath instead.

	* gtk/ListStore.custom (SetColumnTypes):
	* gtk/TreeStore.custom (SetColumnTypes): implement as an Obsolete
	variant of the ColumnTypes property.

	* glade/XML.custom (CustomHandler): implement as a property
	(SetCustomHandler): Mark this obsolete

	* glade/Global.custom (SetCustomHandler): deprecate in favor of
	XML.CustomHandler.

	* gnomedb/Editor.custom (SetText): implement as an Obsolete
	variant of the Text property

svn path=/trunk/gtk-sharp/; revision=43898
2005-05-02 20:10:03 +00:00
Miguel de Icaza
f88799c77e Remove unnecessary config file
svn path=/trunk/gtk-sharp/; revision=43602
2005-04-26 17:10:10 +00:00
John Luke
db6b5d036a make the icon view actually work
svn path=/trunk/gtk-sharp/; revision=43423
2005-04-22 02:03:47 +00:00
John Luke
f78826e7ac add demo icon view
svn path=/trunk/gtk-sharp/; revision=43422
2005-04-22 00:46:57 +00:00
John Luke
3ebf6e3e30 add rotated text demo
svn path=/trunk/gtk-sharp/; revision=43417
2005-04-21 20:11:03 +00:00
Mike Kestner
e56d2feafc kill useless .cvsignore files
svn path=/trunk/gtk-sharp/; revision=43355
2005-04-20 20:11:00 +00:00
Jeroen Zwartepoorte
7eb5e00ec2 2005-04-17 Jeroen Zwartepoorte <jeroen.zwartepoorte@gmail.com>
* sample/PolarFixed.cs: (PolarFixed.PolarFixedChild): Fix compilation
	problem.


svn path=/trunk/gtk-sharp/; revision=43139
2005-04-17 08:42:47 +00:00
Mike Kestner
704e4ddde3 fix dist for the CustomNotebook to PolarFixed sample switch
svn path=/trunk/gtk-sharp/; revision=42830
2005-04-12 13:54:13 +00:00
Dan Winship
b8126ce3af * generator/ClassBase.cs (ParseImplements): record both managed
and unmanaged interface declarations.
	(Implements): check recursively

	* generator/ObjectGen.cs (Generate): output managed interfaces

	* gtk/Gtk.metadata: make Container implement IEnumerable

	* gtk/Container.custom (GetEnumerator): implement (a simplified
	form of Children).
	(AllChildren): add this (which accumulates the results of
	Forall()).
	(ForAll): mark ForAll(bool,CallbackInvoker) obsolete and add a
	ForAll(bool,Gtk.Callback) overload to replace it.

	* sample/PolarFixed.cs: new silly but fully-functional demo of
	how to subclass container.

	* sample/CustomNotebook.cs: kill this, since it was really
	complicated, and never fully functional.

	* sample/GtkDemo/DemoImages.cs (ToggleSensitivity): Use foreach
	directly on the container, rather than on its .Children.

svn path=/trunk/gtk-sharp/; revision=42805
2005-04-11 20:35:56 +00:00
Dan Winship
b59ca6cdba * pango/Scale.cs: rename the size constants to not have
underscores in their names (and add obsolete aliases for the old
	names).

	* sample/GtkDemo/DemoTextView.cs: use the new names

svn path=/trunk/gtk-sharp/; revision=42532
2005-04-04 18:50:50 +00:00
Dan Winship
246d4e1620 * samples/GtkDemo/*.cs: General fixup and cleanup; Remove some
gratuitous differences from the C version. Make comment and indent
	style consistent. Don't use "this." where not needed. Override
	OnDeleteEvent rather than connecting one's own DeleteEvent signal.

	* sample/GtkDemo/DemoApplicationWindow.cs (static
	DemoApplicationWindow): register the Gtk logo icon with
	StockManager so it shows up correctly in the toolbar.
	(AddActions): Register the radio items as radio items so they work
	right.

	* sample/GtkDemo/DemoHyperText.cs (EventAfter): handle
	link-clicking from Widget.WidgetEventAfter (as in the C version),
	rather than ButtonRelease, now that WidgetEventAfter is wrapped.

	* sample/GtkDemo/DemoImages.cs (DemoImages): use
	Gtk.Image.LoadFromResource (particularly to make the animation
	work right).
	(OnDestroyed): handle clean up (remove the timeout, etc)

	* sample/GtkDemo/DemoMain.cs (LoadStream): Fix handling of blank
	lines and whitespace to match the C version.

	* sample/GtkDemo/DemoPixbuf.cs (Expose): Use
	System.Runtime.InteropServices.Marshal.Copy() to copy
	pixbuf.Pixels to pass to DrawRgbImageDithalign, to make this more
	like the C version (and probably faster?)
	(timeout): Remove the FIXME since it seems to work now

	* sample/GtkDemo/DemoStockBrowser.cs: Simplify a bunch. Use
	reflection to get the C# names of the stock icons rather than
	trying to correctly re-mangle the ids. Display the Label with the
	accelerator underlined.

	* sample/GtkDemo/DemoTextView.cs (AttachWidgets): use
	Gtk.Image.LoadFromResource, so the image is properly loaded as an
	animation, not a static image. Don't set the combobox's "Active"
	property (for consistency with the C version).
	(InsertText): Fix miscellaneous differences with the C version.
	Remove some leftover cruft from earlier workarounds for gtk# bugs.

	* sample/GtkDemo/DemoTreeStore.cs (AddColumns): Make this more
	like the C version so the checkboxes are sensitized and hidden
	correctly on a per-row basis.

	* sample/GtkDemo/DemoUIManager.cs: Make the radio menu items work.

	* sample/GtkDemo/README: 
	* sample/GtkDemo/TODO: update

svn path=/trunk/gtk-sharp/; revision=42481
2005-04-01 21:08:14 +00:00
Mike Kestner
e3a26238b6 2005-03-31 Mike Kestner <mkestner@novell.com>
* glib/ManagedValue.cs : add null/NULL guarding to Copy, Free, 
	WrapObject, and ObjectForWrapper.  [Fixes #74197]

svn path=/trunk/gtk-sharp/; revision=42434
2005-03-31 16:31:31 +00:00
John Luke
d9d19a3450 fix DemoHyperText
small sizing change for DemoExpander

svn path=/trunk/gtk-sharp/; revision=42185
2005-03-24 04:32:49 +00:00
John Luke
1b4913630b use new PersistentData instead of Data
svn path=/trunk/gtk-sharp/; revision=41844
2005-03-15 17:30:29 +00:00
Jeroen Zwartepoorte
46007cfd17 2005-02-10 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/Actions.cs: Remove obsolete & unsafe GLib.Object.Data usage.


svn path=/trunk/gtk-sharp/; revision=40441
2005-02-10 21:50:50 +00:00
Mike Kestner
289b127b10 2005-01-28 Mike Kestner <mkestner@novell.com>
* gtk/Dialog.custom : add a params array for button info to the ctor.
	* gtk/FileChooserDialog.custom : add a params array for button info to 
	both ctors.  Chain them to IntPtr.Zero.
	* gtk/Gtk.metadata : hide the ellipsis ctors for the dialog types.
	[Fixes #71818]
	* sample/GtkDemo/DemoDialog.cs : make the InteractiveDialog use the
	new Dialog ctor as it does in the c version.

svn path=/trunk/gtk-sharp/; revision=39713
2005-01-28 16:03:27 +00:00
John Luke
c672ddc7a3 flush
svn path=/trunk/gtk-sharp/; revision=39607
2005-01-26 23:05:42 +00:00
John Luke
f2343fbb71 2005-01-25 John Luke <john.luke@gmail.com>
* sample/CustomNotebook.cs:
        * sample/CustomWidget.cs: use Widget.WidgetFlags prop to avoid
        obsolete warning


svn path=/trunk/gtk-sharp/; revision=39528
2005-01-25 21:18:33 +00:00
Dan Winship
67e7fc486b * glib/Marshaller.cs (StringFormat): Calls String.Format and makes
sure the output has no unescaped "%"s. (For wrapping printf-style
	unmanaged methods with String.Format-style managed ones.)

	* gtk/MessageDialog.custom (MessageDialog): use it. #71405. Also,
	use gtk_message_dialog_new_with_markup by default, and add an
	overloaded ctor that lets you use the non-markup version.

	* gtk/Gtk.metadata: hide the GtkMessageDialog ctors so we don't
	get ellipsis warnings about them.

	* sample/GtkDemo/DemoApplicationWindow.cs:
	* sample/GtkDemo/DemoDialog.cs: simplify the MessageDialog usage;
	don't need to call String.Format separately now.

svn path=/trunk/gtk-sharp/; revision=39256
2005-01-20 15:45:13 +00:00
Mike Kestner
04f9d007cc 2005-01-12 Mike Kestner <mkestner@novell.com>
* sample/gnomevfs/Makefile,am : conditionally build.

svn path=/trunk/gtk-sharp/; revision=38792
2005-01-12 17:36:12 +00:00
Mike Kestner
32aa6d0788 2005-01-12 Mike Kestner <mkestner@novell.com>
* sample/gnomevfs/*.cs : s/Test.Gnome.VFS/TestGnomeVfs to avoid
	namespace collision problems with current mcs.

svn path=/trunk/gtk-sharp/; revision=38788
2005-01-12 15:34:09 +00:00
Mike Kestner
d944e97bf2 2005-01-11 Mike Kestner <mkestner@novell.com>
* configure.in : add test for System.Drawing. expand gtkdotnet.
	* Makefile.am : add gtkdotnet.
	* makefile.win32 : add gtkdotnet.
	* gtkdotnet/* : new .Net extensions assembly. Moved the sample
	sysdraw.cs Graphics class in here under the Gtk.DotNet namespace.
	* sample/sysdraw.cs : moved to gtkdotnet/Graphics.cs.
	* sample/drawing-sample.exe.config.in : killed.
	* sample/DrawingSample.cs : use Gtk.DotNet.Graphics.
	* sample/Makefile.am : make drawing-sample.exe build conditional
	on gtk-dotnet presence.

svn path=/trunk/gtk-sharp/; revision=38745
2005-01-12 00:11:08 +00:00
Mike Kestner
05edc3a67d 2005-01-07 Mike Kestner <mkestner@novell.com>
* sample/Makefile.am : mdb cleanup.
	* sample/GtkDemo/Makefile.am : mdb cleanup.

svn path=/trunk/gtk-sharp/; revision=38512
2005-01-07 23:22:54 +00:00
John Luke
8fc739e12c display the info page from comments in the source
and add missing descriptions

svn path=/trunk/gtk-sharp/; revision=38236
2005-01-02 19:16:41 +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
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
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
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
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
John Luke
7535410958 enable completion on this now
svn path=/trunk/gtk-sharp/; revision=38006
2004-12-20 23:39:59 +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
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
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
faaccd7e0b * generator/ManagedCallString.cs (Setup, Finish, ToString): Add
new methods to allow arbitrary setup and teardown code around the
        managed call. When passing a type with "complicated" marshalling
        requirements as a ref or out param, first assign the value to a
        temporary variable (in Setup), then pass the temp as the ref or
        out param (in ToString), and then assign the new value back to the
        original argument (in Finish).

        * generator/Signal.cs: 
        * generator/SignalHandler.cs: Update to generate correct glue for
        signals with "ref" or "out" params. (#70566)

        * generator/VirtualMethod.cs: Update for ManagedCallString change

        * generator/IGeneratable.cs: add comments explaining what each
        member does

        * gtk/Gtk.metadata: mark Editable.InsertText's "position" arg
        * pass-by-ref

        * sample/Size.cs: connect to the SizeRequested event and override
        it, to test/demo the changes

svn path=/trunk/gtk-sharp/; revision=37854
2004-12-16 23:38:35 +00:00
Mike Kestner
48358ccf22 2004-12-16 Mike Kestner <mkestner@novell.com>
* sample/NodeViewDemo.cs : rework of TreeViewDemo to use NodeStore.
	* sample/TreeViewDemo.cs : added some timing and node counting fu.

2004-12-16  Duncan Mak  <duncan@ximian.com>

	* gtk/Makefile.am (sources): Added NodeSelection and NodeView.
	* gtk/NodeSelection.cs: New file, an implementation of
 	TreeSelection that exposes ITreeNodes instead of TreeIters.
	* gtk/NodeStore.cs : added internal GetIter and GetPath methods for 
	NodeSelection. Reworked [TreeNodeValue] lookup logic.
 	out what the Type of data the store holds.
	* gtk/NodeView.cs: New subclass of TreeView utilizing NodeStore and
	NodeSelection.
	* gtk/TreeIter.custom : new internal UserData prop.
	* gtk/TreeNodeValueAttribute.cs: Set AllowMultiple to true.
	* gtk/TreeView.custom: Obsoleted constructor that uses a NodeStore as
 	parameter. NodeView should be used instead.

svn path=/trunk/gtk-sharp/; revision=37845
2004-12-16 20:30:43 +00:00
John Luke
4da41dbe67 use reflection to handle the TreeView and launching of the demos
Add a DemoAttribute to all the demos to support this

svn path=/trunk/gtk-sharp/; revision=37669
2004-12-12 22:11:44 +00:00
John Luke
304f9404b4 add clipboard demo from gtk-demo
svn path=/trunk/gtk-sharp/; revision=37667
2004-12-12 20:58:08 +00:00
Jeroen Zwartepoorte
aca1b3ce98 2004-12-08 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/Makefile.am: Readded TestVfs.cs back and make it conditional.
	* sample/TestVfs.cs: New sample contributed by Tamara Roberson.
	[Fixes #70262]


svn path=/trunk/gtk-sharp/; revision=37374
2004-12-08 08:47:18 +00:00
Mike Kestner
993d91fa31 2004-12-07 Mike Kestner <mkestner@novell.com>
* */*.cs : s/glue-2.0/glue-2 so that dllimport works on win32.
	* */*.custom : s/glue-2.0/glue-2
	* */glue/makefile.win32 : s/glue-2.0/glue-2
	* */glue/Makefile.am : s/glue-2.0/glue-2

svn path=/trunk/gtk-sharp/; revision=37324
2004-12-07 19:03:55 +00:00
John Luke
7c2a7206a2 add some new gtk2.4 demos, remove ItemFactory
svn path=/trunk/gtk-sharp/; revision=37062
2004-12-03 22:21:44 +00:00
John Luke
e16d2290d7 update these to the gtk2.4 ways (ComboBox and Action/UIManager)
svn path=/trunk/gtk-sharp/; revision=37056
2004-12-03 21:00:33 +00:00
Dan Winship
e0a0bd13fa * gdk/gdk-symbols.xml: alias GdkBitmap to GdkPixmap [Fixes
* #68824]

        * gdk/Gdk.metadata: Remove the earlier GdkBitmap hack now that
        it's aliased. Also move Gdk.Bitmap.CreateFromData to
        Gdk.Pixmap.CreateBitmapFromData

        * gdk/Pixbuf.custom (RenderPixmapAndMask,
        RenderPixmapAndMaskForColormap, RenderThresholdAlpha):
        s/Bitmap/Pixmap/

        * sample/GtkDemo/DemoTextView.cs: uncomment the fg/bg stipple
        code, since that works now

        * parser/gapi-fixup.cs: Add an "add-node" rule. This turned out
        * to
        not actually be needed for this fix, but we know we'll need it
        later, so here it is.

svn path=/trunk/gtk-sharp/; revision=37055
2004-12-03 20:42:12 +00:00
Dan Winship
2c9ce7d64e * gtk/Gtk.metadata: Pass TextIters by ref almost everywhere.
[Fixes #70187]. Kill two varargs warnings.

        * gtk/TextBuffer.custom: Update for that, and also implement
        InsertWithTagsByName

        * sample/GtkDemo/DemoHyperText.cs:
        * sample/GtkDemo/DemoTextView.cs: Remove kludges for broken
        TextIter handling. Also fix the i18n demo bits by translating the
        octal-encoded UTF-8 to hex-encoded UTF-16.

svn path=/trunk/gtk-sharp/; revision=37039
2004-12-03 18:00:30 +00:00
Dan Winship
ec0b40c343 * sample/GtkDemo/DemoImages.cs: Fix some crashers discovered while
trying to use this as a test case to figure out whether or not I'd
        broken Gtk#. Sigh. :)

svn path=/trunk/gtk-sharp/; revision=36863
2004-11-30 21:13:42 +00:00
Ben Maurer
12b8e718e1 Make the sample have good coding :-)
svn path=/trunk/gtk-sharp/; revision=36750
2004-11-29 03:28:27 +00:00
Miguel de Icaza
6eea226ab7 Update dample
svn path=/trunk/gtk-sharp/; revision=36749
2004-11-29 03:22:33 +00:00
Jeroen Zwartepoorte
0c81f9142c 2004-11-26 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/ActionEntry.cs:
	* gtk/ActionGroup.custom:
	* gtk/Gtk.metadata:
	* gtk/Makefile.am:
	* gtk/RadioActionEntry.cs:
	* gtk/ToggleActionEntry.cs:
	* gtk/UIManager.custom:
	* sample/Actions.cs: Updated to use the new *ActionEntry code. Reflects
	testactions.c from gtk+ now.
	
	Added C# syntactic sugar for easily defining Action's for the UIManager.
	Derived from the same ActionEntry structs in gtk+.


svn path=/trunk/gtk-sharp/; revision=36638
2004-11-26 14:59:38 +00:00
Jeroen Zwartepoorte
55aed28266 2004-11-02 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/AsyncDirectoryLoadCallback.cs:
	* gnomevfs/AsyncDirectoryLoadCallbackNative.cs:
	* gnomevfs/Directory.cs: Implement asynchronous directory loading.
	* gnomevfs/FileInfo.cs: Clear the FileInfoNative struct in the
	destructor.
	* gnomevfs/Makefile.am: Add new callback files.
	* sample/gnomevfs/TestDirectory.cs: Add async test.

svn path=/trunk/gtk-sharp/; revision=35571
2004-11-02 19:17:05 +00:00
Dan Winship
eb4abd9536 ignore .exe.mdb files
svn path=/trunk/gtk-sharp/; revision=35559
2004-11-02 13:48:22 +00:00
Jeroen Zwartepoorte
33dbe7485e 2004-11-01 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: Bind gnome_vfs_directory_list_load as a static
	FileInfo[] GetEntries (uri) method.
	* gnomevfs/FileInfo.cs: Add internal FileInfoNative constructor to
	create a FileInfo class based on an existing FileInfoNative struct.
	* gnomevfs/Makefile.am:
	* sample/gnomevfs/Makefile.am:
	* sample/gnomevfs/TestDirectory.cs:

svn path=/trunk/gtk-sharp/; revision=35532
2004-11-01 20:03:30 +00:00
Mike Kestner
7f3171c814 merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD
is now tracking Gnome 2.6.

svn path=/trunk/gtk-sharp/; revision=35479
2004-10-29 20:33:07 +00:00
Miguel de Icaza
e474831d5e Update Cairo Sample
svn path=/trunk/gtk-sharp/; revision=33460
2004-09-06 23:54:35 +00:00
John Luke
8f2aa18cb0 improve this thing
svn path=/trunk/gtk-sharp/; revision=32972
2004-08-28 20:51:06 +00:00
John Luke
6cf715ac84 fix invaliid iter in DemoMain
some lame StockBrowser stuff

svn path=/trunk/gtk-sharp/; revision=32971
2004-08-28 20:04:41 +00:00
John Luke
35e772eef9 argh, distcheck hates me
svn path=/trunk/gtk-sharp/; revision=32962
2004-08-28 03:41:22 +00:00
John Luke
9bc5a874e3 new partial HyperText demo
clean up DemoMain
fix distcheck

svn path=/trunk/gtk-sharp/; revision=32961
2004-08-28 03:30:33 +00:00
John Luke
8ba7c8305b store the .cs files as resources also
svn path=/trunk/gtk-sharp/; revision=32944
2004-08-27 19:43:41 +00:00
John Luke
780218b349 fix my brokenness
svn path=/trunk/gtk-sharp/; revision=32943
2004-08-27 19:16:13 +00:00
John Luke
c3d54388e2 use resources for images
Dont crash if source is not there
makes it easier to run on win32

svn path=/trunk/gtk-sharp/; revision=32942
2004-08-27 19:00:00 +00:00
Mike Kestner
e5dde2ff7e 2004-08-26 Manuel V. Santos <mvsl@telefonica.net>
* gdk/Device.custom : glue to expose object fields.
	* gdk/DeviceAxis.custom : expand the ToString to incl use:
	* gdk/EventButton.custom : fix for Axes prop.
	* gdk/EventMotion.custom : fix for Axes prop.
	* gdk/Gdk.metadata : hide some accessors on Device.
	* gdk/Makefile.am : add new custom.
	* gdk/glue/Makefile.am : add new .c
	* gdk/glue/makefile.win32 : add new .o
	* gdk/glue/device.c : ditto.
	* gtk/InputDialog.custom : glue to expose button fields.
	* gtk/Makefile.am : add new custom.
	* gtk/glue/Makefile.am : add new .c
	* gtk/glue/makefile.win32 : add new .o
	* gtk/glue/inputdialog.c : ditto.
	* sample/ScribbleXInput.cs : new sample using extension events.

svn path=/trunk/gtk-sharp/; revision=32899
2004-08-26 19:10:48 +00:00
John Luke
87ca50791c new example/test for Rsvg
svn path=/trunk/gtk-sharp/; revision=32795
2004-08-24 20:26:36 +00:00
John Luke
a95c723a5d enable this part now
svn path=/trunk/gtk-sharp/; revision=32327
2004-08-13 19:44:15 +00:00
John Luke
2da02fa8bb fix implement some StockBrowser stuff
svn path=/trunk/gtk-sharp/; revision=32177
2004-08-10 19:50:10 +00:00
John Luke
8e7348d260 implement Progressive image loader
and part of the stock browser

svn path=/trunk/gtk-sharp/; revision=32053
2004-08-08 18:30:25 +00:00
John Luke
db410e9497 implement some of the DemoApplicationWindow
fix some bugs in DemoEditableCells
use more consistent tabs and spaces
add a TODO of what is left
use the using () pattern to dispose Dialogs automatically
use args.RetVal when handling the DeleteEvent

svn path=/trunk/gtk-sharp/; revision=32017
2004-08-07 17:06:29 +00:00
John Luke
6b279784d4 2004-07-05 John Luke <jluke@cfl.rr.com>
* sample/VteTest.cs: improve the scrolling in the sample
        and pass on the Environment variables

svn path=/trunk/gtk-sharp/; revision=30770
2004-07-06 00:52:13 +00:00
Mike Kestner
5a1a334410 oops
svn path=/trunk/gtk-sharp/; revision=30625
2004-07-01 16:48:56 +00:00
Mike Kestner
711385e4d6 2004-07-01 Mike Kestner <mkestner@ximian.com>
* sample/rsvg/Makefile.am : add an art-sharp /r.

svn path=/trunk/gtk-sharp/; revision=30624
2004-07-01 16:45:29 +00:00
John Luke
a7a0bf8042 2004-06-18 John Luke <jluke@cfl.rr.com>
* sample/rsvg/Makefile.am:  do not reference gnome-sharp and art-sharp
        * sample/rsvg/svghelloworld.cs: rework with just gtk (no gnome deps)

svn path=/trunk/gtk-sharp/; revision=29923
2004-06-18 21:38:57 +00:00
Mike Kestner
112f066abf 2004-06-11 Mike Kestner <mkestner@ximian.com>
* configure.in : deal with a csc-ism in source paths.
	* */Makefile.am : use the GENERATED_SOURCES var.
	* */glue/Makefile.am : add -no-undefined for win32 dll builds.

svn path=/trunk/gtk-sharp/; revision=29367
2004-06-11 18:19:41 +00:00
Mike Kestner
c1440d52d1 2004-06-10 Mike Kestner <mkestner@ximian.com>
* configure.in : AC_SUBST GACUTIL_FLAGS. require mono-0.95 (though
	it's really cvs bleeding edge.)
	* * AssemblyInfo.cs.in : s/pub/snk.  delaysign=no.
	* * Makefile.am : s/pub/snk.  portability fixes to csc from John
	Luke.  Switch to GACUTIL_FLAGS.
	* doc/Makefile.am : don't build docs, install raw xml to the prefix.

svn path=/trunk/gtk-sharp/; revision=29227
2004-06-10 19:45:20 +00:00
Todd Berman
01e3962bc8 2004-06-04 Todd Berman <tberman@sevenl.net>
* glib/Object.cs: ConnectDefaultHandlers needs to look at public api
        as well for virtual methods.
        * gtk/CellRenderer.custom:
        * gtk/Container.custom:
        * gnome/CanvasItem.custom: Add DefaultSignalHandler to remove the need
        for the static ctor.

svn path=/trunk/gtk-sharp/; revision=28851
2004-06-05 01:01:07 +00:00
Todd Berman
12bc3b0550 2004-06-04 Todd Berman <tberman@sevenl.net>
* gnome/CanvasItem.custom: Changed from OnXXX vmethods to XXX vmethods
        * gnome/CanvasProxy.cs: removed, unused code
        * gnome/GtkSharp.BoundsHandler.cs: removed
        * gnome/GtkSharp.DrawHandler.cs: removed
        * gnome/GtkSharp.PointHandler.cs: removed
        * gnome/GtkSharp.RenderHandler.cs: removed
        * gnome/GtkSharp.UpdateHandler.cs: removed
        * gnome/Makefile.am: updated to reflect removing of old files.
        * gtk/CellRenderer.custom: Changed from OnXXX vmethods to XXX vmethods,
        and added StartEditing vmethod
        * gtk/Container.custom: Changed from OnForall to ForAll
        * gtk/Gtk.metadata: hide CellRenderer.GetSize and StartEditing
        * gtk/glue/cellrenderer.c: new glue for CellRenderer.StartEditing
        override.
        * sample/CustomCellRenderer.cs: updated signatures to reflect new
        code.

svn path=/trunk/gtk-sharp/; revision=28815
2004-06-04 04:55:48 +00:00
Miguel de Icaza
c06d83388c Dont create the font on a loop
svn path=/trunk/gtk-sharp/; revision=28714
2004-06-02 19:32:56 +00:00
Jeroen Zwartepoorte
03df165143 2004-06-01 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* sample/CustomWidget.cs: Add custom widget sample.
	* sample/Makefile.am: Idem.

svn path=/trunk/gtk-sharp/; revision=28649
2004-06-01 18:31:20 +00:00
Mike Kestner
ac5e091b8c 2004-06-01 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : mark SizeRequest requisition as out, not ref.
	[Fixes #59388]

2004-06-01  Mike Kestner  <mkestner@ximian.com>

	* en/Gtk/Widget.xml : move existing docs to new method sig.

svn path=/trunk/gtk-sharp/; revision=28629
2004-06-01 15:28:22 +00:00
Miguel de Icaza
f68162fb3c 2004-05-28 Miguel de Icaza <miguel@ximian.com>
* Added System.Drawing samples.

svn path=/trunk/gtk-sharp/; revision=28397
2004-05-28 21:45:05 +00:00
Miguel de Icaza
5ad44d8a59 Improve
svn path=/trunk/gtk-sharp/; revision=28386
2004-05-28 19:45:22 +00:00
Miguel de Icaza
ebff0837aa Add some lovin'
svn path=/trunk/gtk-sharp/; revision=28385
2004-05-28 19:38:23 +00:00
Miguel de Icaza
977c36bd98 Add samples that use System.Drawing
svn path=/trunk/gtk-sharp/; revision=28384
2004-05-28 19:19:04 +00:00
Todd Berman
ef102fe7cc 2004-05-18 Todd Berman <tberman@sevenl.net>
* samples/Scribble.cs: Im bored, you can erase, etc

svn path=/trunk/gtk-sharp/; revision=27565
2004-05-18 05:48:10 +00:00
Mike Kestner
ffe268c415 2004-05-17 Mike Kestner <mkestner@ximian.com>
* generator/SignalHandler.cs : fix some broken/redundant generation in
	the Object/Struct wrapping for sig params.
	* glib/Object.cs : internalize/protect lots of API that shouldn't need
	to be used by non-subclass/non-glib code. Return GType.Object as GType.
	* glib/Value.cs : use internal GLib.Object.NativeType prop.
	* sample/TestDnd.cs : use ToString instead of TypeName.

svn path=/trunk/gtk-sharp/; revision=27530
2004-05-17 17:52:00 +00:00
Todd Berman
bcb922a320 Fix this up so it works exactly like its C counterpart
svn path=/trunk/gtk-sharp/; revision=27468
2004-05-16 02:03:19 +00:00
Todd Berman
e474eaca89 2004-05-14 Todd Berman <tberman@sevenl.net>
* glib/Object.cs: make static GLib.Object.LookupGType protected for now.        * gtk/CellRenderer.custom: code to allow for subclassing and
        implementing a custom cell renderer.
        * gtk/Makefile.am: add custom to build.
        * gtk/glue/Makefile.am: add glue to build.
        * gtk/glue/cellrenderer.c: glue code to override get_size and render
        from cellrenderer.
        * sample/CustomCellRenderer.cs: new sample to show how to implement a
        custom cell renderer.
        * sample/Makefile.am: add CustomCellRenderer sample.

svn path=/trunk/gtk-sharp/; revision=27426
2004-05-14 20:25:57 +00:00
Mike Kestner
0a74f7083e 2004-05-10 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : mark some Dialog API params as ResponseType
	instead of int.
	[fixes #58240]

svn path=/trunk/gtk-sharp/; revision=27046
2004-05-10 20:00:08 +00:00
Mike Kestner
8bb5dbc321 2004-05-07 Mike Kestner <mkestner@ximian.com>
* sample/GnomeHelloWorld.cs : guard against null args.Event in the
	icon_selected_cb, which occurs on button-presses for some reason.
	Thanks to wmealing on irc for the bug report.

svn path=/trunk/gtk-sharp/; revision=26926
2004-05-07 15:01:56 +00:00
Mike Kestner
5a2659022c 2004-05-07 Mike Kestner <mkestner@ximian.com>
* sample/*/Makefile.am : rebuild if the assemblies change

svn path=/trunk/gtk-sharp/; revision=26920
2004-05-07 14:22:20 +00:00
Mike Kestner
c9f1eadc11 2004-05-07 Mike Kestner <mkestner@ximian.com>
[Derived from a patch by Ben Maurer]
	* generator/Ctor.cs : generate code to detect subclassing and handle
	GType registration and native object creation properly.
	* generator/Parameters.cs : add PropertyName accessor for param attr.
	* generator/Property.cs : use a new GLib.Value ctor.
	* glib/ObjectManager.cs : redo hash access.
	* glib/Object.cs : CreateNativeObject method to invoke g_object_newv
	and some refactoring of RegisterGType and LookupGType.
	* glib/Value.cs : make gtype field an IntPtr.
	* glib/glue/object.c : glue for g_object_newv use.
	* glib/glue/value.c : new glue for value creation.
	* gtk/Dialog.custom : fix a ctor declaration for auto-reg.
	* gtk/Gtk.metadata : mark a couple property_name attrs as examples.
	* sample/Subclass.cs : use auto-GType-registration now.

svn path=/trunk/gtk-sharp/; revision=26916
2004-05-07 13:42:59 +00:00
Mike Kestner
6fd6ecbbdb 2004-05-05 Mike Kestner <mkestner@ximian.com>
* sample/gconf/Makefile.am : fix some whitespace.  I love you, auto*.

svn path=/trunk/gtk-sharp/; revision=26710
2004-05-04 19:08:44 +00:00
Mike Kestner
2681235b22 2004-05-05 Mike Kestner <mkestner@ximian.com>
* configure.in : fix gtkhtml versioning *again*.
	* sample/gconf/Makefile.am : conditional build on ENABLE_GNOME.

svn path=/trunk/gtk-sharp/; revision=26708
2004-05-04 18:58:21 +00:00
Paolo Molaro
5cd8d37664 Sample for GtkHTML.
svn path=/trunk/gtk-sharp/; revision=26585
2004-05-03 14:28:59 +00:00
Mike Kestner
67278125a2 2004-04-30 Mike Kestner <mkestner@ximian.com>
* sample/gconf/* : break System.Drawing dependency.

svn path=/trunk/gtk-sharp/; revision=26427
2004-04-30 16:20:43 +00:00
Mike Kestner
5f4ee87b5c 2004-04-28 Mike Kestner <mkestner@ximian.com>
[Expanded from patch by John Luke attached to bug.]
	* gdk/Gdk.metadata : rename Atom.Name to GetName so it props.
	* gdk/Atom.custom : new string cast operator.
	* sample/TestDnd.cs : fix Atom.Name reference
	* sample/GtkDemo/DemoEditableCell.cs : fix a ListStore.Remove
	ref broken by last commit.
	[Fixes #57721]

svn path=/trunk/gtk-sharp/; revision=26208
2004-04-28 20:58:11 +00:00
John Luke
a0901fea5e 2004-04-04 John Luke <jluke@cfl.rr.com>
* vte/Vte.metadata: mark argv and envv parameters to
        Vte.Terminal.ForkCommand as arrays, it finally works
        * sample/Vte-test.cs: adjust for above

svn path=/trunk/gtk-sharp/; revision=25014
2004-04-04 21:18:56 +00:00
Todd Berman
72df874f24 /resource fix to fix glade-test.exe
svn path=/trunk/gtk-sharp/; revision=24697
2004-03-29 05:14:03 +00:00
Mike Kestner
48b08a3b7a 2004-03-25 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : Widget.Events is a Gdk.EventMask, not int
	* sample/GtkDemo/DemoDrawingArea.cs : remove int casts
	* sample/Scribble.cs : remove int casts

svn path=/trunk/gtk-sharp/; revision=24601
2004-03-25 18:40:12 +00:00
John Luke
dff96be902 2003-03-24 John Luke <jluke@cfl.rr.com>
* samples/gconf/Makefile.am:
        changes SOURCES to FILES to make automake 1.8 happy

svn path=/trunk/gtk-sharp/; revision=24544
2004-03-24 19:38:29 +00:00
Mike Kestner
4616bb2fb2 2004-03-17 Mike Kestner <mkestner@ximian.com>
* sample/rsvg/Makefile.am : make conditional on ENABLE_RSVG

svn path=/trunk/gtk-sharp/; revision=24234
2004-03-17 17:03:54 +00:00
Mike Kestner
5e03bca76f hush
svn path=/trunk/gtk-sharp/; revision=24156
2004-03-16 19:24:53 +00:00
Mike Kestner
e83c55a242 2004-03-12 Mike Kestner <mkestner@ximian.com>
* */Makefile.am : automakify the build
	* */Makefile.in : kill
	* *.custom : remove System.Drawing dependencies
	* *.cs : remove System.Drawing dependencies
	* *-api.xml : mv to *-api.raw
	* glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade.
	* gtk/gtk-symbols : alias GtkType to GType
	* sources/gtk-sharp-sources.xml : create .raw files. They are now
	transformed to .xml files by the metadata compilation step.

svn path=/trunk/gtk-sharp/; revision=23967
2004-03-12 21:18:11 +00:00
Mike Kestner
5ab5d3beaf 2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventFocus and EventConfigure.
	* gdk/EventConfigure.cs : glue-based manual implementation.
	* gdk/EventConfigure.custom : kill
	* gdk/EventFocus.cs : glue-based manual implementation.
	* gdk/EventFocus.custom : kill
	* gdk/gdk-api.xml : regen
	* gdk/gdk-symbols.xml : manual mappings.
	* glue/event.cs : expose Focus and Configure struct fields.
	* sample/Scribble.cs : fix EventConfigure api breakage

svn path=/trunk/gtk-sharp/; revision=23239
2004-02-18 20:29:21 +00:00
Mike Kestner
ff95b08c65 2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventExpose. make Region opaque.
	* gdk/EventExpose.cs : glue-based manual implementation.
	* gdk/EventExpose.custom : kill
	* gdk/gdk-api.xml : regen
	* gdk/gdk-symbols.xml : manual mapping for EventExpose.
	* glue/event.cs : expose Expose struct fields.
	* sample/Scribble.cs : fix some EventExpose api breakage

svn path=/trunk/gtk-sharp/; revision=23226
2004-02-18 17:59:54 +00:00
Mike Kestner
c0db7bdbcb 2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventMotion
	* gdk/EventMotion.cs : glue-based manual implementation.
	* gdk/EventMotion.custom : kill
	* gdk/gdk-api.xml : regen
	* gdk/gdk-symbols.xml : manual mapping for EventMotion.
	* glue/event.cs : expose Motion struct fields.
	* sample/Scribble.cs : fix some EventMotion api breakage

svn path=/trunk/gtk-sharp/; revision=23224
2004-02-18 17:22:03 +00:00
Mike Kestner
2665037c0e 2004-02-18 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : hide EventButton
	* gdk/EventButton.cs : glue-based manual implementation.
	* gdk/EventButton.custom : kill
	* gdk/gdk-api.xml : regen
	* gdk/gdk-symbols.xml : manual mapping for EventButton.
	* glue/event.cs : expose Button struct fields.
	* sample/CanvasExample.cs : fix EventButton ctor
	* sample/GnomeHelloWorld.cs : fix EventButton ctor

svn path=/trunk/gtk-sharp/; revision=23220
2004-02-18 16:34:45 +00:00
Mike Kestner
8f14f27048 make sample/test build
svn path=/trunk/gtk-sharp/; revision=23080
2004-02-13 21:27:45 +00:00
Mike Kestner
efd542b29c 2004-02-12 Mike Kestner <mkestner@ximian.com>
* sample/GladeViewer.cs : fix a broken api usage.

svn path=/trunk/gtk-sharp/; revision=23078
2004-02-13 21:16:12 +00:00
John Luke
f52a27bf79 compile fixes
svn path=/trunk/gtk-sharp/; revision=23011
2004-02-12 03:56:13 +00:00
Mike Kestner
f774796311 2004-02-10 Mike Kestner <mkestner@ximian.com>
* gconf/GConf.PropertyEditors/PropertyEditorColorPicker.cs :
	nuke a GnomeSharp.
	* generator/Signal.cs : move eventhandlers and args into the
	base namespace instead of a *Sharp namespace.
	* sample/*.cs : nuke using *Sharp.

svn path=/trunk/gtk-sharp/; revision=22956
2004-02-10 20:35:40 +00:00
Mike Kestner
d41f6593b0 2004-02-10 Mike Kestner <mkestner@ximian.com>
* art/Art.metadata : mark a field private
	* art/art-api.xml : regen
	* gda/Gda.metadata : mark a few structs opaque
	* gda/gda-api.xml : regen
	* gdk/*.custom : fix changed field names
	* gdk/gdk-api.xml : regen
	* generator/Field.cs : StudlyCase simple typed field names.
	* gnome/Gnome.metadata : mark FontEntry.weight private to
	avoid collision with Weight field. s|//|/api/namespace|g
	* gnome/gnome-api.xml : regen
	* gtk/Gtk.metadata : rename AccelKey.accel_key to key to
	avoid collision with type name.
	* gtk/*.custom : fix changed field names
	* gtk/gtk-api.xml : regen
	* pango/pango-api.xml : regen
	* parser/gapi_pp.pl : add a private_regex to hide BACKEND
	and ENGINE apis, which are by convention private.
	* sample/* : make compile
	* sample/GtkDemo/* : make compile
	* sample/test/* : make compile
	* sources/gtk-sharp-sources.xml : exclude a bunch of pango
	source files.

svn path=/trunk/gtk-sharp/; revision=22947
2004-02-10 16:04:50 +00:00
John Luke
f9026e2b5b handle 'enter' when typing in the terminal
svn path=/trunk/gtk-sharp/; revision=22748
2004-02-03 21:21:57 +00:00
Martin Willemoes Hansen
931d2e3203 * sample/Subclass.cs: Added a DeleteEventHandler to the window widget,
this way a user can properly quit the sample.

svn path=/trunk/gtk-sharp/; revision=22711
2004-02-02 21:32:54 +00:00
Miguel de Icaza
5b371fd827 Update Cairo sample
svn path=/trunk/gtk-sharp/; revision=22636
2004-01-31 03:52:22 +00:00
Miguel de Icaza
a57d46e5ee Use standard command args, remove -unsafe
svn path=/trunk/gtk-sharp/; revision=22635
2004-01-31 03:52:07 +00:00
John Luke
a987ae2982 * sample/VteTest.cs: update
* vte/Vte.metadata: remove incorrect rules
* vte/vte-api.xml: regen

svn path=/trunk/gtk-sharp/; revision=22586
2004-01-29 01:08:46 +00:00
John Luke
ec55946526 2004-01-20 John Luke <jluke@cfl.rr.com>
* samples/GtkDemo:
       * samples/DbCLient: compile fixes, patch from
       Paul Duran <pauld@hutch.com.au>

svn path=/trunk/gtk-sharp/; revision=22314
2004-01-20 21:28:50 +00:00
Todd Berman
72968de0ac Just adding proper window closing to TestDnD.cs
svn path=/trunk/gtk-sharp/; revision=22306
2004-01-20 18:01:55 +00:00
John Luke
8c060bde9c 2004-01-18 John Luke <jluke@cfl.rr.com>
* vte/Vte.metadata: fix to generate signals
	* vte/vte-api.xml: regen
	* samples/VteTest.cs: remove my home dir path

svn path=/trunk/gtk-sharp/; revision=22230
2004-01-18 22:10:03 +00:00
John Luke
6a6a552861 change return type of ForkCommand to gint
update sample to use ForkCommand,
still missing signals

svn path=/trunk/gtk-sharp/; revision=22216
2004-01-18 00:54:08 +00:00
John Luke
625a4481cc 2004-01-17 John Luke <jluke@cfl.rr.com>
* configure.in: detect and compile vte-sharp  (require vte-0.11.10)
	* vte/*:
	* sources/makefile:
	* sources/gtk-sharp-sources.xml: add vte
	* samples/VteTest.cs: add incomplete test/sample
	* samples/Makefile.in: add vte-test.exe target

svn path=/trunk/gtk-sharp/; revision=22213
2004-01-17 22:47:35 +00:00
John Luke
a5b70aa2f9 2004-01-10 John Luke <jluke@cfl.rr.com>
* samples/GtkDemo/*.cs: make it compile
	patch from Yves Kurz <ml_yves@magnific.ch>

svn path=/trunk/gtk-sharp/; revision=21925
2004-01-11 02:58:08 +00:00
Mike Kestner
6e3879ca4b 2003-12-30 Mike Kestner <mkestner@ximian.com>
* glib/Object.cs (ConnectDefaultHandlers): reflection code to
	hook up overridden default signal handlers.
	* glue/type.c  (gtksharp_override_virtual_method): peek the gtype
	and ref the class if it isn't created yet.
	* sample/Subclass.cs : update to override Button.OnClicked.

svn path=/trunk/gtk-sharp/; revision=21559
2003-12-30 22:09:42 +00:00
Mike Kestner
9f3cd6ae80 2003-12-26 Mike Kestner <mkestner@ximian.com>
* glue/selectiondata.c : new glue to make SelectionData opaque
	* glue/Makefile.am : add file
	* glue/makefile.win32 : add file
	* gtk/Gtk.metadata : mark SelectionData opaque, unhide Set method
	* gtk/SelectionData.custom : invoke glue methods for opaque fields.
	* gtk/gtk-api.xml : regen
	* sample/TestDnd.cs : update to new SelectionData API.

svn path=/trunk/gtk-sharp/; revision=21502
2003-12-26 15:14:07 +00:00
Mike Kestner
ff263164e3 2003-12-15 Mike Kestner <mkestner@ximian.com>
* generator/BoxedGen.cs : s/uint/GLib.GType
	* generator/ManualGen.cs : add a ctor to pass ToNative handle name
	* generator/ObjectGen.cs : s/uint/GLib.GType
	* generator/Signal.cs : use GLib.GType and call OverrideVirtualMethod
	* generator/SymbolTable.cs : make GType a ManualGen and update a few
	ManualGens to the new signatures.
	* glib/DefaultSignalHandler.cs : s/Type/System.Type
	* glib/ManagedValue.cs : s/uint/GLib.GType
	* glib/Object.cs : s/uint/GLib.GType, add OverrideVirtualMethod.
	* glib/Type.cs : s/uint/IntPtr, add static fields for fundamentals.
	make it a value type and add ==, !=, Equals, and GetHashCode.
	* glib/TypeConverter.cs : use new GType statics, not fundamentals.
	* glib/Value.cs : use new GType statics, not fundamentals.
	* gnome/*.custom : s/uint/GLib.GType
	* gtk/*Store.custom : use GType statics, not fundamentals.
	* sample/Subclass.cs : s/uint/GLib.GType.

svn path=/trunk/gtk-sharp/; revision=21181
2003-12-15 16:59:25 +00:00
Radek Doulik
74cc769b7f 2003-12-12 Radek Doulik <rodo@ximian.com>
* gtk/Gtk.metadata: hide TextTag.Weight property and implement it
	in TextTag.custom. TextTag Weight property in gtk is of type int,
	but we want it to be Pango.Weight enum

2003-12-10  Radek Doulik  <rodo@ximian.com>

	* glue/program.c (get_default): moved check after strspec is set
	so we don't check uninitialized value

svn path=/trunk/gtk-sharp/; revision=21068
2003-12-12 16:45:51 +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
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
Miguel de Icaza
9488ce6796 Add Cairo Sample
svn path=/trunk/gtk-sharp/; revision=20607
2003-11-29 22:17:52 +00:00
John Luke
f537b79614 2003-11-22 John Luke <jluke@cfl.rr.com>
* sample/PrintSample.cs: add small Gnome.Print example
	* sample/Makefile.in: add print example to gnome build

svn path=/trunk/gtk-sharp/; revision=20347
2003-11-23 00:53:14 +00:00
John Luke
74fc382285 fix Button contructors
table.ColumnSpacing
table.RowSpacing
thanks to Marius Andreiana <mandreiana@rdslink.ro>
for noticing and providing a similar patch

svn path=/trunk/gtk-sharp/; revision=20324
2003-11-21 19:58:50 +00:00
John Luke
ab2dda15d7 no need to use SignalArgs, just use args.RetVal where needed
svn path=/trunk/gtk-sharp/; revision=20254
2003-11-20 01:10:46 +00:00
John Luke
e11b569484 *.cs: update to use Button ("stock_id")
DemoTextView.cs: use tag.FontDesc.Weight

svn path=/trunk/gtk-sharp/; revision=20253
2003-11-20 01:07:35 +00:00
Daniel Kornhauser Eisenberg
12abad900e *** empty log message ***
svn path=/trunk/gtk-sharp/; revision=19965
2003-11-13 21:48:45 +00:00
Gonzalo Paniagua Javier
b828f81d01 build fix
svn path=/trunk/gtk-sharp/; revision=19930
2003-11-13 10:09:13 +00:00
John Luke
737e86b889 add usage check and message
svn path=/trunk/gtk-sharp/; revision=19719
2003-11-07 21:56:24 +00:00
John Luke
4173fe2616 update for 0.6.4
svn path=/trunk/gtk-sharp/; revision=19633
2003-11-04 23:45:04 +00:00