anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes#66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
the
child properties for a given widget in a container, and generate
the child properties as properties on those classes.
* parser/gapi2xml.pl (addPropElem): don't prepend "child_" to
child prop names any more
* generator/ClassBase.cs (ClassBase): keep childprops separate
from properties
(GenChildProperties): create a subclass of Gtk.ContainerChild
containing the container type's child properties, and override
the
Container indexer to return that type.
* generator/ObjectGen.cs (Generate): call GenChildProperties
* generator/Property.cs:
* generator/ChildProperty.cs: Simplify these a bunch, since
* child
properties are now represented as C# properties as well. Also
add
[GLib.Property(cname)] and [Gtk.ChildProperty(cname)]
attributes.
* glib/Makefile.am (sources): add PropertyAttribute.cs
* glib/PropertyAttribute.cs: attribute used to label
GObject properties
* gtk/Makefile.am (sources): add ChildPropertyAttribute.cs
* gtk/gtk-api.raw: regenerate for parser changes (remove
"Child"/"child_" from child property names).
* gtk/ChildPropertyAttribute.cs: attribute used to label
GtkContainer child properties
* gtk/Container.custom: define the ContainerChild class, and an
indexer to return instances of it.
* doc/en/Gtk/: update for container child property change
svn path=/trunk/gtk-sharp/; revision=36284
* Pango/*.xml : run updater and kill stubbed deprecates
* Atk/*.xml : run updater and kill stubbed deprecates
* Gdk/*.xml : run updater and kill stubbed deprecates
* Gtk/*.xml : run updater and kill stubbed deprecates
svn path=/trunk/gtk-sharp/; revision=23492
* Fixed another off-by-one error in the enums from the last
commit. I'm such a doofus.
Also added the new enums that were missing from last night's
commit.
svn path=/trunk/gtk-sharp/; revision=16367
* Added new documentation files for the new classes, and fixed the
off-by-one enum member name bug that was introduced in the previous
commit.
svn path=/trunk/gtk-sharp/; revision=16325
* en/*/*.xml: Updated all the docs to match the new API. All the nodes
that no longer have a corresponding member in the type are now
marked as deprecated. We'll have to wait for Miguel to implement
this in the browser to stop displaying them.
All gtype constructors have been regenerated, because of the
'uint' to 'GLib.Type' change. However, this patch will preserve
(well, it was regenerated) the customized text for those GType
constructors.
A lot of the 'Finalized' methods are also now marked as
deprecated, because the classes implement 'Dispose' instead. This
is a possible place for customized scripts to generate template
documentation, similar to the GType property and GType constructors.
svn path=/trunk/gtk-sharp/; revision=12270
* en/*/*.xml: a Big patch. This adds code-generated documentation
for internal constructors, the GType property and the Finalized method.
svn path=/trunk/gtk-sharp/; revision=11858
* en/*: Updated the docs and added a new Maintainer attribute, also
fixed the generator to produce 'ref/out' modifiers for parameters.
svn path=/trunk/gtk-sharp/; revision=11599