Commit Graph

819 Commits

Author SHA1 Message Date
Mike Kestner
f37e02b5b2 2004-05-25 Mike Kestner <mkestner@ximian.com>
* gtk/Container.custom : use glue to invoke the GtkCallback in
	Forall.
	* gtk/glue/container.c : add gtksharp_container_invoke_gtk_callback.

svn path=/trunk/gtk-sharp/; revision=28047
2004-05-25 13:35:38 +00:00
Mike Kestner
ca91d3c85f 2004-05-23 Mike Kestner <mkestner@ximian.com>
* generator/SignalHandler.cs : put back the ObjectGen hack
	for param wrapping.  [Fixes #58876]

svn path=/trunk/gtk-sharp/; revision=27940
2004-05-24 02:25:16 +00:00
Mike Kestner
e7130d9838 2004-05-22 Mike Kestner <mkestner@ximian.com>
* configure.in : require mono-0.91.99.  Sorry, but we need to
	require mono cvs until beta2 because of some recent breakage in
	Gnome.Program custom code while reflecting against the runtime.

svn path=/trunk/gtk-sharp/; revision=27901
2004-05-22 19:38:28 +00:00
Todd Berman
7951ca21de 2004-05-22 Todd Berman <tberman@sevenl.net>
* gnome/Program.custom: Change the Mono.Runtime stuff to reflect
        its new internal nature. This fixes MD, gnunit, and all gnome#
        programs that were blowing up for no reason.

svn path=/trunk/gtk-sharp/; revision=27898
2004-05-22 18:02:49 +00:00
Radek Doulik
47bbd783d5 (GetPathAtPos): use GLib.Object.GetObject so that we don't create
new TreeViewColumn object duplicates

svn path=/trunk/gtk-sharp/; revision=27858
2004-05-22 08:58:21 +00:00
Radek Doulik
f8da0639b7 2004-05-22 Radek Doulik <rodo@ximian.com>
* gtk/TreeView.custom(GetPathAtPos): change Gtk.TreeViewColumn
	column parameter to out[put] as gtk_tree_view_get_path_at_pos
	returns column address to column parameter

svn path=/trunk/gtk-sharp/; revision=27857
2004-05-22 08:49:58 +00:00
Mike Kestner
9f54a63375 2004-05-19 Mike Kestner <mkestner@ximian.com>
* gtk/Container.custom : add CallbackInvoke and use it in OnForall.

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

	* generator/Makefile.am : add TimeTGen.cs
	* generator/SymbolTable.cs : use new TimeTGen.
	* generator/StringGen.cs : s/GLibSharp/GLib
	* generator/TimeTGen.cs : generatable to marshal time_t.
	* glib/time_t_CustomMarshaler.cs : kill
	* glib/Makefile.am : remove time_t_CustomMarshaler.cs
	* glib/Markup.cs : s/GLibSharp/GLib
	* glib/Marshaller.cs : move to GLib namespace. Add methods to
	marshal time_t to and from DateTime.
	* glib/glue/time_t.c : kill
	* glib/glue/Makefile.am : remove time_t.c
	* glib/glue/makefile.win32 : remove time_t.o
	* gnome/*.custom : use GLib.Marshaller instead of the time_t custom
	marshaler.
	* gtk/*.custom : s/GLibSharp/GLib

svn path=/trunk/gtk-sharp/; revision=27704
2004-05-19 18:57:28 +00:00
Zoltan Varga
fed2de1fe7 2004-05-18 Zoltan Varga <vargaz@freemail.hu>
* glib/time_t_CustomMarshaler.cs: Fix custom marshalling after runtime
	changes.

svn path=/trunk/gtk-sharp/; revision=27621
2004-05-18 19:19:37 +00:00
Vladimir Vukicevic
43a82f1204 2004-05-18 Vladimir Vukicevic <vladimir@pobox.com
* gnome/Print.custom: Cast .Pixels usage to a (byte *)

svn path=/trunk/gtk-sharp/; revision=27619
2004-05-18 19:07:15 +00:00
Vladimir Vukicevic
518ce8f85b 2004-05-17 Vladimir Vukicevic <vladimir@pobox.com>
* gdk/Pixbuf.custom: Changed Pixbuf.Pixels to return an IntPtr instead
	of a byte * -- anyone who needs a byte * can do the cast in an unsafe
	context already.

svn path=/trunk/gtk-sharp/; revision=27617
2004-05-18 19:03:30 +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
0d052516f1 2004-05-18 Mike Kestner <mkestner@ximian.com>
* glib/MissingIntPtrCtorException.cs : new exception to throw if
	unable to access an IntPtr ctor on a GLib.Object subclass.  We need
	an IntPtr ctor to be able to wrap arbitrary object handles.
	* glib/Object.cs : have NativeType call LookupGType.
	* glib/ObjectManager.cs : throw the new exception in a try/catch.

svn path=/trunk/gtk-sharp/; revision=27563
2004-05-18 05:06:10 +00:00
Mike Kestner
bfc77b2230 2004-05-17 Mike Kestner <mkestner@ximian.com>
* generator/ObjectGen.cs : Generate a .cctor that calls the assembly's
	ObjectManager.Initialize method if the class will need to be registered
	with GLib.ObjectManager.  Enhance the Initialize method to allow
	multiple invocations.

svn path=/trunk/gtk-sharp/; revision=27554
2004-05-18 02:46:17 +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
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
Todd Berman
8f53f68348 2004-05-13 Todd Berman <tberman@sevenl.net>
* *.pc.in: add .dll to the end of the Libs: references, and convert
        them to be absolute paths.

svn path=/trunk/gtk-sharp/; revision=27306
2004-05-13 19:23:16 +00:00
Mike Kestner
60d2fab857 2004-05-11 Mike Kestner <mkestner@ximian.com>
* *.pc.in : add Requires so that dependent libs are pulled in too.

svn path=/trunk/gtk-sharp/; revision=27132
2004-05-11 20:56:24 +00:00
Mike Kestner
b071a8c507 2004-05-11 Mike Kestner <mkestner@ximian.com>
* gconf/GConf/NotifyWrapper.cs : add some defensive null checking.
	[fixes #57902]

svn path=/trunk/gtk-sharp/; revision=27115
2004-05-11 16:07:08 +00:00
Mike Kestner
4214989dff 2004-05-10 Mike Kestner <mkestner@ximian.com>
* gtk/SelectionData.custom : add a Set overload without length param.

svn path=/trunk/gtk-sharp/; revision=27108
2004-05-11 14:05:43 +00:00
Todd Berman
a2af1e7936 revert, ben showed me a way around this, will document
svn path=/trunk/gtk-sharp/; revision=27060
2004-05-11 03:31:43 +00:00
Todd Berman
350c18516f 2004-05-10 Todd Berman <tberman@sevenl.net>
* gtk/Dialog.custom: Add a SetDefaultResponse method to set a int
        instead of a Gtk.ResponseType

svn path=/trunk/gtk-sharp/; revision=27059
2004-05-11 02:07:38 +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
27a3f69caf 2004-05-10 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : fix GBoxed GLib.Value setting.
	[fixes #58229]

svn path=/trunk/gtk-sharp/; revision=27045
2004-05-10 18:54:14 +00:00
Mike Kestner
7f46d29ab4 2004-05-10 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : change return-type on Global.EventsPending
	to a bool to avoid compat problems in 2.4.  Also rename to
	GetEventsPending so that it's generated as a property.
	[fixes #58292]

svn path=/trunk/gtk-sharp/; revision=27043
2004-05-10 18:23:51 +00:00
Mike Kestner
496c067424 2004-05-10 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some ctors and map some prop names.
	* gtk/Makefile.am : add new customs.
	* gtk/ItemFactory.custom : implement ctor for subclassing.
	* gtk/Plug.custom : implement ctors for subclassing.

svn path=/trunk/gtk-sharp/; revision=27042
2004-05-10 17:37:02 +00:00
Todd Berman
d04d7d6fa4 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Makefile.am: add DruidPageEdge.custom
        * gnome/Gnome.metadata: hide DruidPageEdge ctors
        * gnome/DruidPageEdge.custom: subclassable ctors.

svn path=/trunk/gtk-sharp/; revision=26964
2004-05-08 02:50:28 +00:00
Todd Berman
534948c298 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/IconList.custom: subclassable ctor.
	* gnome/Gnome.metadata: hide IconList ctor.

svn path=/trunk/gtk-sharp/; revision=26963
2004-05-08 02:27:26 +00:00
Mike Kestner
b9cee94a37 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gnome/Canvas.custom : PixelsPerUnit prop.
	* gnome/Gnome.metadata : hide Canvas.SetPixelsPerUnit.
	* gnome/glue/Makefile.am : get_pixels_per_unit.
	* gnome/glue/canvas.c : get_pixels_per_unit.
	* gtk/Container.custom : OnForall virtual method impl.
	* gtk/glue/Makefile.am : add container.c
	* gtk/glue/container.c : virtual method glue for forall.
	* gtk/glue/makefile.win32 : add container.o

svn path=/trunk/gtk-sharp/; revision=26962
2004-05-08 02:14:19 +00:00
Todd Berman
fe63913e7e 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Gnome.metadata: map properties for with_flags DateEdit ctor,
        and hide the DateTime, bool, bool ctor
        * gnome/Makefile.am: Add DateEdit.custom.
        * gnome/DateEdit.custom: Add subclassable ctor for DateEdit and
        add enough overloads that accept variable parameter lists to make
        Mike Kestner sick.

svn path=/trunk/gtk-sharp/; revision=26961
2004-05-08 02:10:00 +00:00
Todd Berman
b138697051 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Gnome.metadat: Hide App ctor.
        * gnome/Makefile.am: add App.custom.
        * gnome/App.custom: New custom for subclassing.

svn path=/trunk/gtk-sharp/; revision=26960
2004-05-08 01:44:21 +00:00
Todd Berman
864884b4f0 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Gnome.metadata: Hide Scores ctor.
        * gnome/Makefile.am: add Scores.custom.
        * gnome/Scores.custom: New custom for overridable ctor.

svn path=/trunk/gtk-sharp/; revision=26958
2004-05-08 01:27:28 +00:00
Mike Kestner
ea63638f34 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : map some RadioButton ctor props.

svn path=/trunk/gtk-sharp/; revision=26951
2004-05-07 21:55:11 +00:00
Mike Kestner
4a9e9ea3ee 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide TextView with_buffer ctor. map some parms
	to props.
	* gtk/Makefile.am : add new custom.
	* gtk/TextView.custom : implement with_buffer ctor for subclassing.

svn path=/trunk/gtk-sharp/; revision=26949
2004-05-07 21:31:55 +00:00
Todd Berman
be2f2257c8 2004-05-07 Todd Berman <tberman@sevenl.net>
* gnome/Gnome.metadata: Hide Druid with_window ctor, map About property.        add some null_ok from bug #57948.
        * gnome/Druid.custom: implement with_window ctor for subclassing, and
        a 3 paramatered version for when you dont care about the returned
        window. another 3 parametered version for when you have want null
        parent, and a 2 parametered version for the null parent and the
        discarding of the window (THANKS MIKE!)
        * gnome/Makefile.am: add new custom.

svn path=/trunk/gtk-sharp/; revision=26948
2004-05-07 21:29:11 +00:00
Mike Kestner
53277261b0 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/TreeView.custom : make the NodeStore ctor subclassable.

svn path=/trunk/gtk-sharp/; revision=26946
2004-05-07 20:23:58 +00:00
Mike Kestner
6b46f2fb3a 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide SpinButton with_range ctor.
	* gtk/Makefile.am : add new custom.
	* gtk/SpinButton.custom : implement with_range ctor for subclassing.

svn path=/trunk/gtk-sharp/; revision=26942
2004-05-07 19:41:36 +00:00
Mike Kestner
50d266b30b 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide ListStore and TreeStore newv ctors.
	* gtk/ListStore.custom : rework the ctors for subclassing.
	* gtk/TreeStore.custom : rework the ctors for subclassing.

svn path=/trunk/gtk-sharp/; revision=26941
2004-05-07 19:33:09 +00:00
Mike Kestner
50da743482 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide HScale and VScale with_range ctors.
	* gtk/Makefile.am : add new customs.
	* gtk/HScale.custom : implement with_range ctor for subclassing.
	* gtk/VScale.custom : implement with_range ctor for subclassing.

svn path=/trunk/gtk-sharp/; revision=26940
2004-05-07 19:04:03 +00:00
Mike Kestner
50c0b90864 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : map AccelLabel ctor parm to prop and hide
	Adjustment ctor.
	* gtk/Adjustment.custom : add set accessors for Upper/Lower and
	implement ctor with subclassing.
	* gtk/CheckMenuItem.custom : return from subclass branch.
	* gtk/ImageMenuItem.custom : return from subclass branch.
	* gtk/MenuItem.custom : return from subclass branch.
	* gtk/RadioMenuItem.custom : return from subclass branch.
	* gtk/glue/adjustment.c : add setters for lower/upper.

svn path=/trunk/gtk-sharp/; revision=26938
2004-05-07 18:41:32 +00:00
Mike Kestner
133a5c8715 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some *MenuItem ctors.
	* gtk/CheckMenuItem.custom : implement string ctor.
	* gtk/ImageMenuItem.custom : implement string ctor.
	* gtk/MenuItem.custom : use AccelLabel.
	* gtk/RadioMenuItem.custom : fix string ctor for subclassing.
	* gtk/Makefile.am : add new customs.

svn path=/trunk/gtk-sharp/; revision=26935
2004-05-07 17:32:32 +00:00
Mike Kestner
ed983e3813 2004-05-07 Mike Kestner <mkestner@ximian.com>
* gtk/Gtk.metadata : hide some MenuItem ctors.
	* gtk/Makefile.am : add the new custom.
	* gtk/MenuItem.custom : implement the string ctor.

svn path=/trunk/gtk-sharp/; revision=26929
2004-05-07 15:48:25 +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
e301835e99 2004-05-06 Mike Kestner <mkestner@ximian.com>
* gdk/Gdk.metadata : some out and array magic for Property.Get.
	[Fixes #56513]

svn path=/trunk/gtk-sharp/; revision=26857
2004-05-06 18:15:31 +00:00
Jeroen Zwartepoorte
e07bb75fd6 2004-05-06 Jeroen Zwartepoorte <jeroen@xs4all.nl>
* generator/Method.cs: Don't use the "unsafe" modifier for methods which
	are part of an interface [fixes #58059].

svn path=/trunk/gtk-sharp/; revision=26843
2004-05-06 15:58:00 +00:00
Mike Kestner
571b68363a 2004-05-06 Mike Kestner <mkestner@ximian.com>
* configure.in : bump version for cvs.

svn path=/trunk/gtk-sharp/; revision=26835
2004-05-06 15:05:00 +00:00
Mike Kestner
31ef54a54a 2004-05-05 Mike Kestner <mkestner@ximian.com>
* generator/BoxedGen.cs : remove g_value_init DllImport and change
	(g|s)et_boxed to use a glue method to simplify dllmapping.
	* glib/Value.cs : add Init method.
	* glib/glue/value.cs : add get/set_boxed glue methods.
	* */*.config.in : remove libgobject mappings for dlls that no longer
	need them.

svn path=/trunk/gtk-sharp/; revision=26787
2004-05-05 20:14:14 +00:00
Larry Ewing
e57c608330 2004-04-30 Larry Ewing <lewing@ximian.com>
* gtk/Adjustment.custom: add an a set method for StepIncrement.

	* gtk/glue/adjustment.c: add gtk_adjustment_set_step_increment.

svn path=/trunk/gtk-sharp/; revision=26780
2004-05-05 18:44:18 +00:00
Mike Kestner
01acd7f576 2004-05-05 Mike Kestner <mkestner@ximian.com>
* generator/Signal.cs : rmv Handle param to SignalCallback ctor calls.
	s/GtkSharp.Signal*/GLib.Signal*.
	* generator/SignalHandler.cs : rmv Handle param to ctors as it's
	redundant.  s/GtkSharp.Signal*/GLib.Signal*. Use new Connect/Disconnect
	instead of generating DllImports into libgobject directly.
	* glib/SignalArgs.cs : move the the GLib namespace.
	* glib/SignalCallback.cs : expose Connect and Disconnect methods to
	hide some pinvokes that were previously generated. Also move to the
	GLib namespace.
	gnome/*Handler.cs : update to new SignalHandler API.
	gnome/CanvasProxy.cs : ditto
	gnome/void*Signal.cs : ditto

svn path=/trunk/gtk-sharp/; revision=26778
2004-05-05 18:24:04 +00:00