GtkSharp/gtk
Dan Winship b6d7f14268 * generator/StructBase.cs: update field-generation logic a bit
* generator/CodeGenerator.cs: add a --glue-includes flag

	* generator/GenerationInfo.cs: Accept glue_includes value from
	Main and output it to the glue_filename.

	* generator/FieldBase.cs (Ignored): handle more ignorable cases.
	(CheckGlue): New method to figure out what kind of glue we'll need
	for a field.
	(GenerateImports): generate appropriate imports per CheckGlue.
	(GenerateGlue): Generate C glue for accessing a struct field;
	either a fully-C-based accessor, or a method to just return the
	field's offset in the struct.
	(Generate): Use the generated glue to read the field.

	* generator/PropertyBase.cs (CType): if the field is a single bit,
	set its type to gboolean.

	* generator/ObjectGen.cs (Generate):
	* generator/OpaqueGen.cs (Generate): Call GenFields.

	* generator/StructField.cs: Use FieldBase's glue-generation code
	to handle bitfields. [#54489]

	* generator/ObjectField.cs: Generates accessors for public fields
	of objects and opaque structs. [#69514]

	* generator/ClassBase.cs (ClassBase): Parse <fields> nodes and
	create ObjectField objects.
	(GenFields): Output field properties
	(IgnoreMethod): Ignore Get/Set methods that duplicate fields

	* generator/Makefile.am (sources): update

	* {gdk,gnome,gtk,pango}/*.metadata: Mark some additional fields as
	public. Rename/retype some fields for consistency with earlier
	hand-coded bindings.

	* {gdk,gnome,gtk,pango}/*.custom: Remove custom methods that can
	now be autogenerated.

	* {gdk,gnome,gtk,pango}/glue/*.c: Remove glue methods that can now
	be autogenerated
	
	* {gdk,glade,gnome,gtk,pango,vte}/Makefile.am
	* {gdk,glade,gnome,gtk,pango,vte}/glue/Makefile.am
	* {gdk,gnome,gtk,pango}/glue/makefile.win32: Update

svn path=/trunk/gtk-sharp/; revision=44563
2005-05-16 14:28:55 +00:00
..
glue * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Accel.custom 2005-04-05 Mike Kestner <mkestner@novell.com> 2005-04-05 14:48:49 +00:00
AccelKey.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Action.custom 2004-12-06 John Luke <john.luke@gmail.com> 2004-12-07 01:31:50 +00:00
ActionEntry.cs 2004-11-26 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-11-26 14:59:38 +00:00
ActionGroup.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
Adjustment.custom 2004-12-07 Mike Kestner <mkestner@novell.com> 2004-12-07 19:03:55 +00:00
Application.cs 2004-12-21 Mike Kestner <mkestner@novell.com> 2004-12-21 19:47:55 +00:00
Bin.custom 2004-09-24 Mike Kestner <mkestner@ximian.com> 2004-09-24 15:58:05 +00:00
BindingAttribute.cs 2004-12-23 Mike Kestner <mkestner@novell.com> 2004-12-23 22:59:59 +00:00
Button.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Calendar.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
CellLayout.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
CellRenderer.custom 2005-03-25 Mike Kestner <mkestner@novell.com> 2005-03-25 17:57:15 +00:00
CellView.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
CheckMenuItem.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
ChildPropertyAttribute.cs Redo child property handling; now we generate classes to hold 2004-11-18 20:31:22 +00:00
Clipboard.custom * generator/Parameters.cs (IsHidden): method to check if a 2005-05-02 20:10:03 +00:00
ColorSelection.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
ColorSelectionDialog.custom 2004-12-18 Mike Kestner <mkestner@novell.com> 2004-12-18 20:59:57 +00:00
Combo.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
ComboBox.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
Container.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Dialog.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Entry.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
EntryCompletion.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
FileChooserDialog.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
FileChooserWidget.custom 2004-11-04 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-11-04 20:33:35 +00:00
FileSelection.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
FileSystemModel.custom merge to HEAD of jeroen and friends' work on the 2-4 branch. HEAD 2004-10-29 20:33:07 +00:00
Frame.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
gtk-api-2.4.raw 2005-05-06 Mike Kestner <mkestner@novell.com> 2005-05-06 17:10:48 +00:00
gtk-api-2.6.raw 2005-05-06 Mike Kestner <mkestner@novell.com> 2005-05-06 17:10:48 +00:00
gtk-sharp-2.0.pc.in 2005-01-08 Mike Kestner <mkestner@novell.com> 2005-01-09 00:26:45 +00:00
gtk-sharp.dll.config.in 2004-04-29 Mike Kestner <mkestner@ximian.com> 2004-04-29 15:00:24 +00:00
gtk-symbols.xml 2004-03-12 Mike Kestner <mkestner@ximian.com> 2004-03-12 21:18:11 +00:00
Gtk.metadata * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
HBox.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
HScale.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
IconFactory.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
IconSet.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
IconTheme.custom 2005-05-11 Mike Kestner <mkestner@novell.com> 2005-05-11 22:43:04 +00:00
Image.custom * gdk/PixbufLoader.custom: Implement System.IO.Stream and 2005-04-01 14:54:12 +00:00
ImageMenuItem.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
Init.custom 2004-09-03 Mike Kestner <mkestner@ximian.com> 2004-09-03 15:59:29 +00:00
Input.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
ItemFactory.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
ITreeNode.cs Re-fix for yesterday's fix that didn't actually work. 2005-03-15 15:49:30 +00:00
Label.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
ListStore.custom 2005-05-11 Eric Butler <eric@extremeboredom.net> 2005-05-11 19:41:45 +00:00
Makefile.am * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
makefile.win32 2005-03-25 Mike Kestner <mkestner@novell.com> 2005-03-25 18:31:10 +00:00
Menu.custom 2005-04-05 Alp Toker <alp@atoker.com> 2005-04-05 04:35:03 +00:00
MenuItem.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
MessageDialog.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
NodeCellDataFunc.cs 2005-03-12 Mike Kestner <mkestner@novell.com> 2005-03-12 18:54:53 +00:00
NodeSelection.cs 2005-01-27 Mike Kestner <mkestner@novell.com> 2005-01-27 16:56:54 +00:00
NodeStore.cs * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
NodeView.cs * gdk/EventClient.cs (gtksharp_gdk_event_client_get_time): 2005-04-21 15:12:12 +00:00
Notebook.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Object.custom 2005-05-13 Mike Kestner <mkestner@novell.com> 2005-05-13 17:38:51 +00:00
Plug.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Quit.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
RadioActionEntry.cs 2004-11-26 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-11-26 14:59:38 +00:00
RadioButton.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
RadioMenuItem.custom 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
ScrolledWindow.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
SelectionData.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Settings.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
SpinButton.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Stock.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
StockItem.custom 2005-01-06 Larry Ewing <lewing@novell.com> 2005-01-06 21:41:01 +00:00
StockManager.cs 2005-03-08 Mike Kestner <mkestner@novell.com> 2005-03-08 21:28:08 +00:00
Style.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Table.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
TargetEntry.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
TargetList.custom * generator/OpaqueGen.cs: Don't build the (IntPtr raw) constructor 2004-10-19 14:21:48 +00:00
TextBuffer.custom 2005-03-09 Mike Kestner <mkestner@novell.com> 2005-03-09 20:32:24 +00:00
TextChildAnchor.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
TextIter.custom 2004-12-07 Mike Kestner <mkestner@novell.com> 2004-12-07 19:03:55 +00:00
TextTag.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
TextView.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
ThreadNotify.cs 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Timeout.cs 2005-04-05 Mike Kestner <mkestner@novell.com> 2005-04-05 20:14:02 +00:00
ToggleActionEntry.cs 2004-11-26 Jeroen Zwartepoorte <jeroen@xs4all.nl> 2004-11-26 14:59:38 +00:00
Toolbar.custom 2005-04-05 Mike Kestner <mkestner@novell.com> 2005-04-05 14:48:49 +00:00
TreeEnumerator.cs 2005-05-11 Eric Butler <eric@extremeboredom.net> 2005-05-11 19:41:45 +00:00
TreeIter.custom 2004-12-16 Mike Kestner <mkestner@novell.com> 2004-12-16 20:30:43 +00:00
TreeModel.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
TreeModelFilter.custom remove one more method that should have gone away with yesterday's commit 2005-05-04 15:51:23 +00:00
TreeModelSort.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
TreeNode.cs Re-fix for yesterday's fix that didn't actually work. 2005-03-15 15:49:30 +00:00
TreeNodeAttribute.cs 2005-01-03 Mike Kestner <mkestner@novell.com> 2005-01-03 18:37:08 +00:00
TreeNodeValueAttribute.cs 2004-12-16 Mike Kestner <mkestner@novell.com> 2004-12-16 20:30:43 +00:00
TreePath.custom 2005-04-11 Mike Kestner <mkestner@novell.com> 2005-04-11 17:15:38 +00:00
TreeSelection.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
TreeSortable.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
TreeStore.custom * parser/gapi2xml.pl: make note of _get_type methods for enums 2005-05-04 16:54:24 +00:00
TreeView.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
TreeViewColumn.custom * generator/Parameters.cs (Parameters.Validate): If the parameters 2005-05-04 11:47:25 +00:00
UIManager.custom 2004-12-06 John Luke <john.luke@gmail.com> 2004-12-07 01:31:50 +00:00
VBox.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Viewport.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
VScale.custom 2004-06-25 Mike Kestner <mkestner@ximian.com> 2004-06-25 18:42:19 +00:00
Widget.custom * generator/StructBase.cs: update field-generation logic a bit 2005-05-16 14:28:55 +00:00
Window.custom * gtk/Object.custom (Raw): Always ref the object, even if it's not 2005-04-07 20:05:52 +00:00