Commit Graph

309 Commits

Author SHA1 Message Date
Jeroen Zwartepoorte
6961bf6020 2004-11-07 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/Gtk.metadata: Fix some TreeModelFilter stuff (similar to
	TreeModelSort).

svn path=/trunk/gtk-sharp/; revision=35780
2004-11-07 16:19:10 +00:00
Dan Winship
df41dcc177 * parser/gapi2xml.pl (parseInitFunc, addPropElem): handle
GtkContainer child properties

	* generator/Property.cs:
	* generator/ChildProperty.cs: make Property subclassable and add a
	"ChildProperty" subclass.

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

	* generator/ClassBase.cs: handle "childprop" nodes by creating
	ChildProperty objects.

	* glib/Value.cs (explicit operator EnumWrapper): use
	g_value_get_flags() rather than g_value_get_enum() when
	appropriate.

	* glib/glue/value.c (glibsharp_value_holds_flags): glue for that

	* gtk/gtk-api.raw: regen to pick up child properties

	* gtk/Gtk.metadata:
	* gtk/Container.custom: hide the auto-generated
	Gtk.Container.ChildGetProperty and implement a nicer one by hand.

	* gtk/glue/container.c (gtksharp_container_child_get_property):
	utility function to set up an appropriate GValue for us

svn path=/trunk/gtk-sharp/; revision=35702
2004-11-05 16:47:15 +00:00
Jeroen Zwartepoorte
fa86814e94 2004-11-04 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gnomevfs/Directory.cs: Add async GetEntries Uri alias.
	* gtk/FileChooserDialog.custom: Add nice custom properties for Uris.
	ListFilters, ListShortcutFolders and ListShortcutFolderUris.
	* gtk/FileChooserWidget.custom: Idem.
	* gtk/Gtk.metadata: Idem.

svn path=/trunk/gtk-sharp/; revision=35669
2004-11-04 20:33:35 +00:00
Todd Berman
cac3c4a368 2004-11-04 Todd Berman <tberman@off.net>
* doc/en/GLib/ListBase.xml: Add documentation for ListBase.Empty
        * glib/ListBase.cs: Add ListBase.Empty, frees the children and the
        list.
        * glib/Markup.cs: Fix Alex's tomboy crash, sending -1 instead of
        Length.
        * gtk/FileChooserDialog.custom:
        * gtk/FileChooserWidget.custom: properly free the list.

svn path=/trunk/gtk-sharp/; revision=35650
2004-11-04 19:29:01 +00:00
Todd Berman
131f2ed0d9 2004-11-03 Todd Berman <tberman@off.net>
* gtk/FileChooserDialog.custom:
        * gtk/FileChooserWidget.custom: Properly implement .Filenames. The old
        code was a really bad c&p job.

svn path=/trunk/gtk-sharp/; revision=35619
2004-11-04 04:06:07 +00:00
Todd Berman
8464cbb825 2004-10-30 Todd Berman <tberman@off.net>
* gtk/ComboBox.custom:
        * gtk/FileChooserDialog.custom:
        * gtk/FileChooserWidget.custom: Fix c&p error with filename.

svn path=/trunk/gtk-sharp/; revision=35504
2004-10-30 20:32:54 +00:00
Todd Berman
ae8ed25625 2004-10-29 Todd Berman <tberman@off.net>
* gtk/ComboBox.custom: Add a header.
        * gtk/FileChooserDialog.custom: Add subclassing support, and a header.
        * gtk/FileChooserWidget.custom: Add a header.

svn path=/trunk/gtk-sharp/; revision=35493
2004-10-30 03:31:43 +00:00
Todd Berman
3bc36b0d37 2004-10-29 Todd Berman <tberman@off.net>
* gtk/FileChooserDialog.custom: Add Filenames property to return
        the data as a string[] instead of a GSList.
        * gtk/FileChooserWidget.custom: Same as above.
        * gtk/Makefile.am: Add FileChooserWidget.custom

svn path=/trunk/gtk-sharp/; revision=35492
2004-10-30 02:40:00 +00:00
Todd Berman
8d5882f49b 2004-10-29 Todd Berman <tberman@off.net>
* gtk/FileChooserDialog.custom: Allow a null parent.

svn path=/trunk/gtk-sharp/; revision=35491
2004-10-30 02:02:09 +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
Dan Winship
fc0e7dfddf * gdk/Gdk.metadata: Remap all "out Gdk.Bitmap" params to be
Gdk.Pixmaps instead, because the former will crash. Also fix the
	"data" param to Pixmap.CreateFromXpmD and
	Pixmap.ColormapCreateFromXpmD

	* gtk/Style.custom (TextAAGC, SetTextAAGC, LightGC, SetLightGC,
	DarkGC, SetDarkGC, MidGC, SetMidGC): add these to go along with
	BaseGC, SetBaseGC, etc.

	* gtk/glue/style.c: add the glue methods needed for the above

svn path=/trunk/gtk-sharp/; revision=35409
2004-10-28 19:25:50 +00:00
Dan Winship
5e9eb345d5 * generator/OpaqueGen.cs: Don't build the (IntPtr raw) constructor
if "disable_raw_ctor" is set on the opaque type.

        * gtk/Gtk.metadata: Make GtkTargetList opaque (fixes a crash in
        Gtk.Drag.Begin), hide the generated constructor and ref/unref
        methods, and fix up the interpretation of AddTable.

        * gtk/TargetList.custom (TargetList, ~TargetList): Implement the
        suppressed constructors and add a finalizer, which handle
        refcounting the underlying struct.
        (Add, Find, Remove): convenience overloads that take string
        instead of Gdk.Atom.

        * gtk/Makefile.am (customs): add TargetList.custom

svn path=/trunk/gtk-sharp/; revision=35135
2004-10-19 14:21:48 +00:00
Mike Kestner
2ac6d65dc2 2004-10-05 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide Selection.GetTargets.
	* gtk/SelectionData.custom : impl Targets prop and add Selection,
	Target, and Type field accessors.
	* gtk/glue/selectiondata.c : field accessor glue.

svn path=/trunk/gtk-sharp/; revision=34719
2004-10-05 14:09:05 +00:00
Mike Kestner
aa54aa2c95 2004-09-29 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some ellipsis methods, add pass_as attrs.
	* gtk/Object.custom : new IsFloating property.
	* gtk/glue/object.c : new gtksharp_object_set_floating glue.

svn path=/trunk/gtk-sharp/; revision=34529
2004-09-29 18:45:59 +00:00
Mike Kestner
1d4f5536af 2004-09-27 Mike Kestner <mkestner@ximian.com>
* gtk/Button.custom : add a ctor (Widget). reworked from patch by
	John Luke.
	[Fixes #66228]

svn path=/trunk/gtk-sharp/; revision=34441
2004-09-27 19:20:35 +00:00
Mike Kestner
9d8263d89d 2004-09-24 Mike Kestner <mkestner@ximian.com>
* gtk/Bin.custom : make Child get/set.
	* gtk/Gtk.metadata : hide the Bin.get_child method.
	[Fixes #66232]

svn path=/trunk/gtk-sharp/; revision=34364
2004-09-24 15:58:05 +00:00
Mike Kestner
3eb398a12f 2004-09-23 Mike Kestner <mkestner@ximian.com>
* gtk/Widget.custom : new OnSetScrollAdjustments VM.
	* gtk/glue/widget.c : glue for new VM.

svn path=/trunk/gtk-sharp/; revision=34293
2004-09-23 16:50:18 +00:00
Mike Kestner
97f5a62824 2004-09-03 Mike Kestner <mkestner@ximian.com>
* configure.in : expand new doc/updater makefile
	* gtk/Gtk.metadata : hide Init.Check and AbiCheck*.
	* gtk/Init.custom : manual Init.Check impl.
	* gtk/Makefile.am : add Init.custom.

svn path=/trunk/gtk-sharp/; revision=33288
2004-09-03 15:59:29 +00:00
Mike Kestner
4043e2e7d2 2004-08-31 Mike Kestner <mkestner@ximian.com>
* gtk/NodeStore.cs : add GType prop to expose native gtype.
	[Fixes #61226]

svn path=/trunk/gtk-sharp/; revision=33114
2004-08-31 18:19:32 +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
Mike Kestner
f10194792e 2004-08-24 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : kill TreeDataList and TreeDataSortHeader
	internal types.

svn path=/trunk/gtk-sharp/; revision=32798
2004-08-24 21:55:09 +00:00
Mike Kestner
55127368b9 2004-08-24 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : kill TreeDataList, it's internal.

svn path=/trunk/gtk-sharp/; revision=32797
2004-08-24 21:49:11 +00:00
Mike Kestner
780d9fb714 2004-08-24 Larry Ewing <lewing@ximian.com>
* gtk/Gtk.metadata : Style.PaintPolygon has an array of points.

svn path=/trunk/gtk-sharp/; revision=32796
2004-08-24 21:03:57 +00:00
John Luke
e385129c44 2004-08-24 John Luke <john.luke@gmail.com>
* gtk/Makefile.am: add Menu.custom
        * gtk/Menu.custom: new custom for Popup () overload
        [Fixes #60668]

svn path=/trunk/gtk-sharp/; revision=32790
2004-08-24 19:54:09 +00:00
Mike Kestner
d91ca3de7d 2004-08-19 Borja Sanchez Zamorano <borsanza@yahoo.es>
* gtk/Gtk.metadata : hide some methods on TextBuffer.
	* gtk/TextBuffer.custom : pass -1 for the text length to some
	more methods.

svn path=/trunk/gtk-sharp/; revision=32534
2004-08-19 15:42:15 +00:00
Mike Kestner
b45b49ac61 2004-08-18 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : unhide ExpanderStyle.
	* doc/en/Gtk/Style.xml : doc PaintExpander.
	* doc/en/Gtk/ExpanderStyle.xml : new enum docs.
	[Fixes #60480] metadata patch from Jeroen Zwartepoorte.

svn path=/trunk/gtk-sharp/; revision=32498
2004-08-18 16:08:02 +00:00
John Luke
392c3c9a68 gtk/Gtk.metadata: mark Gtk.StockManager.Lookup param as ref
patch by jaspervp@gmx.net (Jasper van Putten)
[Fixes #62985]

svn path=/trunk/gtk-sharp/; revision=32326
2004-08-13 19:39:33 +00:00
Mike Kestner
d4e91dd83b 2004-08-13 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide Insert and SetText for manual impl.
	* gtk/TextBuffer.custom : pass -1 for length to Insert and SetText.
	Adapted from a patch by borsanza@yahoo.es (Borja Sanchez Zamorano).
	[Fixes #62985]

svn path=/trunk/gtk-sharp/; revision=32317
2004-08-13 17:33:46 +00:00
John Luke
8e5f5ec6a4 2004-07-16 John Luke <jluke@cfl.rr.com>
* gtk/Gtk.metadata:
        * glade/Glade.metadata: mark return type as const-gchar* for
        Gtk.Global.CheckVersion and Glade.Global.ModuleCheckVersion
        so Gtk# does not try to free them.  Thanks to
        jaspervp@gmx.net (Jasper van Putten) for identifying the Glade
        part. Fixes bugs #61329 and #60954

svn path=/trunk/gtk-sharp/; revision=31239
2004-07-16 19:24:58 +00:00
Mike Kestner
7a6d6b2128 2004-06-25 Mike Kestner <mkestner@ximian.com>
* */*.cs : add lgpl license blurb and clean up (c)'s.
	* */*.custom : add lgpl license blurb and clean up (c)'s.
	* */glue/*.c : add lgpl license blurb and clean up (c)'s.
	file adds without license from now on are punishable by wedgie.

svn path=/trunk/gtk-sharp/; revision=30401
2004-06-25 18:42:19 +00:00
Mike Kestner
38a7a49cfb 2004-06-15 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide the button_new_from_stock ctor.
	* gtk/Button.custom : add a manual ctor implementation.

svn path=/trunk/gtk-sharp/; revision=29598
2004-06-15 13:38:44 +00:00
Todd Berman
9f492c794b 2004-06-11 Todd Berman <tberman@sevenl.net>
* gtk/Container.custom:
        * gtk/CellRenderer.custom:
        * gnome/CanvasItem.custom: mark Override* private.
        * doc/en/*/*.xml: update to remove Override* methods.

svn path=/trunk/gtk-sharp/; revision=29394
2004-06-12 00:18:05 +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
e525e9bd55 2004-06-10 Todd Berman <tberman@sevenl.net>
* gtk/Container.custom: add C# glue for virtualizing ChildType ()
        * gtk/glue/container.c: add C glue for virtualizing ChildType ()
        * gtk/Gtk.metadata: hide Container.ChildType ()
        * gtk/Widget.custom: Add ClearFlag, and SetFlag convenience methods.
        Also add various IsFlag bool properties for checking for flags.
        * gtk/glue/widget.c: Fix setting flags.
        * doc/*: updated Widget docs.

svn path=/trunk/gtk-sharp/; revision=29217
2004-06-10 18:37:05 +00:00
Mike Kestner
8520053aa8 2004-06-07 Mike Kestner <mkestner@ximian.com>
* */Makefile.am : s|--unsafe|/unsafe to remove a mcs-ism that jluke
	exposed in his cygwin build patch.

svn path=/trunk/gtk-sharp/; revision=28991
2004-06-07 21:54:31 +00:00
Todd Berman
9698c4d2f9 2004-06-07 Todd Berman <tberman@sevenl.net>
* gtk/Widget.custom: expose some easy bool properties for checking
        certain WidgetFlags. Make Allocation a settable property.
        * gtk/glue/widget.c: bit of glue to make Allocation settable.
        * gdk/Window.custom: expose UserData as a usable IntPtr property.
        * gdk/Gdk.metadata: hide old GetUserData/SetUserData methods.
        * doc/*: ran the updater.

svn path=/trunk/gtk-sharp/; revision=28974
2004-06-07 17:14:35 +00:00
Jeroen Zwartepoorte
1aaac84322 2004-06-07 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/Widget.custom: Add FocusLineWidth property.
	* gtk/glue/widget.c: (gtksharp_gtk_widget_set_flags),
	(gtksharp_gtk_widget_style_get_int): glue for getting an integer style
	property.

svn path=/trunk/gtk-sharp/; revision=28967
2004-06-07 14:26:08 +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
Mike Kestner
77d1b452f5 2004-06-01 Mike Kestner <mkestner@ximian.com>
* generator/ObjectGen.cs : generate protected ctor () for all
	GLib.Objects that don't have any ctors.
	* gtk/CellRenderer.custom : remove ctor ().
	* gtkhtml/Gtk.metadata : add a disable_void_ctor rule for HTML.

svn path=/trunk/gtk-sharp/; revision=28645
2004-06-01 18:00:09 +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
Mike Kestner
369a588e93 2004-05-31 Mike Kestner <mkestner@ximian.com>
* configure.in : Bump version to 0.93 and tag.

2004-05-31  Jeroen Zwartepoorte  <jeroen@xs4all.nl>

	* gtk/Gtk.metadata: unhide WidgetFlags.
	* gtk/Widget.custom: add setter for GdkWindow prop. Add Flags prop.
        * gtk/glue/widget.custom: setter for window, accessors for flags.
	[Fixes #59337]

svn path=/trunk/gtk-sharp/; revision=28578
2004-05-31 18:48:25 +00:00
Vladimir Vukicevic
2969801044 * gtk/CellRenderer.custom: fix GetSize_cb, cell_area can be NULL
coming from Gtk (so can't use ref Gdk.Rectangle, have to use
IntPtr)

svn path=/trunk/gtk-sharp/; revision=28424
2004-05-29 03:09:47 +00:00
Mike Kestner
637e8589e8 2004-05-28 Vladimir Vukicevic <vladimir@pobox.com
* gtk/Gtk.metadata : s/out/ref on TreeModel.NextIter.

svn path=/trunk/gtk-sharp/; revision=28369
2004-05-28 17:47:43 +00:00
Mike Kestner
73632b2747 2004-05-28 Mike Kestner <mkestner@ximian.com>
* generator/ObjectGen.cs : adjust to ObjectManager ns change.
	* glib/ManagedValue.cs : move to GLib and internalize.
	* glib/Object.cs : adjust to ObjectManager ns change.
	* glib/ObjectManager.cs : move to GLib.
	* glib/TypeConverter.cs : move to GLib.  return ManagedValue.GType
	when we can't match a type instead of GType.None.
	* gtk/*.custom: adjust for new TypeConverter ns and behavior.

2004-05-28  Mike Kestner  <mkestner@ximian.com>

	* en/* : run updater. fix a few *Sharp copy/pastisms.

svn path=/trunk/gtk-sharp/; revision=28362
2004-05-28 16:59:21 +00:00
Mike Kestner
71d07af98a 2004-05-28 Mike Kestner <mkestner@ximian.com>
* gtk/Makefile.am : add new custom.
	* gtk/Settings.custom: add props for unparsed API.

svn path=/trunk/gtk-sharp/; revision=28350
2004-05-28 15:05:36 +00:00
Jeroen Zwartepoorte
fd3c3b56d6 2004-05-27 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* gtk/Gtk.metadata: Hide the GtkCtree class (old gtk+ 1.x junk).

svn path=/trunk/gtk-sharp/; revision=28280
2004-05-27 15:58:15 +00:00
Mike Kestner
6c25e8c608 2004-05-25 Mike Kestner <mkestner@ximian.com>
* gtkhtml/Gtk.metadata : hide Gtk.HTML the ctors.
	* gtkhtml/HTML.custom : new manual impl for ctors.
	* gtkhtml/Makefile.am : add new custom
	[Fixes #59148]

2004-05-25  Mike Kestner  <mkestner@ximian.com>

	* */Makefile.am : rm -f generated/* in case it doesn't exist yet.

svn path=/trunk/gtk-sharp/; revision=28214
2004-05-27 02:06:05 +00:00
Mike Kestner
db317dd185 2004-05-25 Dan Winship <danw@ximian.com>
* gtk/Gtk.metadata : mark a ref param in SizeRequested

svn path=/trunk/gtk-sharp/; revision=28194
2004-05-26 19:49:43 +00:00