Commit Graph

129 Commits

Author SHA1 Message Date
Rachel Hestilow
69e51261af 2003-09-17 Rachel Hestilow <rachel@nullenvoid.com>
* glib/DelegateWrapper.cs: Remove 'RemoveIfNotAlive'
	and revamp the memory management to use destroy
	notification.

	* generator/CallbackGen.cs: Do not generate the call to
	RemoveIfNotAlive.

	* gtk/GtkSharp.GtkClipboardGetFuncNative,
	GtkSharp.GtkClipboardClearFuncNative: Do not call
	RemoveIfNotAlive.

svn path=/trunk/gtk-sharp/; revision=18163
2003-09-18 03:49:18 +00:00
Gonzalo Paniagua Javier
0663cb37ba 2003-08-30 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gdk/Pixbuf.custom: use windows dll name. Removed DllImport that is
	already in the generated file.

	* glib/Thread.cs: use windows dll name.

	* gtk/ThreadNotify.cs: close <remark> comment.

svn path=/trunk/gtk-sharp/; revision=17731
2003-08-30 00:26:38 +00:00
Alp Toker
68261125e9 2003-08-28 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for
        TextGC

svn path=/trunk/gtk-sharp/; revision=17678
2003-08-28 00:19:39 +00:00
John Luke
310ff89edd 2003-08-26 John Luke <jluke@cfl.rr.com>
* gtk/ThreadNotify.cs: mark dllimported methods private

svn path=/trunk/gtk-sharp/; revision=17651
2003-08-27 02:26:05 +00:00
Alp Toker
e91763b734 2003-08-26 Alp Toker <alp@atoker.com>
* glue/style.c: glue and corresponding .custom entries for
        BaseGC, plus the ability to set GCs

svn path=/trunk/gtk-sharp/; revision=17605
2003-08-26 00:48:00 +00:00
Duncan Mak
710bbc7959 2003-08-06 Xavier Amado <xavier@blackbloodstudios.com>
* gtk/Notebook.custom (CurrentPageWidget): Added a property for
	getting the current page widget directly.

2003-07-30  Duncan Mak  <duncan@ximian.com>

	* en/Gnome/CanvasShape.xml: documented.

svn path=/trunk/gtk-sharp/; revision=17100
2003-08-06 04:40:02 +00:00
Duncan Mak
fec0df9def * art/Makefile.in:
* atk/Makefile.in:
* gda/Makefile.in:
* gdk/Makefile.in:
* glade/Makefile.in:
* gnome/Makefile.in:
* gnomedb/Makefile.in
* gtk/Makefile.in:
* pango/Makefile.in:
* rsvg/Makefile.in: Suppress warnings CS0660 and CS0661.

svn path=/trunk/gtk-sharp/; revision=16730
2003-07-27 06:48:40 +00:00
Mike Kestner
e13cec3477 2003-07-23 Mike Kestner <mkestner@ximian.com>
* gtk/FileSelection.custom : more s/new Object/GetObject

svn path=/trunk/gtk-sharp/; revision=16590
2003-07-23 23:56:47 +00:00
Mike Kestner
23464e6514 2003-07-23 Mike Kestner <mkestner@ximian.com>
[Equal credit to Ettore Perazzoli <ettore@ximian.com> for fixing
	all the bugs in the initial patch]
	* */*.custom : fix incorrect usage of new Object (IntPtr) where
	Glib.Object.GetObject should've been used.  add ref_owned param
	to GetObject calls.
	* generator/CallbackGen.cs : setup ref_owned in bodies
	* generator/ClassBase.cs : add ref_owned to GetObject FromNative call
	* generator/Method.cs : setup ref_owned in bodies
	* generator/Property.cs : setup ref_owned in bodies
	* generator/SignalHandler.cs : pass ref_owned to GetObject
	* generator/StructBase.cs : setup ref_owned in bodies
	* glib/Object.cs : kill Ref/Unref methods.  Don't want it to be
	easy for users to screw with ref counts, or make it look like they
	should need to.
	(GetObject): add ref_owned param and ref/unref to remain at 1
	* glib/Value.cs : pass ref_owned to GetObject

svn path=/trunk/gtk-sharp/; revision=16581
2003-07-23 17:19:21 +00:00
Duncan Mak
05172d9599 * en/Gtk/FSButton.xml: Removed the constructor, per the custom
file update and added documentation.

* gtk/FileSelection.custom (FSButton): Mark the constructor as
'internal', instead of 'public'.

svn path=/trunk/gtk-sharp/; revision=16513
2003-07-22 04:38:13 +00:00
Duncan Mak
573ef76a41 * sources/makefile (get-source-code): make it go a bit faster by
checking out all files in one go.

* gtk/IconSet.custom (Sizes): added proper binding to
gtk_icon_set_get_sizes (), this fixes bug #45835.

svn path=/trunk/gtk-sharp/; revision=16284
2003-07-16 03:29:47 +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
Mike Kestner
de34331936 2003-07-11 Mike Kestner <mkestner@speakeasy.net>
* gdk/Selection.custom : add static fields for the  primary,
	secondary, and clipboard and clipboard selection Gdk.Atoms.
	* glue/Makefile.am : add selection.c
	* glue/selection.c : add glue to get the atoms.
	* gtk/TextBuffer.custom : add a PasteClipboard overload for
	pasting to the cursor location.

svn path=/trunk/gtk-sharp/; revision=16130
2003-07-12 04:09:00 +00:00
Ettore Perazzoli
6f04d85cee * gtk/Layout.custom: New file, adding the Layout::BinWindow
property.

* glue/layout.c: New file, adding glue for getting the bin_window
of a GtkLayout.

svn path=/trunk/gtk-sharp/; revision=16048
2003-07-09 03:59:28 +00:00
Mike Kestner
08a8f34594 2003-06-14 Mike Kestner <mkestner@speakeasy.net>
* gtk/TreeViewColumn.custom : cast Array param to
	object[] before indexing into it.

svn path=/trunk/gtk-sharp/; revision=15387
2003-06-14 17:56:16 +00:00
Rachel Hestilow
fe699e9fbb 2003-05-29 Rachel Hestilow <rachel@nullenvoid.com>
* gconf/Value.cs: Update to use new string marshalling.

	* generator/StringGen.cs, ConstStringGen.cs: Added.
	* generator/IGeneratable.cs: Add new method ToNativeReturn.
	* generator/CallbackGen.cs: Implement ToNativeReturn. Call
	ToNativeReturn for the return statement. Fix a couple of
	places where s_ret was being used incorrectly for m_ret.
	* generator/ClassGen.cs, EnumGen.cs, ManualGen.cs,
	SimpleGen.cs, StructBase.cs: Implement ToNativeReturn.
	* generator/SignalHandler.cs: Call ToNativeReturn for the
	return statement, instead of CallByName.
	* generator/SymbolTable.cs: Use StringGen for gchar, char,
	and gunichar, and ConstStringGen for their const variants.
	Add a new method wrapper for ToNativeReturn.
	(Trim): Add a special-case for const strings so that the
	const is not stripped. Otherwise there is no way of
	resolving the const case.

	* glade/XML.custom: Update to use new string marshalling.

	* glib/Marshaller.cs: Added.
	* glib/GException.cs, Markup.cs, ObjectManager.cs,
	Value.cs: Update to use new string marshalling.
	* glib/Object.cs: Remove old g_type_name DllImport
	as it is no longer used.

	* glue/fileselection.c (gtksharp_file_selection_get_fileop_entry):
	Mark this as const return.

	* gtk/ColorSelection.custom, FileSelection.custom,
	SelectionData.custom: Update to use new string marshalling.

svn path=/trunk/gtk-sharp/; revision=15286
2003-06-10 18:09:47 +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
Miguel de Icaza
0676f9ddc9 Added IconFactory.custom file from mathias.hasselmann@gmx.de
svn path=/trunk/gtk-sharp/; revision=13730
2003-04-17 18:08:51 +00:00
Gonzalo Paniagua Javier
b5cfb4ba67 2003-04-15 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* gtk/TreeView.custom:
	(GetPathAtPos): added 3 overloads of this method so that the caller
	does not need to create extra variables that may not use.

	* api/gtk-api.xml:
	* sources/Gtk.metadata: added pass_out attribute for tx and ty
	arguments of TreeView::WidgetToTreeCoords. Hide TreeView::GetPathAtPos.

svn path=/trunk/gtk-sharp/; revision=13677
2003-04-16 02:26:12 +00:00
Lee Mallabone
6395590d34 Fix bugs #27835 and #38672 by correcting problems in the generated ColorSelection binding.
svn path=/trunk/gtk-sharp/; revision=13600
2003-04-14 17:04:13 +00:00
Gonzalo Paniagua Javier
3821938764 2003-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* generator/CallbackGen.cs: the new generated wrappers have:
		-(optional) Field of the same type returned by the callback.
		-A call to RemoveIfNotAlive at the beginning. It returns true,
		return the dummy field.
		-Added an object to the ctor signature and pass it to the base
		class.

	* generator/Ctor.cs: added a Params property.

	* generator/Method.cs: set Static property in Parameters if the method
	is static.

	* generator/Parameters.cs: added Static property. The call creation of
	the delegate wrapper (if applicable) uses the new signature. Pass a null
	as object is the method is static.

	* generator/StructBase.cs: set Static for the parameters of the ctors.

	* glib/DelegateWrapper.cs: the ctor takes an object (the one creating
	the wrapper or null) and creates a weak reference to it. Store it in
	a static Hashtable (this way the wrapper itself is not garbage
	collected).
	(RemoveIfNotAlive): called from the native delegate callbacks. If the
	target of the weak reference has been garbage collected, removes itself
	from the hashtable to let the GC dispose this instance and returns true.

	* gdk/Pixbuf.custom:
	* gtk/Clipboard.custom:
	* gtk/GtkSharp.GtkClipboardClearFuncNative.cs:
	* gtk/GtkSharp.GtkClipboardGetFuncNative.cs:
	* glade/XML.custom: changed delegate wrappers to match the new
	signature.

svn path=/trunk/gtk-sharp/; revision=13237
2003-04-06 09:21:15 +00:00
Lee Mallabone
95a81a7706 Add a custom constructor to Entry, and fix API bugs with Widget and Frame.
svn path=/trunk/gtk-sharp/; revision=13021
2003-04-02 08:26:36 +00:00
Lee Mallabone
b68542269f Add a default zero-arg constructor for Gtk.Viewport.
svn path=/trunk/gtk-sharp/; revision=12869
2003-03-27 19:15:04 +00:00
Martin Baulig
860cab4b30 2003-03-25 Martin Baulig <martin@ximian.com>
* gtk/Application.cs (CurrentEvent): Made this property static.

svn path=/trunk/gtk-sharp/; revision=12823
2003-03-25 16:57:05 +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
Duncan Mak
31a519a4cd * gtk/ColorSelectionDialog.custom: Rename the inner Button class
to be ColorSelectionButton to avoid a name clash in the doc generator.

* gtk/TextBuffer.custom: Fix the Text property. Patch from Mathias
Hasselmann <mathias.hasselmann@gmx.de>.

svn path=/trunk/gtk-sharp/; revision=12572
2003-03-16 00:08:18 +00:00
Duncan Mak
c1444f3883 Fix the Text property. Patch from Mathias
Hasselmann <mathias.hasselmann@gmx.de>.

svn path=/trunk/gtk-sharp/; revision=12564
2003-03-15 22:19:47 +00:00
Miguel de Icaza
1c5b25f9a1 2003-03-11 Miguel de Icaza <miguel@ximian.com>
* gtk/Application.cs (CurrentEvent): Property implementing the
	suggestion from Paolo.

	* glib/Object.cs (Dispose): Destructor might be invoked in a
	thread, queue the object for destruction using the Gtk idle
	handler.   We perform the real destruction of the object in the
	same thread as the Gtk+ main thread.

svn path=/trunk/gtk-sharp/; revision=12551
2003-03-15 20:49:37 +00:00
Miguel de Icaza
cf022facd6 2003-03-10 Miguel de Icaza <miguel@ximian.com>
* gtk/Application.cs: Do not allow instances of Application to be
	created.

	(InitCheck): new method, wraps gtk_init_check.

	Removed inline docs from here.  Put them on the documentation
	file.

svn path=/trunk/gtk-sharp/; revision=12418
2003-03-11 02:26:25 +00:00
Mike Kestner
11a68cfecf 2003-02-26 Charles Iliya Krempeaux <charles@reptile.ca>
* gtk/TextBuffer.custom : Added method, named
 	  "GetIterAtOffset" to wrap C API procedure
 	  "gtk_text_buffer_get_iter_at_offset" in a
 	  more expected way.

svn path=/trunk/gtk-sharp/; revision=12022
2003-02-27 05:41:32 +00:00
Mike Kestner
554450a33a 2003-02-23 Mike Kestner <mkestner@speakeasy.net>
* generator/CallbackGen.cs : suppress len params from
	  string/len pairs.
	* generator/Parameters.cs : begin the refactoring to use
	  Parameter class. Suppress len params from string/len pairs.
	*/*.custom : remove all overrides of string/len pairs
	*/*.cs : ditto.  Thanks to Alp Toker for the foundation
	  patch that this change was built upon.

svn path=/trunk/gtk-sharp/; revision=11913
2003-02-24 03:13:08 +00:00
Mike Kestner
c0b574a686 2003-02-21 Mike Kestner <mkestner@speakeasy.net>
* mapdllnames.pl : a little whitespace action
	* api/*-api.xml : move to win32 dllnames
	* */makefile.win32 : remove the mapdllnames step
	* */*.cs : move to win32 dllnames
	* */*.custom : move to win32 dllnames
	* sources/gtk-sharp.sources : move to win32 dllnames

svn path=/trunk/gtk-sharp/; revision=11823
2003-02-22 04:34:56 +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
fdaa84817e * sources/Gtk.metadata:
* api/gtk-api.xml: Gtk.Editable.InsertText should have the
position be marked 'ref', not 'out', because it is an in-out parameter.

* gtk/Entry.custom: Overload for InsertText.
* gtk/Clipboard.custom: New overload for SetText.

svn path=/trunk/gtk-sharp/; revision=11430
2003-02-10 00:32:14 +00:00
Radek Doulik
395c0cdf6f 2003-02-08 Radek Doulik <rodo@ximian.com>
* glib/MainContext.cs: beginning of MainContext class, just
	Iteration and Pending methods to be able to refresh Gtk in the
	middle of time consuming function where it's not worth while to
	use threads

	* glue/style.c (gtksharp_gtk_style_get_font_description): new
	function to access style's font_description field

	* gtk/Style.custom: added font description property

svn path=/trunk/gtk-sharp/; revision=11358
2003-02-08 17:33:17 +00:00
Duncan Mak
b566d8b21a 2003-02-06 Duncan Mak <duncan@ximian.com>
* api/gtk-api.xml:
* sources/Gtk.metadata:
* gtk/Window.custom: Mark out params in gtk_window_get_size and gtk_window_get_default_size.

svn path=/trunk/gtk-sharp/; revision=11268
2003-02-06 07:03:49 +00:00
Miguel de Icaza
66529e9602 Update API
svn path=/trunk/gtk-sharp/; revision=11235
2003-02-05 06:30:34 +00:00
Duncan Mak
4d694b215f * gtk/Widget.custom: Add a nice overload, rename it to
'RequestSize' instead of 'SizeRequest' to avoid a name clash.

* api/gtk-api.xml:
* sources/Gtk.metadata: out param for gtk_widget_get_size_request.

svn path=/trunk/gtk-sharp/; revision=11046
2003-01-30 02:56:49 +00:00
Duncan Mak
87387bc38b Add some overloads.
svn path=/trunk/gtk-sharp/; revision=11043
2003-01-30 02:34:20 +00:00
Radek Doulik
735c99ee96 new file, adds Frame () constructor which creates a frame without label
svn path=/trunk/gtk-sharp/; revision=10790
2003-01-21 21:41:10 +00:00
Miguel de Icaza
9786738198 Add customization
svn path=/trunk/gtk-sharp/; revision=10534
2003-01-15 04:24:50 +00:00
Duncan Mak
c3137abd9d 2003-01-10 Duncan Mak <duncan@ximian.com>
* gtk/TextView.custom (WindowToBufferCoords): Remove the hack, as
	the generator produces correct code now.

svn path=/trunk/gtk-sharp/; revision=10356
2003-01-10 19:16:48 +00:00
Duncan Mak
20160aa0fd * sources/Gtk.metadata (TextIter.ForwardSearch): Add out param
* sources/Gdk.metadata (Drawable.GetSize): Add out param.

* gtk/TextBuffer.custom (Clear): Add a new Clear method.

svn path=/trunk/gtk-sharp/; revision=10187
2003-01-05 23:48:45 +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
Robert McQueen
5c87903756 2002-12-22 Robert McQueen <robot101@debian.org>
* makefile: when doing distclean, attempt distclean on all the
        C# subdirs too
        * gconf/Makefile.in: added distclean target to rm the Makefiles
        in the subdirs of gconf/
        * glue/Makefile.am: build libgtksharpglue as an unversioned
        module to avoid so -> so.0 -> so.0.0 symlink mess
        * */Makefile.in: call mkinstalldirs before installing any files
        so that subdirs can be installed seperately or in any sequence
        (eg binding dirs before native dirs)

svn path=/trunk/gtk-sharp/; revision=9828
2002-12-22 05:08:52 +00:00
Duncan Mak
5646397d75 2002-11-29 Duncan Mak <duncan@ximian.com>
* gtk/TextBuffer.custom (Text): Add a new Text property.

svn path=/trunk/gtk-sharp/; revision=9262
2002-11-29 18:08:54 +00:00
Mike Kestner
3a108845d7 2002-11-21 Mike Kestner <mkestner@speakeasy.net>
* api/*.xml : a few new attrs
	* generator/Parameters.cs : remove redundant ref keywords
	* gtk/ListStore.custom: overload SetColumnTypes
	* gtk/TreeStore.custom: overload SetColumnTypes
	* parser/GAPI/Metadata.pm : allow callback nodes at class level
	* sources/Gtk.metadata : hide ClipboardClearFunc and GetFunc,
	tag types param of SetColumnTypes as array, uncomment needs_ref
	tags on Widget methods to match the current api.xml file

svn path=/trunk/gtk-sharp/; revision=9148
2002-11-22 03:30:18 +00:00
Mike Kestner
79c93e89fd 2002-11-19 Mike Kestner <mkestner@speakeasy.net>
* gtk/Dialog.custom : bind another ctor

svn path=/trunk/gtk-sharp/; revision=9109
2002-11-20 03:28:22 +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
Miguel de Icaza
ddf50c3439 Add patches from Cesar
svn path=/trunk/gtk-sharp/; revision=8891
2002-11-08 23:32:27 +00:00