Commit Graph

219 Commits

Author SHA1 Message Date
John Luke
39b871d786 implement most of it
svn path=/trunk/gtk-sharp/; revision=19600
2003-11-03 22:05:06 +00:00
John Luke
2a638aa84e start the Tree expanded
svn path=/trunk/gtk-sharp/; revision=19567
2003-11-03 04:40:17 +00:00
John Luke
68ee3bc9b4 implement ItemToggled
svn path=/trunk/gtk-sharp/; revision=19559
2003-11-02 20:57:15 +00:00
John Luke
7bf40dfb69 fix out/ref in treeviews
svn path=/trunk/gtk-sharp/; revision=19556
2003-11-02 20:35:55 +00:00
Daniel Kornhauser Eisenberg
12c274709f 2003-10-30 Daniel Kornhauser Eisenberg <dkor@alum.mit.edu>
Images for GtkDemo

svn path=/trunk/gtk-sharp/; revision=19490
2003-10-31 00:01:35 +00:00
Daniel Kornhauser Eisenberg
b3a7fd2924 2003-10-30 Daniel Kornhauser Eisenberg <dkor@alum.mit.edu>
* sample/GtkDemo/DemoApplicationWindow.cs : New sample, Unfinished, 5%  Done
* sample/GtkDemo/DemoButtonBox.cs :      New sample,
* sample/GtkDemo/DemoColorSelection.cs : New sample,
* sample/GtkDemo/DemoDialog.cs :         New sample,
* sample/GtkDemo/DemoDrawingArea.cs :    New sample,
* sample/GtkDemo/DemoEditableCells.cs :  New sample, Needs clean up
* sample/GtkDemo/DemoImages.cs :         New sample, Unfinished, 75% Done
* sample/GtkDemo/DemoItemFactory.cs :    New sample, Unfinished, 5%  Done
* sample/GtkDemo/DemoListStore.cs :      New sample,
* sample/GtkDemo/DemoMain.cs :           New sample, Unifnished, 60% Done
* sample/GtkDemo/DemoMenus.cs :          New sample,
* sample/GtkDemo/DemoPanes.cs :          New sample,
* sample/GtkDemo/DemoPixbuf.cs :         New sample, Needs clean up
* sample/GtkDemo/DemoSizeGroup.cs :      New sample,
* sample/GtkDemo/DemoStockBrowser.cs :   New sample, Unfinished, 20% Done
* sample/GtkDemo/DemoTextView.cs :       New sample, Unfinished, 99% Done
* sample/GtkDemo/DemoTreeStore.cs :      New sample, Unfinished, 95% Done
* sample/GtkDemo/images : Several Images for the samples
* sample/GtkDemo/Makefile : Very simple Makefile
* sample/GtkDemo/README : Mentions explicitely unfinished state of port

svn path=/trunk/gtk-sharp/; revision=19489
2003-10-30 23:57:41 +00:00
Alp Toker
978a7b8819 2003-09-07 Alp Toker <alp@atoker.com>
* makefile.win32: New clean and release targets, and don't bother
        building the samples (sample/makefile.win32 is out of date anyway)
        * api/makefile.win32:
        * glue/makefile.win32:
        * makefile.win32: Glade# works perfectly on win32 now; include it in
        the default build
        * sample/GladeTest.cs:
        * sample/GladeViewer.cs: Remove Gnome dependency and clean up

svn path=/trunk/gtk-sharp/; revision=17967
2003-09-07 10:56:40 +00:00
John Luke
82f46a92a0 fix so it compiles
svn path=/trunk/gtk-sharp/; revision=17570
2003-08-25 05:24:44 +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
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
Rachel Hestilow
037c9e8255 2003-05-27 Rachel Hestilow <rachel@nullenvoid.com>
* sample/ManagedTreeViewDemo.cs: Remove debugging cruft.

	* gconf/.cvsignore, gconf/GConf/.cvsignore,
	gconf/GConf.PropertyEditors/.cvsignore,
	gconf/tools/.cvsignore, sample/gconf/.cvsignore,
	sample/rsvg/.cvsignore: Added.
	* .cvsignore, parser/.cvsignore: Update.

svn path=/trunk/gtk-sharp/; revision=14923
2003-05-27 06:58:42 +00:00
Rachel Hestilow
f1a77c0e62 2003-05-19 Rachel Hestilow <rachel@nullenvoid.com>
* glib/ManagedValue.cs, TypeConverter.cs: Added.
	* glib/Value.cs: Make Value inherit from IDisposable, and
	move dtor to Dispose. Add generic object constructor
	with support for ManagedValue. Add a new Val property
	which will call the appropriate explicit cast.

	* glue/value.c: Add new glue function
	gtksharp_value_get_value_type.

	* gtk/TreeViewColumn.custom: Added.
	* gtk/ListStore.custom, TreeStore.custom: Add a number
	of SetValue overloads. Add convenience functtion
	AppendValues. Add new ctor that takes System.Type instead
	of GLib.TypeFundamentals. Add a GetValue convenience wrapper.
	* gtk/TreeView.custom: Add AppendColumn convenience
	functions.

	* sample/ManagedTreeViewDemo.cs: Added.
	* sample/Makefile.in: Update.
	* sample/TreeViewDemo.cs: Update to use new convenience
	APIs.

svn path=/trunk/gtk-sharp/; revision=14691
2003-05-19 07:18:52 +00:00
Gonzalo Paniagua Javier
9f3f9f149a 2003-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* rsvg/Makefile.in:
	* sample/rsvg/Makefile.in: hopefully fixes building from scratch.

	* rsvg/Tool.cs: the class should be public.

svn path=/trunk/gtk-sharp/; revision=14303
2003-05-05 15:41:41 +00:00
Gonzalo Paniagua Javier
fa6e709bbb 2003-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/Scribble.cs: patch from Philip Van Hoof
	<spamfrommailing@freax.org> taht fixes compilation.

svn path=/trunk/gtk-sharp/; revision=14066
2003-04-28 12:41:35 +00:00
Pedro Martínez Juliá
a1309f192b Using shouldn't reference a class. Modified the file to get it build.
svn path=/trunk/gtk-sharp/; revision=13947
2003-04-23 21:29:04 +00:00
Gonzalo Paniagua Javier
a43c7cc88b 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/rsvg/Makefile.in: don't build the sample app. everytime.

svn path=/trunk/gtk-sharp/; revision=12800
2003-03-25 00:58:50 +00:00
Gonzalo Paniagua Javier
7ab055de16 2003-03-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* api/gtk-api.xml: changed DisplayOptions by SetDisplayOptions.
	* sources/Gtk.metadata: added rename hint for DisplayOptions. Moved
	GtkHTMLStream hints to 'misc' area (they were in 'rename' area).

	* gtk/Calendar.custom: added a .net style GetDate override.
	* sample/CalendarApp.cs: updated to new methods in the Calendar API.

svn path=/trunk/gtk-sharp/; revision=12799
2003-03-25 00:47:13 +00:00
Gonzalo Paniagua Javier
a02e962425 2003-03-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/Fifteen.cs: work-around for bug 106145 in gnome bugzilla.
	* sample/DbClient/client.cs: updated to make it compile again.

svn path=/trunk/gtk-sharp/; revision=12752
2003-03-22 17:48:43 +00:00
Lee Mallabone
6dacec484b Add a sample showing a Calendar and build it on linux by default.
svn path=/trunk/gtk-sharp/; revision=12749
2003-03-22 16:37:03 +00:00
Miguel de Icaza
215133d780 2003-03-15 Miguel de Icaza <miguel@ximian.com>
* sample: Update samples to new Glade.Widget.

	* glade/WidgetAttribute.cs: Moved the old GladeWidgetattribute
	here.   Now its called `Glade.WidgetAttribute'.

	* glade/GladeWidgetAttribute.cs: Removed

	* glib/Idle.cs: Do not allow Idle class to be instantiated.

svn path=/trunk/gtk-sharp/; revision=12554
2003-03-15 21:02:25 +00:00
Charles Iliya Krempeaux
9b0fec6fb3 2003-03-14 Charles Iliya Krempeaux <charles@reptile.ca>
* sample/Makefile.in : Modified it to make it so "make clean"
	  will clean the "sample/rsvg" directory too.  And made it so
	  a "make distclean" will do a distclean to the "sample/rsvg"
	  too.
	* sample/rsvg/Makefile.in : Added the "distclean" rule to
	  it.

svn path=/trunk/gtk-sharp/; revision=12545
2003-03-15 18:52:24 +00:00
Charles Iliya Krempeaux
882425cc53 2003-02-27 Charles Iliya Krempeaux <charles@reptile.ca>
* sample/rsvg : Created place to put sample program
	  that uses Rsvg#.
	* sample/Makefile.in : Edited it to make it "make"
	  the stuff in "sample/rsvg".
	* sample/rsvg/Makefile.in : Added it to "make" the
	  Rsvg# sample program.
	* sample/rsvg/svghelloworld.cs : Added it.  It's
	  the sample Rsvg# program.
	* sample/rsvg/sample.svg : Added it.  It's a
	  sample SVG file that the program displays.
	* configure.in : Modified it so it will create
	  sample/rsvg/Makefile from sample/rsvg/Makefile.in.

svn path=/trunk/gtk-sharp/; revision=12504
2003-03-14 07:31:51 +00:00
Duncan Mak
936e25b0c0 2003-03-05 Duncan Mak <duncan@ximian.com>
* TestCombo.cs: New file, to show basic usage of a ComboBox. It's
	missing some functionality, however. Currently, it's not possible
	to append to the list of strings in the pop-down.

svn path=/trunk/gtk-sharp/; revision=12252
2003-03-06 08:15:27 +00:00
Mike Kestner
38750dcd9a 2003-02-24 Mike Kestner <mkestner@speakeasy.net>
* sample/TreeViewDemo.cs : fix Type ambiguities

svn path=/trunk/gtk-sharp/; revision=11924
2003-02-24 08:04:42 +00:00
Mike Kestner
1f43eeef6b 2003-02-24 Mike Kestner <mkestner@speakeasy.net>
* sample/Subclass.cs : rework the GType code.

svn path=/trunk/gtk-sharp/; revision=11923
2003-02-24 07:56:32 +00:00
Duncan Mak
8e10c2d7ff * TestFileSelection.cs: Update to reflect FileSelection changes.
* sources/Gtk.metadata: Add GetLayoutOffsets to the rule for out params.

* gtk/FileSelection.custom (Button): Rename to FSButton, so that
we won't wipe out our original Gtk.Button docs.

svn path=/trunk/gtk-sharp/; revision=11761
2003-02-20 04:03:15 +00:00
Duncan Mak
7cd3f7e625 Change the method signature for the various
SignalFuncs. Thanks to Leoric from #mono for pointing it out.

svn path=/trunk/gtk-sharp/; revision=11718
2003-02-19 08:54:47 +00:00
Mike Kestner
b568293a66 2003-02-13 Mike Kestner <mkestner@speakeasy.net>
* sample/Makefile.in: add a distclean target

2003-02-13  Charles Iliya Krempeaux  <charles@reptile.ca>

	* README : Clarifications and additions

svn path=/trunk/gtk-sharp/; revision=11563
2003-02-14 01:09:43 +00:00
Rodrigo Moya
05f82f95b4 Updated example
svn path=/trunk/gtk-sharp/; revision=11380
2003-02-09 01:27:23 +00:00
Gonzalo Paniagua Javier
8e2bef6468 2003-02-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/gconf/Makefile: defined top_builddir. RUNTIME is now 'mono'.

svn path=/trunk/gtk-sharp/; revision=11288
2003-02-07 01:58:24 +00:00
Alejandro Sánchez Acosta
6e12be4da1 Move samples/tutorial to monkeyguide module.
svn path=/trunk/gtk-sharp/; revision=10488
2003-01-13 23:47:11 +00:00
Rachel Hestilow
3841924432 2003-01-01 Rachel Hestilow <hestilow@ximian.com>
* glade/XML.custom: New method BindFields.
	(Autoconnect): Call BindFields.
	* glade/GladeWidgetAttribute.cs: Added.

	* sample/GladeTest.cs: Test GladeWidgetAttribute.

svn path=/trunk/gtk-sharp/; revision=10048
2003-01-01 21:37:45 +00:00
Alp Toker
bb662563e0 2002-12-25 Alp Toker <alp@atoker.com>
* doc/makefile: Accept the RUNTIME parameter for platforms without
        /usr/bin/mono
        * sample/gconf/Makefile: ditto

svn path=/trunk/gtk-sharp/; revision=9890
2002-12-25 21:01:07 +00:00
Mike Kestner
f750d78d6a 2002-12-24 Mike Kestner <mkestner@speakeasy.net>
* generator/ObjectGen.cs : generate protected GType ctors
	* generator/SymbolTable.cs : map GType to uint
	* glib/Object.cs : add GType ctor. add RegisterGType.
	* glue/type.c (gtksharp_register_type): new GType registrar
	* */*.custom : make GType params uints
	* sample/Subclass.cs : a simple type registration example

svn path=/trunk/gtk-sharp/; revision=9870
2002-12-25 00:36:00 +00:00
Alejandro Sánchez Acosta
f7baeb275d Added notebook sample to the tutorial.
svn path=/trunk/gtk-sharp/; revision=9853
2002-12-24 00:26:15 +00:00
Alejandro Sánchez Acosta
617216a805 Added new GTK# sample.
svn path=/trunk/gtk-sharp/; revision=9682
2002-12-15 17:07:00 +00:00
Alejandro Sánchez Acosta
e958fb6475 Added new sample for the GTK# tutorial.
svn path=/trunk/gtk-sharp/; revision=9681
2002-12-15 17:06:38 +00:00
Juli Mallett
eca30c3078 2002-12-11 Juli Mallett <jmallett@FreeBSD.org>
* gconf/Makefile.in, sample/Makefile.in: Use $(MAKE) not "make."
	* parser/Makefile.in: Use CFLAGS and CPPFLAGS hints from configure,
	and the base dependency CFLAGS.  Fixes case where iconv.h is outside
	of the compiler's default path.

svn path=/trunk/gtk-sharp/; revision=9578
2002-12-11 23:10:31 +00:00
Johannes Roith
f1d358bf18 add new directories
svn path=/trunk/gtk-sharp/; revision=9196
2002-11-26 14:17:07 +00:00
Gonzalo Paniagua Javier
99facd09b8 2002-11-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/DbClient/GnomeDbClient.cs:
	* sample/DbClient/client.cs: make them build.

svn path=/trunk/gtk-sharp/; revision=9189
2002-11-26 00:19:58 +00:00
Alejandro Sánchez Acosta
89e3c84951 Added new samples widgets and modified togglebutton.
svn path=/trunk/gtk-sharp/; revision=9187
2002-11-25 19:09:29 +00:00
Duncan Mak
d1e99ecede Fix build after vlad's struct patch got in.
svn path=/trunk/gtk-sharp/; revision=8959
2002-11-12 21:51:45 +00:00
Vladimir Vukicevic
9ad6d1b6a4 * generator/StructBase.cs: create a Zero static member for
use when the IntPtr is NULL.

* generator/SignalHandler.cs, generator/CallbackGen.cs: removed
call to Initialize for structs

* gtk/Clipboard.custom, gtk/ClipboardClearFunc.cs,
gtk/ClipboardGetFunc.cs,
gtk/GtkSharp.GtkClipboardClearFuncNative.cs,
gtk/GtkSharp.ClipboardGetFuncNative.cs, SelectionData.custom:
Hand-wrapped selection handling stuff, along with relevant
signals and the like.

* gnome/voidObjectAffineSVPintSignal.cs: removed Initialize
for hand-wrapped signal

* sample/GnomeHelloWorld.cs, sample/Size.cs: compare against
.Zero instead of using IsNull

* api/gtk-api.xml, sources/Gtk.metadata: metadata updates for
hiding some manually-wrapped stuff

svn path=/trunk/gtk-sharp/; revision=8912
2002-11-10 10:03:51 +00:00
Johannes Roith
92500272bb add for Alejandro Snchez Acosta
svn path=/trunk/gtk-sharp/; revision=8888
2002-11-08 18:35:44 +00:00
Duncan Mak
ef43b59a1f Make it compile.
svn path=/trunk/gtk-sharp/; revision=8851
2002-11-06 05:44:49 +00:00
Johannes Roith
6347ebc9be add tutorial example
svn path=/trunk/gtk-sharp/; revision=8837
2002-11-05 15:34:57 +00:00
Johannes Roith
ed9f671d84 add tutorial files
svn path=/trunk/gtk-sharp/; revision=8836
2002-11-05 15:33:19 +00:00
Johannes Roith
36d289986c add tutorial file
svn path=/trunk/gtk-sharp/; revision=8835
2002-11-05 15:29:57 +00:00
Johannes Roith
c9c2b24ad0 add tutorial file
svn path=/trunk/gtk-sharp/; revision=8834
2002-11-05 15:28:46 +00:00
Johannes Roith
21fa1ce80a import tutorial examples
svn path=/trunk/gtk-sharp/; revision=8833
2002-11-05 15:18:03 +00:00
Alp Toker
fc9daa9420 Add GStreamer support
svn path=/trunk/gtk-sharp/; revision=8727
2002-11-01 05:10:00 +00:00
Mike Kestner
6c02b6f431 2002-10-26 Mike Kestner <mkestner@speakeasy.net>
* gconf/GConf.PropertyEditors/PropertyEditorColorPicker.cs : ns stuff
	* glade/XML.custom : more GnomeSharp namespace stuff
	* gnome/CanvasProxy.cs : ditto
	* sample/CanvasExample.cs : ditto
	* sample/Fifteen.cs : ditto
	* sample/GnomeHelloWorld.cs : ditto

svn path=/trunk/gtk-sharp/; revision=8592
2002-10-27 04:16:45 +00:00
Mike Kestner
2e07bf7e87 2002-10-26 Mike Kestner <mkestner@speakeasy.net>
* api/*.xml : get libgda and libgnomedb metadata setup
	* gconf/*/Makefile.in : patch from MauricioC for -L's and /r's
	* gnomedb/Makefile.in : patch from MauricioC for -L's and /r's
	* generator/ClassBase.cs (ctor): mangle hash names for sigs and props
	* generator/Parameters.cs (MangleName): handle params, null, and ref
	* generator/Parser.cs (ParseNamespace): ignore "hidden" types
	* generator/StructBase.cs (MangleName): handle params, null, and ref
	* glib/Object.cs (Equals): kill, also kill == and !=
	* sources/Gda.metadata : new, make Gda behave without hand edits
	* sources/GnomeDb.metadata : ditto

svn path=/trunk/gtk-sharp/; revision=8577
2002-10-26 08:03:16 +00:00
Rachel Hestilow
d33dd8a15f 2002-10-19 Rachel Hestilow <hestilow@ximian.com>
* gconf, sample/gconf: Added.

	* glue/combo.c: This was never added, add it now.

	* configure.in, makefile, sample/Makefile.in: Build new
	gconf bindings if gnome is enabled.

svn path=/trunk/gtk-sharp/; revision=8389
2002-10-19 09:31:20 +00:00
Miguel de Icaza
16ffbddd4e Fix makefile
svn path=/trunk/gtk-sharp/; revision=8305
2002-10-16 04:31:21 +00:00
Duncan Mak
564a7978c6 2002-10-11 Duncan Mak <duncan@ximian.com>
* TestToolbar.cs: Fix the arguments to Toolbar.InsertStock.

svn path=/trunk/gtk-sharp/; revision=8175
2002-10-11 20:01:53 +00:00
Duncan Mak
854511bd98 2002-10-08 Duncan Mak <duncan@ximian.com>
* gdk/Color.custom:
	* gdk/DeviceAxis.custom:
	* gdk/Point.custom:
	* gdk/Rectangle.custom: Committed ToString patches contributed by
	Jasper van Putten <Jaspervp@gmx.net>

svn path=/trunk/gtk-sharp/; revision=8057
2002-10-08 06:49:11 +00:00
Duncan Mak
aa0ae0c644 Fix for CS0104
svn path=/trunk/gtk-sharp/; revision=7756
2002-09-24 03:52:04 +00:00
Miguel de Icaza
a31190ba9d More 104 bug fixes
svn path=/trunk/gtk-sharp/; revision=7750
2002-09-24 00:35:57 +00:00
Miguel de Icaza
1a079be869 Fix compilation
svn path=/trunk/gtk-sharp/; revision=7749
2002-09-24 00:32:59 +00:00
Martin Baulig
f058a1b5f8 2002-09-16 Martin Baulig <martin@gnome.org>
* gnome/Modules.cs (Module): Make this class public.

	* sample/CanvasExample.cs: Insert a missing `break' in a switch
	section to make this compile.

	* sample/Scribble.cs: Added missing casts from EventMask to int.

svn path=/trunk/gtk-sharp/; revision=7493
2002-09-16 11:12:01 +00:00
Ricardo Fernández Pascual
0998fd871a 2002-09-15 Ricardo Fernndez Pascual <ric@users.sourceforge.net>
* glade/XML.custom: Added a constructor to read the glade file
	from a stream and to read it from a resource in an assembly.
	* sample/Makefile.in
	* sample/GladeTest.cs: Embed the glade file as a resource and use
	the new constructor.

svn path=/trunk/gtk-sharp/; revision=7482
2002-09-15 19:40:46 +00:00
Ricardo Fernández Pascual
f1011f687e 2002-09-13 Ricardo Fernndez Pascual <ric@users.sourceforge.net>
* glade/HandlerNotFoundExeception.cs: Added.
	* glade/Makefile.in
	* glade/XML.custom: Support for autoconnecting signals using
	reflection.
	* glib/SignalAttribute.cs: Added.
	* generator/Signal.cs: Mark events generated from glib signals
	with the "Signal" attribute.
	* sample/GladeTest.cs
	* sample/Makefile.in
	* sample/test.glade: Test of signal autoconnection.

svn path=/trunk/gtk-sharp/; revision=7430
2002-09-13 11:38:36 +00:00
Rodrigo Moya
2239115a55 Small fix
svn path=/trunk/gtk-sharp/; revision=7374
2002-09-12 01:37:27 +00:00
Rodrigo Moya
e59f626a81 2002-09-11 Rodrigo Moya <rodrigo@gnome-db.org>
* gnomedb/Makefile.in:
	* gnomedb/Application.cs: added class for libgnomedb initialization.

	* sample/DbClient/GnomeDbClient.cs: new test file for libgnomedb.

svn path=/trunk/gtk-sharp/; revision=7373
2002-09-12 01:23:35 +00:00
Gonzalo Paniagua Javier
e233ca8d49 2002-09-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/DbClient/client.cs: updated to make it compile.

svn path=/trunk/gtk-sharp/; revision=7256
2002-09-05 01:43:04 +00:00
Rachel Hestilow
c8d090f62f 2002-08-31 Rachel Hestilow <hestilow@ximian.com>
Proper GList, GSList support. Read-only for now.

	* glue/list.c: Added.
	* glue/Makefile.am: Add list.c
	* glue/type.c: Add function gtksharp_is_object.

	* glib/ListBase.cs, List.cs: Added.
	* glib/SList.cs: Inherit from ListBase.
	* glib/Object.cs: Add static method "IsObject".

	* generator/Method.cs: Pass on element_type to constructor
	if specified.
	* generator/SymbolTable.cs: Move GList to manual types.

	* sample/GladeViewer.cs: Remove list hacks.

	* sources/Gnome.metadata: Specify element types for
	CanvasPathDef.Split and IconList.GetSelection. Rename
	CanvasPathDef *to methods to properly capitalized *To.
	* sources/Gtk.metadata: Hide Widget.ListAccelClosures until
	GClosure is handled properly.
	* sources/Pango.metadata: Added.

	* sample/test/TestToolbar.cs: Compile with recent delegate changes.

svn path=/trunk/gtk-sharp/; revision=7166
2002-09-01 04:46:38 +00:00
Rachel Hestilow
a502336ccf 2002-08-31 Rachel Hestilow <hestilow@ximian.com>
* glib/Idle.cs: Added.
	* gtk/Application.cs: Add EventsPending, RunIteration.

	* sample/TreeViewDemo.cs: Add a status dialog while
	populating tree.

svn path=/trunk/gtk-sharp/; revision=7164
2002-08-31 20:37:52 +00:00
Miguel de Icaza
c1b3d3e98d 2002-08-25 Miguel de Icaza <miguel@ximian.com>
* gtk/TextBuffer.custom: Added SetText with a single argumnet.

	* gtk/Table.custom: Added empty constructor.  GtkTables
	automatically grow.

svn path=/trunk/gtk-sharp/; revision=7024
2002-08-25 05:49:38 +00:00
Mike Kestner
64addd90b9 2002-08-15 Mike Kestner <mkestner@speakeasy.net>
* sample/Makefile.in : add some art-sharp refs

svn path=/trunk/gtk-sharp/; revision=6667
2002-08-16 05:00:31 +00:00
Joe Shaw
e14ce485dc 2002-08-13 Joe Shaw <joe@assbarn.com>
* configure.in: Check for libgnomecanvas.

	* gtk/ColorSelectionDialog.custom: Create a button subclass which
	contains a reference to the parent ColorSelectionDialog.  Modify
	properties to return this subclass instead of a regular
	Gtk.Button.

	* gtk/FileSelection.custom: Ditto.

	* sample/test/TestFileSelection.cs (file_selection_ok):
	Demonstrate the button subclass by destroying the parent dialog
	when the ok button is clicked.

svn path=/trunk/gtk-sharp/; revision=6610
2002-08-13 14:01:14 +00:00
Rachel Hestilow
e6ea0015b5 2002-08-12 Rachel Hestilow <hestilow@ximian.com>
[ Patch from Ricardo Fernandez Pascual <rfp1@ono.com> for
	  libglade support (slightly modified) ]

	* configure.in: Conditionally compile glade support.
	* makefile: Add glade directory.
	* glade/: Added.
	* sample/makefile.in: Add (conditional) glade example.
	* sample/GladeViewer.cs: Added.
	* glue/gladexml.c: Added.
	* glue/Makefile.am: Updated.

	* parser/build.pl: Parse libglade-2.0.0.
	* parser/README: Update requirements.

2002-08-12  Rachel Hestilow  <hestilow@ximian.com>

   * parser/gapi_pp.pl: Handle "typedef struct {...}" construct.

	* glue/canvaspoints.c: Added.
	* glue/Makefile.am: Updated.

 	* gnome/CanvasPoints.custom: Added. (Doesn't seem to work right yet,
	looking into this.)

svn path=/trunk/gtk-sharp/; revision=6601
2002-08-12 19:14:44 +00:00
Rachel Hestilow
fce41ef511 2002-08-10 Rachel Hestilow <hestilow@ximian.com>
* sample/TreeViewDemo.cs (Main, DeleteCB): Update to use correct
	event handler.

svn path=/trunk/gtk-sharp/; revision=6578
2002-08-10 23:49:25 +00:00
Rachel Hestilow
db4c8f1c2d Forgot to cvs add, mike :-)
svn path=/trunk/gtk-sharp/; revision=6577
2002-08-10 23:40:20 +00:00
Mike Kestner
8896672938 2002-08-09 Kristian Rietveld <kris@gtk.org>
* parser/Gtk.metadata: add a bunch of out arg rules, add
       a vararg rule for the ListStore constructor, change method names of
       TreeModel's signal emission methods, remove opaque rule of
       GtkTreeIter, remove null_ok rules of TreeModel.IterNChildren
       and TreeModel.IterNthChild.

       * parser/Metadata.pm: add some code to be able to filter on
       parameter names.

       * generator/Method.cs: a method with accessor args and a non-void
       return value cannot be written as property.

       * sample/Makefile.in, sample/TreeViewDemo.cs: add a simple TreeView
       demo app.

       * gtk/ListStore.custom, gtk/TreeModel.custom, gtk/TreeModelSort.custom,
       gtk/TreeStore.custom, gtk/TreeView.custom: customizations.

svn path=/trunk/gtk-sharp/; revision=6576
2002-08-10 19:15:58 +00:00
Duncan Mak
03a91f8672 2002-08-09 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs (Position): Made it a property instead of a
	public field.

	* sample/pixmaps/gnome-color-browser.png: Icon for Fifteen#.

svn path=/trunk/gtk-sharp/; revision=6560
2002-08-09 05:22:13 +00:00
Duncan Mak
6d507c9625 2002-08-09 Duncan Mak <duncan@ximian.com>
* TestRange.cs (reformat_value): Do something useful here.

svn path=/trunk/gtk-sharp/; revision=6558
2002-08-09 04:47:40 +00:00
Mike Kestner
903349cd37 2002-08-08 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs : s/GetType/GetGType. Don't generated static
	  methods for interfaces.
	* glib/Object.cs : add GType prop
	* gnome/*.custom : s/Type/GType
	* parser/Gtk.metadata : rule to make TreeIter opaque
	* parser/gapi2xml.pl : handle interface methods properly
	* sample/Fifteen.cs : s/Type/GType

svn path=/trunk/gtk-sharp/; revision=6556
2002-08-09 03:56:27 +00:00
Duncan Mak
29e6647bee Flush.
svn path=/trunk/gtk-sharp/; revision=6512
2002-08-07 16:57:09 +00:00
Duncan Mak
643b79481d Added menus and buttons. Made it prettier. Moved the constructor stuff
into BoardPiece constructor.

svn path=/trunk/gtk-sharp/; revision=6496
2002-08-07 08:05:34 +00:00
Duncan Mak
54dfc5bc93 Revert my last patch.
svn path=/trunk/gtk-sharp/; revision=6495
2002-08-07 06:40:09 +00:00
Duncan Mak
56df396225 Flush.
svn path=/trunk/gtk-sharp/; revision=6494
2002-08-07 05:50:48 +00:00
Duncan Mak
b2f1f53188 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Fixed scramble. The whole thing works now.

svn path=/trunk/gtk-sharp/; revision=6493
2002-08-07 05:44:03 +00:00
Duncan Mak
a15be41988 2002-08-07 Duncan Mak <duncan@ximian.com>
* TestRange.cs (Close_Button): Remember to set our RetVal.

svn path=/trunk/gtk-sharp/; revision=6492
2002-08-07 04:11:49 +00:00
Duncan Mak
6fa1450445 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Fixed movement logic. It works now. Added
	'debug' flag. Run 'mono ./Fifteen.exe debug' to see movement info.

svn path=/trunk/gtk-sharp/; revision=6491
2002-08-07 03:50:09 +00:00
Rachel Hestilow
0bf76f0d61 2002-08-06 Rachel Hestilow <hestilow@ximian.com>
* generator/SignalHandler.cs: Handle null arguments and return values.

	* sample/Makefile.in: Add fifteen game.

svn path=/trunk/gtk-sharp/; revision=6483
2002-08-06 21:56:57 +00:00
Gonzalo Paniagua Javier
4750a00588 2002-08-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* sample/GnomeHelloWorld.cs: use DeleteEventHandler.

svn path=/trunk/gtk-sharp/; revision=6480
2002-08-06 20:02:00 +00:00
Duncan Mak
0479b3c950 Fixed crud.
svn path=/trunk/gtk-sharp/; revision=6479
2002-08-06 18:01:49 +00:00
Duncan Mak
e1e6059f98 2002-08-07 Duncan Mak <duncan@ximian.com>
* sample/Fifteen.cs: Added new canvas example.

svn path=/trunk/gtk-sharp/; revision=6478
2002-08-06 17:50:25 +00:00
Duncan Mak
eaca3f82e0 2002-08-06 Duncan Mak <duncan@ximian.com>
* sample/CanvasExample.cs: Removed extra methods.

svn path=/trunk/gtk-sharp/; revision=6458
2002-08-06 05:42:57 +00:00
Rachel Hestilow
ab115875e4 2002-08-05 Rachel Hestilow <hestilow@ximian.com>
* gnome/Canvas*.custom, IconTextItem.custom: Added.

	* sample/CanvasExample.cs: Added.
	* sample/Makefile.in: Build canvas example in gnome build.

svn path=/trunk/gtk-sharp/; revision=6451
2002-08-06 00:15:18 +00:00
Joe Shaw
25ab00563b Remove the ".dll" suffix, as that doesn't work with MONO_PATH.
svn path=/trunk/gtk-sharp/; revision=6399
2002-08-04 19:08:13 +00:00
Mike Kestner
71b46ecd41 2002-08-03 Mike Kestner <mkestner@speakeasy.net>
* generator/Method.cs : Added IsGetter, IsSetter, ReturnType. Made
	  GenerateImport, GenerateBody public.
	* generator/Parameters.cs : Added Parameter::MarshalType
	* generator/Property.cs : Added logic to use methods instead of text
	  properties wherever possible.

svn path=/trunk/gtk-sharp/; revision=6391
2002-08-04 04:23:13 +00:00
Rachel Hestilow
54838fec29 2002-08-03 Rachel Hestilow <hestilow@ximian.com>
* generator/Method.cs: Support libname overrides. Call parms.Finish.
	* generator/Parameters.cs: New method parms.Finish. Generate a temporary
	holder variable for enum out parameters.
	* generator/Property.cs: Pass a boolean to EnumWrapper indicating.
	if these are flags.
	* generator/StructBase.cs: Disable array marshalling (it is
	broken in mono.)
	* generator/SymbolTable.cs: Add methods IsEnumFlags.

	* glib/EnumWrapper.cs: New bool "flags".
	* glib/Value.cs: Call flags variant on GValue for enum props, if needed.

	* glue/Makefile.am, glue/style.c, glue/widget.c: Add widget
	and style field accessor methods.

	* gtk/Style.custom, Widget.custom: Added.

	* parser/README: Update requirements (needed for pixbuf drawable hack)
	* parser/Gdk.metadata: Fix library for pixbuf methods in gdk.
	Add Window.GetPointer "out" parameters.
	* parser/gapi2xml.pl: Remap gdk_draw_* methods to Drawable.

	* sample/Makefile.in: Add size and scribble samples.
	* sample/Scribble.cs: Added.

svn path=/trunk/gtk-sharp/; revision=6387
2002-08-03 22:24:37 +00:00
Rachel Hestilow
7648593a67 2002-08-02 Rachel Hestilow <hestilow@ximian.com>
[ Mike, this is everything I wanted in for the release. ]

	* generator/StructBase.cs: Generate field accessors for wrapped
	types (opaque, object, and structs/boxed). Bitfields, unions, and
	arrays are still unsupported for accessors, and are probably marshalling
	incorrectly. But this is enough to get events working (see example
	in sample/GnomeHelloWorld.cs).

	* parser/Metadata.pm: Support a "delete" directive, and set metadata
	on structs and boxed (previously was only checking objects and interfaces).

	* parser/Gdk.metadata: Delete bogus entries GdkWindowObject and
	GdkPixmapObject (more evil drawable stuff.)

	* sample/GnomeHelloWorld.cs: Show an example of how to use marshalled
	events, in our selection callback.

svn path=/trunk/gtk-sharp/; revision=6370
2002-08-02 22:35:23 +00:00
Rachel Hestilow
98d194f861 2002-07-31 Rachel Hestilow <hestilow@ximian.com>
* generator/StructBase.cs (GetFieldInfo): Generate strings correctly.
	Also, delegates are not marshalling correctly right now, change those
	to IntPtr.

	* generator/SymbolTable.cs: New method IsCallback.

	* sample/GnomeHelloWorld.cs: Use Gnome.App and stock menu items.
	Use the new event handlers.

svn path=/trunk/gtk-sharp/; revision=6300
2002-07-31 19:18:37 +00:00
Duncan Mak
c73ccc6b50 2002-07-31 Duncan Mak <duncan@ximian.com>
* *.cs: Flush. Made it use Stock buttons instead of just a plain
	text label.

	* TestColorSelection.cs: Made the result dialog work a bit better.

	* ChangeLog: Added Rachel's ChangeLog entry to here.

svn path=/trunk/gtk-sharp/; revision=6273
2002-07-31 07:07:29 +00:00
Rachel Hestilow
967e3e9c5a 2002-07-30 Rachel Hestilow <hestilow@ximian.com>
* generator/ClassBase.cs: Change hasDefaultConstructor to protected,
	adjust now that it is an attr and not a subnode. Also add virtual
	property AssignToName (for ctors).

	* generator/Ctor.cs: Add property ForceStatic.
	(Generate): Optimize return code a bit for the static case.

	* generator/Method.cs: Assign to a "raw_ret" pointer before calling
	FromNativeReturn.

	* generator/Parameters.cs: Change "out ref" to "out", not "ref".

	* generator/Property.cs: Fix to work correctly with all object and
	struct types (mostly just some if-cases added).

	* generator/SignalHandler.cs: Remove args_type and argfields (unused).
	(Generate): Initialize struct if necessary.

	* generator/StructBase.cs: Massive reworking to support methods, ctors,
	etc.

	* generator/SymbolTable.cs: Add GdkAtom and gconstpointer simple types.

	* glib/Boxed.cs: Accept both IntPtr and object ctors. Add access for both.

	* glib/Opaque.cs: Fix copy/pasted copyright notice, remove data and event
	fields. Fix docs.

	* glib/Value.cs: Work correctly with boxed properties.

	* gnome/Modules.cs: Use new struct ctors.

	* gnome/Program.custom: Remove Get, this is being generated now.

	* parser/Gdk.metadata: Fix the drawable classes to inherit correctly.

	* parser/Metadata.pm: Change per-class attributes to actually be
	attributes.

	* parser/Gtk.metadata: Add a dummy attribute value for disabledefaultctor.

	* parser/gapi2xml.pl: Add hacks for the (broken) Drawable and Bitmap
	typedefs.

	* sample/test/TestColorSelection.cs: Display color string in hex format,
	update to use IsNull instead of == null, and size dialog to look pretty.

	* sample/Size.cs: Added.

svn path=/trunk/gtk-sharp/; revision=6264
2002-07-30 23:02:12 +00:00
Gonzalo Paniagua Javier
9823d2d8ea Removed old file and added some info que a DB error happens.
svn path=/trunk/gtk-sharp/; revision=6214
2002-07-27 15:27:54 +00:00
Rachel Hestilow
4d92d54b3f 2002-07-25 Rachel Hestilow <hestilow@ximian.com>
[about 60% of the marshalling patch that I lost.
	 The rest to come tomorrow.]

	* generator/BoxedGen.cs, StructGen.cs: Move most of this to StructBase,
	delete large chunks duplicated from ClassBase.

	* generator/IGeneratable.cs: Add MarshalReturnType, FromNativeReturn.

	* generator/ClassBase.cs: Move ctor stuff here. Add a CallByName
	overload with no parameters for the "self" reference.

	* generator/EnumGen.cs, CallbackGen.cs: Implement new MarshalReturnType,
	  FromNativeReturn.

   * generator/Method.cs: Use container_type.MarshalType, CallByName, and
	  SymbolTable.FromNativeReturn when generating call and import sigs.

	* generator/OpaqueGen.cs: Added.

	* generator/Property.cs: Handle boxed and opaques differently.

	* generator/SymbolTable.cs: Update for the opaque stuff and the new Return
	methods. Also change GetClassGen to simply call the as operator.

	* glib/Boxed.cs: Update for struct usage -- this is now a wrapper for
	  the purposes of using with Value.

   * glib/Opaque.cs: Added. New base class for opaque structs.

	* glue/textiter.c, gtk/TextIter.custom: Remove.

	* gnome/Program.cs: Update for new struct marshalling.

	* parser/Metadata.pm: Use our own getChildrenByTagName.

	* parser/README: Update for new requirements (was out of sync with
	  build.pl)

	* parser/gapi2xml.pl: Hide struct like const in field elements.

	* parser/gapi_pp.pl: Handle embedded union fields (poorly).

	* sample/test/TestColorSelection.cs: Comment out null color tests
     for now.

svn path=/trunk/gtk-sharp/; revision=6186
2002-07-26 06:08:52 +00:00