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
This commit is contained in:
Mike Kestner 2004-09-29 18:45:59 +00:00
parent b1d0ceff9a
commit aa54aa2c95
9 changed files with 236 additions and 167 deletions

View file

@ -1,3 +1,9 @@
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.
2004-09-29 Mike Kestner <mkestner@ximian.com>
* generator/GStringGen.cs : new generatable impl for GStrings.

View file

@ -71,8 +71,6 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="ChangeSortColumn">
<MemberSignature Language="C#" Value="public virtual void ChangeSortColumn ();" />
<MemberType>Method</MemberType>
@ -118,8 +116,8 @@
<summary>Sets a sort function to be used for the column
<paramref name="sort_column_id" />.</summary>
<param name="sort_column_id">A <see cref="T:System.Int32" /> for the column number.</param>
<param name="sort_func">A <see cref="T:Gtk.TreeIterCompareFunc"/></param>
<param name="user_data">A <see cref="T:IntPtr"/></param>
<param name="sort_func">A <see cref="T:Gtk.TreeIterCompareFunc" /></param>
<param name="user_data">A <see cref="T:IntPtr" /></param>
<param name="destroy">A <see cref="T:Gtk.DestroyNotify" />, function that will be run on destruction of <paramref name="user_data" /></param>
<remarks />
</Docs>
@ -137,8 +135,8 @@
</Parameters>
<Docs>
<summary>Set the function that will be used by default to sort columns.</summary>
<param name="sort_func">A <see cref="T:Gtk.TreeIterCompareFunc"/></param>
<param name="user_data">A <see cref="T:IntPtr"/> (FIXME: explain this)</param>
<param name="sort_func">A <see cref="T:Gtk.TreeIterCompareFunc" /></param>
<param name="user_data">A <see cref="T:IntPtr" /> (FIXME: explain this)</param>
<param name="destroy">A <see cref="T:Gtk.DestroyNotify" />, function that will be run on destruction of <paramref name="user_data" /></param>
<remarks />
</Docs>
@ -154,9 +152,9 @@
<Parameter Name="selection_data" Type="Gtk.SelectionData" />
</Parameters>
<Docs>
<summary>Returns true if the row at <paramref name='dest_path' /> can
<summary>Returns true if the row at <paramref name="dest_path" /> can
have <paramref name="selection_data" /> dropped on it.</summary>
<param name="dest_path">A <see cref="T:Gtk.TreePath"/></param>
<param name="dest_path">A <see cref="T:Gtk.TreePath" /></param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData" /></param>
<returns>A boolean.</returns>
<remarks />
@ -175,7 +173,7 @@
<Docs>
<summary>Drags data received into this <see cref="T:Gtk.ListStore" /> object.</summary>
<param name="dest">A <see cref="T:Gtk.TreePath" />, the destination path of the drag</param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData"/>, the data that was dragged</param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData" />, the data that was dragged</param>
<returns>A boolean, true if the data was successfully received.</returns>
<remarks />
</Docs>
@ -194,9 +192,9 @@
<summary>Method used when this ListStore is part of a source widget
for a drag-and-drop operation; gets the data that was dragged from the
associated widget.</summary>
<param name="path">a <see cref="T:Gtk.TreePath"/></param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData"/></param>
<returns>A <see cref="T:System.Boolean"/>, true if the operation succeeded.</returns>
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData" /></param>
<returns>A <see cref="T:System.Boolean" />, true if the operation succeeded.</returns>
<remarks />
</Docs>
</Member>
@ -227,8 +225,8 @@
</Parameters>
<Docs>
<summary>When this ListStore is the data source for a drag operation and the drag operation is a move, this method runs to delete the data after the data has been received by the target widget.</summary>
<param name="path">A <see cref="T:Gtk.TreePath"/>, the path of the data to delete.</param>
<returns>A <see cref="T:System.Boolean"/>, true if the operation succeeds.</returns>
<param name="path">A <see cref="T:Gtk.TreePath" />, the path of the data to delete.</param>
<returns>A <see cref="T:System.Boolean" />, true if the operation succeeds.</returns>
<remarks />
</Docs>
</Member>
@ -243,9 +241,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Fires a <see cref="E:Gtk.ListStore.RowChanged"/> event. Call this after changing a row so that the view widget for this ListStore will update.</summary>
<param name="path">a <see cref="T:Gtk.TreePath"/></param>
<param name="iter">a <see cref="Gtk.TreeIter"/></param>
<summary>Fires a <see cref="E:Gtk.ListStore.RowChanged" /> event. Call this after changing a row so that the view widget for this ListStore will update.</summary>
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
<param name="iter">a <see cref="Gtk.TreeIter" /></param>
<remarks />
</Docs>
</Member>
@ -260,7 +258,7 @@
</Parameters>
<Docs>
<summary>Runs a method on every row of a ListStore.</summary>
<param name="func">A <see cref="T:Gtk.TreeModelForeachFunc"/> to run over every row.</param>
<param name="func">A <see cref="T:Gtk.TreeModelForeachFunc" /> to run over every row.</param>
<remarks />
</Docs>
</Member>
@ -274,9 +272,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter&amp;" RefType="out" />
</Parameters>
<Docs>
<summary>Initializes <paramref name="iter"/> with the first iterator in the ListStore (the top item).</summary>
<param name="iter">A <see cref="T:Gtk.TreeIter&amp;"/> to reset</param>
<returns>A <see cref="T:System.Boolean"/>, true if the operation is successful, false if the ListStore is empty.</returns>
<summary>Initializes <paramref name="iter" /> with the first iterator in the ListStore (the top item).</summary>
<param name="iter">A <see cref="T:Gtk.TreeIter&amp;" /> to reset</param>
<returns>A <see cref="T:System.Boolean" />, true if the operation is successful, false if the ListStore is empty.</returns>
<remarks />
</Docs>
</Member>
@ -291,10 +289,10 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Emits a <see cref="T:Gtk.ListStore.RowHasChildToggled"/> event. This is meant to be called whenever the child state of a node changes.</summary>
<param name="path">a <see cref="T:Gtk.TreePath"/> to pass to the event</param>
<param name="iter">a <see cref="T:Gtk.TreeIter"/> to pass to the event</param>
<remarks>This is mandated by the <see cref="T:Gtk.TreeModel"/>, but it
<summary>Emits a <see cref="T:Gtk.ListStore.RowHasChildToggled" /> event. This is meant to be called whenever the child state of a node changes.</summary>
<param name="path">a <see cref="T:Gtk.TreePath" /> to pass to the event</param>
<param name="iter">a <see cref="T:Gtk.TreeIter" /> to pass to the event</param>
<remarks>This is mandated by the <see cref="T:Gtk.TreeModel" />, but it
shouldn't get used much for ListStores because they don't generally
have child nodes.</remarks>
</Docs>
@ -309,9 +307,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Turns a <see cref="T:Gtk.TreeIter"/> specified by <paramref name="iter"/> into a <see cref="T:Gtk.TreePath"/>.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter"/></param>
<returns>a <see cref="T:Gtk.TreePath"/></returns>
<summary>Turns a <see cref="T:Gtk.TreeIter" /> specified by <paramref name="iter" /> into a <see cref="T:Gtk.TreePath" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<returns>a <see cref="T:Gtk.TreePath" /></returns>
<remarks />
</Docs>
</Member>
@ -326,9 +324,9 @@
</Parameters>
<Docs>
<summary>Tests whether a given row has a child node.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter"/></param>
<returns>A <see cref="T:System:Boolean"/>, always false for ListStores.</returns>
<remarks>This is mandated by <see cref="T:Gtk.TreeModel"/></remarks>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<returns>A <see cref="T:System:Boolean" />, always false for ListStores.</returns>
<remarks>This is mandated by <see cref="T:Gtk.TreeModel" /></remarks>
</Docs>
</Member>
<Member MemberName="RefNode">
@ -341,12 +339,12 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Lets the ListStore reference the row pointed to by <paramref name="iter"/>. </summary>
<param name="iter">a <see cref="T:Gtk.TreeIter"/></param>
<summary>Lets the ListStore reference the row pointed to by <paramref name="iter" />. </summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<remarks>
<para>This function is primarily meant as a way for views to let caching model know when nodes are being displayed (and hence, whether or not to cache that node.) For example, a file-system based model would not want to keep the entire file-hierarchy in memory, just the sections that are currently being displayed by every current view.</para>
<para>A model should be expected to be able to get an iter independent of its reffed state.</para>
</remarks>
<para>This function is primarily meant as a way for views to let caching model know when nodes are being displayed (and hence, whether or not to cache that node.) For example, a file-system based model would not want to keep the entire file-hierarchy in memory, just the sections that are currently being displayed by every current view.</para>
<para>A model should be expected to be able to get an iter independent of its reffed state.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="IterNChildren">
@ -359,9 +357,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Returns the number of children that <paramref name="iter"/> has. If <paramref name="iter"/> is null, as in the case of all ListStore objects, this will return the number of top-level items.</summary>
<summary>Returns the number of children that <paramref name="iter" /> has. If <paramref name="iter" /> is null, as in the case of all ListStore objects, this will return the number of top-level items.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<returns>a <see cref="System.Int32"/></returns>
<returns>a <see cref="System.Int32" /></returns>
<remarks>FIXME: Why does ListStore.custom call gtk_tree_model_iter_n_children?</remarks>
</Docs>
</Member>
@ -378,7 +376,7 @@
<Docs>
<summary>Fires a <see cref="E:Gtk.TreeModel.RowInserted" /> event. </summary>
<param name="path">a <see cref="T:Gtk.TreePath" /> to pass to the event.</param>
<param name="iter">a see cref="T:Gtk.TreeIter" /> to pass to the event.</param>
<param name="iter">a see cref="T:Gtk.TreeIter" /&gt; to pass to the event.</param>
<remarks />
</Docs>
</Member>
@ -425,15 +423,15 @@
</Parameters>
<Docs>
<summary>Lets the ListStore unref the row at <paramref name="iter" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter"/></param>
<remarks>
<para>This is an optional method
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<remarks>
<para>This is an optional method
for models to implement. To be more specific, models may ignore
this call as it exists primarily for performance reasons.</para>
<para>For more information on what this means, see
<para>For more information on what this means, see
<see cref="M:Gtk.ListStore.RefNode" />. Please note that
nodes that are deleted are not unreffed.</para>
</remarks>
</remarks>
</Docs>
</Member>
<Member MemberName="Clear">
@ -445,7 +443,7 @@
<Parameters />
<Docs>
<summary>Removes all data from the store.</summary>
<remarks/>
<remarks />
</Docs>
</Member>
<Member MemberName="SetValist">
@ -478,9 +476,9 @@
</Parameters>
<Docs>
<summary>Sets the value of the specified column in the row pointed by <paramref name="iter" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter"/></param>
<param name="column">a <see cref="T:System.Int32"/>, the column number</param>
<param name="value">a <see cref="GLib.Value"/></param>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<param name="column">a <see cref="T:System.Int32" />, the column number</param>
<param name="value">a <see cref="GLib.Value" /></param>
<remarks>The type of specified column must be a <see cref="T:GLib.Value" />.</remarks>
</Docs>
</Member>
@ -532,7 +530,7 @@
</ReturnValue>
<Docs>
<summary>The flags for this ListStore. </summary>
<returns>A <see cref="T:Gtk.TreeModelFlags"/></returns>
<returns>A <see cref="T:Gtk.TreeModelFlags" /></returns>
<remarks>Flags are about the shape of this object's data; see the
class documentation for more details.</remarks>
</Docs>
@ -620,11 +618,11 @@
<Parameter Name="n" Type="System.Int32" />
</Parameters>
<Docs>
<summary>Sets <paramref name="iter"/> to be the child of this ListStore, using the given index. The first index is 0. If <paramref name="n"/> is too big, or this ListStore has no rows, <paramref name="iter"/> is set to an invalid iterator and false is returned. For ListStore objects, the <paramref name="n"/>th root node is set, since they don't have a tree-like structure.
<summary>Sets <paramref name="iter" /> to be the child of this ListStore, using the given index. The first index is 0. If <paramref name="n" /> is too big, or this ListStore has no rows, <paramref name="iter" /> is set to an invalid iterator and false is returned. For ListStore objects, the <paramref name="n" />th root node is set, since they don't have a tree-like structure.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;"/></param>
<param name="n">a <see cref="T:System.Int32"/></param>
<returns>a <see cref="T:System.Boolean"/>, true if <paramref name="iter"/> has an <paramref name="n"/>th child.</returns>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;" /></param>
<param name="n">a <see cref="T:System.Int32" /></param>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="iter" /> has an <paramref name="n" />th child.</returns>
<remarks>This is a custom binding for Gtk# which assumes that the current object is the parent. An alternate invocation form that parallels the C API is available.</remarks>
</Docs>
</Member>
@ -640,12 +638,11 @@
<Parameter Name="n" Type="System.Int32" />
</Parameters>
<Docs>
<summary>Sets <paramref name="iter"/> to be the child of <paramref name="parent"/>, using the given index. The first index is 0. If <paramref name="n"/> is too big, or <paramref name="parent"/> has no children, <paramref name="iter"/> is set to an invalid iterator and false is returned. <paramref name="parent"/> will remain a valid node after this function has been called. As a special case, if <paramref name="parent"/> is <see langword="null"/>, then the <paramref name="n"/>th root node is set.
<summary>Sets <paramref name="iter" /> to be the child of <paramref name="parent" />, using the given index. The first index is 0. If <paramref name="n" /> is too big, or <paramref name="parent" /> has no children, <paramref name="iter" /> is set to an invalid iterator and false is returned. <paramref name="parent" /> will remain a valid node after this function has been called. As a special case, if <paramref name="parent" /> is <see langword="null" />, then the <paramref name="n" />th root node is set.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;"/></param>
<param name="n">a <see cref="T:System.Int32"/></param>
<returns>a <see cref="T:System.Boolean"/>, true if <paramref name="parent"/> has an <paramref name="n"/>th child.</returns>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;" /></param>
<param name="n">a <see cref="T:System.Int32" /></param>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="parent" /> has an <paramref name="n" />th child.</returns>
<remarks>This invocation form is closer to the underlying C API, but it's probably less useful for most C# purposes.</remarks>
</Docs>
</Member>
@ -660,11 +657,11 @@
<Parameter Name="path_string" Type="System.String" />
</Parameters>
<Docs>
<summary>Marshals a path string into a <see cref="T:Gtk.TreeIter"/> object that points to a row in this tree.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;"/> to be set by this method</param>
<summary>Marshals a path string into a <see cref="T:Gtk.TreeIter" /> object that points to a row in this tree.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;" /> to be set by this method</param>
<param name="path_string">A path string</param>
<returns>A <see cref="System.Boolean"/>, true if this string is a valid path for this ListStore.</returns>
<remarks/>
<returns>A <see cref="System.Boolean" />, true if this string is a valid path for this ListStore.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName="IterChildren">
@ -678,10 +675,12 @@
<Parameter Name="parent" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary></summary>
<param name="iter"><see cref="T:Gtk.TreeIter"/>, an object that will be set to point to the first child.</param>
<param name="parent">a <see cref="T:Gtk.TreeIter"/>, the parent row.</param>
<returns>A <see cref="System.Boolean"/>, true if <paramref name="iter" /> has children.</returns>
<summary>
</summary>
<param name="iter">
<see cref="T:Gtk.TreeIter" />, an object that will be set to point to the first child.</param>
<param name="parent">a <see cref="T:Gtk.TreeIter" />, the parent row.</param>
<returns>A <see cref="System.Boolean" />, true if <paramref name="iter" /> has children.</returns>
<remarks>In general, this will return false, as ListStore isn't tree-shaped. However, if <paramref name="parent" /> is <see langword="null" />, <paramref name="iter" /> will return the list itself, since they're all children of the root.</remarks>
</Docs>
</Member>
@ -696,7 +695,7 @@
<Parameter Name="path" Type="Gtk.TreePath" />
</Parameters>
<Docs>
<summary>Gets an iterator object for the given <paramref name="path"/>.</summary>
<summary>Gets an iterator object for the given <paramref name="path" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;" /> to set to point to the row.</param>
<param name="path">a <see cref="Gtk.TreePath" /></param>
<returns>A <see cref="T:System.Boolean" />, true if the row exists</returns>
@ -714,7 +713,7 @@
<Parameter Name="child" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Gets the parent row of <paramref name="child"/>.</summary>
<summary>Gets the parent row of <paramref name="child" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter&amp;" /> to set to point to the row.</param>
<param name="child">a <see cref="T:Gtk.TreeIter" />, the child row whose parent we want to get</param>
<returns>A <see cref="T:System.Boolean" />, true if the parent exists. Since ListStore objects aren't tree-shaped, this will always return false.</returns>
@ -780,10 +779,10 @@
<Parameter Name="position" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Move the row pointed to by <paramref name="iter"/> to the
position after <paramref name="position"/>. If
<paramref name="position"/> is <see langword="null"/>,
<paramref name="iter"/> will be moved to point to the start
<summary>Move the row pointed to by <paramref name="iter" /> to the
position after <paramref name="position" />. If
<paramref name="position" /> is <see langword="null" />,
<paramref name="iter" /> will be moved to point to the start
of the list.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
@ -819,10 +818,10 @@
<Parameter Name="position" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Move the row pointed to by <paramref name="iter"/> to the
position before <paramref name="position"/>. If
<paramref name="position"/> is <see langword="null"/>,
<paramref name="iter"/> will be moved to point to the end
<summary>Move the row pointed to by <paramref name="iter" /> to the
position before <paramref name="position" />. If
<paramref name="position" /> is <see langword="null" />,
<paramref name="iter" /> will be moved to point to the end
of the list.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
@ -840,9 +839,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Test whether <paramref name="iter"/> is valid for this ListStore.</summary>
<summary>Test whether <paramref name="iter" /> is valid for this ListStore.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="iter"/> is valid.</returns>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="iter" /> is valid.</returns>
<remarks>WARNING: this method is slow and is only intended for
debugging/testing purposes.</remarks>
</Docs>
@ -1030,8 +1029,8 @@ The above example creates a new three columns list store. The types of the colum
<Parameter Name="column" Type="System.Int32" />
</Parameters>
<Docs>
<summary>Gets the data from row <paramref name="iter"/> of column
<paramref name="column"/>.</summary>
<summary>Gets the data from row <paramref name="iter" /> of column
<paramref name="column" />.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" />, the row to look in</param>
<param name="column">a <see cref="T:System.Int32" />, the column number to look in</param>
<returns>a <see cref="T:System.Object" /></returns>
@ -1049,7 +1048,7 @@ The above example creates a new three columns list store. The types of the colum
<summary>Find out whether this ListStore has a default sort function.</summary>
<returns>a <see cref="T:System.Boolean" />, true if there is a default
sort function.</returns>
<remarks>To set a default sort function, use <see cref="M:Gtk.ListStore.SetDefaultSortFunc"/>.</remarks>
<remarks>To set a default sort function, use <see cref="M:Gtk.ListStore.SetDefaultSortFunc" />.</remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -1078,10 +1077,10 @@ The above example creates a new three columns list store. The types of the colum
<summary>Sets what types go in each column of a ListStore.</summary>
<param name="types">a <see cref="T:GLib.GType[]" /></param>
<remarks> This function is meant primarily for #GObjects that inherit
from <see cref="T:Gtk.ListStore"/> and should only be used when
constructing a new <see cref="T:Gtk.ListStore"/>. It will not
from <see cref="T:Gtk.ListStore" /> and should only be used when
constructing a new <see cref="T:Gtk.ListStore" />. It will not
function after a row has been added or after a method on the
<see cref="T:Gtk.TreeModel"/> interface has been called.
<see cref="T:Gtk.TreeModel" /> interface has been called.
</remarks>
</Docs>
</Member>
@ -1349,11 +1348,11 @@ The above example creates a new three columns list store. The types of the colum
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Fires a <see cref="E:Gtk.ListStore.RowsReordered"/> event.</summary>
<summary>Fires a <see cref="E:Gtk.ListStore.RowsReordered" /> event.</summary>
<param name="path">a <see cref="T:Gtk.TreePath" />, pointer to the row whose children have been reordered</param>
<param name="iter">a <see cref="T:Gtk.TreeIter" />, pointer to the row whose children have been reordered</param>
<returns>a <see cref="T:System.Int32" /></returns>
<remarks>This is part of the implementation of <see cref="T:Gtk.TreeModel"/>. It should be called by other class methods that reorder rows so that the proper events are fired. (FIXME: since lists don't have parents/children, how does this get used in practice? There should be an example here.)</remarks>
<remarks>This is part of the implementation of <see cref="T:Gtk.TreeModel" />. It should be called by other class methods that reorder rows so that the proper events are fired. (FIXME: since lists don't have parents/children, how does this get used in practice? There should be an example here.)</remarks>
</Docs>
</Member>
<Member MemberName="Remove">
@ -1385,7 +1384,7 @@ The above example creates a new three columns list store. The types of the colum
</Parameters>
<Docs>
<summary>Gets the value of row <paramref name="iter" /> of column
<paramref name="column" /> and puts it in <paramref name="value"/>.
<paramref name="column" /> and puts it in <paramref name="value" />.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<param name="column">a <see cref="T:System.Int32" /></param>
@ -1409,5 +1408,16 @@ The above example creates a new three columns list store. The types of the colum
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected ListStore ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.ListStore" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -177,5 +177,18 @@ The object is only destroyed if all the references to the object are released, t
<remarks>Internal constructor.</remarks>
</Docs>
</Member>
<Member MemberName="IsFloating">
<MemberSignature Language="C#" Value="public bool IsFloating { set; get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Determines if the object reference is floating.</summary>
<returns>a <see cref="T:System.Boolean" /></returns>
<remarks>An object is floating until it is added to a container which claims ownership of the floating reference.</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -46,26 +46,6 @@
<remarks />
</Docs>
</Member>
<Member MemberName="GetRowDragData">
<MemberSignature Language="C#" Value="public static bool GetRowDragData (Gtk.SelectionData selection_data, Gtk.TreeModel tree_model, Gtk.TreePath path);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="selection_data" Type="Gtk.SelectionData" />
<Parameter Name="tree_model" Type="Gtk.TreeModel" />
<Parameter Name="path" Type="Gtk.TreePath" />
</Parameters>
<Docs>
<summary>Deprecated.</summary>
<param name="selection_data">a <see cref="T:Gtk.SelectionData" /></param>
<param name="tree_model">a <see cref="T:Gtk.TreeModel" /></param>
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
<returns>a <see cref="T:System.Boolean" /></returns>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public Tree ();" />
<MemberType>Constructor</MemberType>
@ -77,5 +57,26 @@
<remarks />
</Docs>
</Member>
<Member MemberName="GetRowDragData">
<MemberSignature Language="C#" Value="public static bool GetRowDragData (Gtk.SelectionData selection_data, out Gtk.TreeModel tree_model, out Gtk.TreePath path);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="selection_data" Type="Gtk.SelectionData" />
<Parameter Name="tree_model" Type="Gtk.TreeModel&amp;" RefType="out" />
<Parameter Name="path" Type="Gtk.TreePath&amp;" RefType="out" />
</Parameters>
<Docs>
<summary>Gets row information from a Drag Selection.</summary>
<param name="selection_data">a <see cref="T:Gtk.SelectionData" /></param>
<param name="tree_model">a <see cref="T:Gtk.TreeModel" /></param>
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
<returns>a <see cref="T:System.Boolean" /></returns>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -128,10 +128,9 @@
</Parameters>
<Docs>
<summary>Sets which column is to be used to sort the data in the tree.</summary>
<param name="sort_column_id">A <see cref="T:System.Int32"/>, the sort column index.</param>
<param name="order">A <see cref="T:Gtk.SortType"/>, the kind of sort to use</param>
<remarks/>
<param name="sort_column_id">A <see cref="T:System.Int32" />, the sort column index.</param>
<param name="order">A <see cref="T:Gtk.SortType" />, the kind of sort to use</param>
<remarks />
</Docs>
</Member>
<Member MemberName="SetSortFunc">
@ -148,11 +147,11 @@
</Parameters>
<Docs>
<summary>Sets a function that should be used to be sort a particular column.</summary>
<param name="sort_column_id">A <see cref="System.Int32"/>, the index of the column to be sorted</param>
<param name="sort_func">A <see cref="TGtk.TreeIterCompareFunc"/>, the function to use for sorting</param>
<param name="user_data">An <see cref="T:IntPtr"/>, pointer to the user data, or <see langword="null"/></param>
<param name="destroy">A <see cref="Gtk.DestroyNotify"/> to be called when user data is destroyed, or <see langword="null"/>.</param>
<remarks>This method is meant to be used together with <see cref="T:Gtk.TreeModelSort.ChangeSortColumn"/>.(FIXME: explain the user data parameter.)</remarks>
<param name="sort_column_id">A <see cref="System.Int32" />, the index of the column to be sorted</param>
<param name="sort_func">A <see cref="TGtk.TreeIterCompareFunc" />, the function to use for sorting</param>
<param name="user_data">An <see cref="T:IntPtr" />, pointer to the user data, or <see langword="null" /></param>
<param name="destroy">A <see cref="Gtk.DestroyNotify" /> to be called when user data is destroyed, or <see langword="null" />.</param>
<remarks>This method is meant to be used together with <see cref="T:Gtk.TreeModelSort.ChangeSortColumn" />.(FIXME: explain the user data parameter.)</remarks>
</Docs>
</Member>
<Member MemberName="SetDefaultSortFunc">
@ -167,11 +166,11 @@
<Parameter Name="destroy" Type="Gtk.DestroyNotify" />
</Parameters>
<Docs>
<summary>Sets a function that should be used to be sort columns by default if not otherwise specified by <see cref="T:Gtk.TreeModelSort.SetSortFunc"/>.</summary>
<param name="sort_func">A <see cref="TGtk.TreeIterCompareFunc"/>, the function to use for sorting</param>
<param name="user_data">An <see cref="T:IntPtr"/>, pointer to the user data, or <see langword="null"/></param>
<param name="destroy">A <see cref="Gtk.DestroyNotify"/> to be called when user data is destroyed, or <see langword="null"/>.</param>
<remarks>This method is meant to be used together with <see cref="T:Gtk.TreeModelSort.ChangeSortColumn"/>.(FIXME: explain the user data parameter.)</remarks>
<summary>Sets a function that should be used to be sort columns by default if not otherwise specified by <see cref="T:Gtk.TreeModelSort.SetSortFunc" />.</summary>
<param name="sort_func">A <see cref="TGtk.TreeIterCompareFunc" />, the function to use for sorting</param>
<param name="user_data">An <see cref="T:IntPtr" />, pointer to the user data, or <see langword="null" /></param>
<param name="destroy">A <see cref="Gtk.DestroyNotify" /> to be called when user data is destroyed, or <see langword="null" />.</param>
<remarks>This method is meant to be used together with <see cref="T:Gtk.TreeModelSort.ChangeSortColumn" />.(FIXME: explain the user data parameter.)</remarks>
</Docs>
</Member>
<Member MemberName="RowDropPossible">
@ -185,11 +184,11 @@
<Parameter Name="selection_data" Type="Gtk.SelectionData" />
</Parameters>
<Docs>
<summary>Tests whether <paramref name="selection_data"/> can be dropped on <paramref name="dest_path"/>. </summary>
<summary>Tests whether <paramref name="selection_data" /> can be dropped on <paramref name="dest_path" />. </summary>
<param name="dest_path">a <see cref="T:Gtk.TreePath" />, potential drop destination</param>
<param name="selection_data">a <see cref="T:Gtk.SelectionData" />, potential data to be dropped.</param>
<returns>a <see cref="T:System.Boolean" />, true if drop is allowed</returns>
<remarks/>
<remarks />
</Docs>
</Member>
<Member MemberName="DragDataReceived">
@ -205,7 +204,7 @@
<Docs>
<summary>Drags data received into this <see cref="T:Gtk.TreeStore" /> object.</summary>
<param name="dest">A <see cref="T:Gtk.TreePath" />, the destination path of the drag</param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData"/>, the data that was dragged</param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData" />, the data that was dragged</param>
<returns>A boolean, true if the data was successfully received.</returns>
<remarks />
</Docs>
@ -224,9 +223,9 @@
<summary>Method used when this TreeStore is part of a source widget
for a drag-and-drop operation; gets the data that was dragged from the
associated widget.</summary>
<param name="path">a <see cref="T:Gtk.TreePath"/></param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData"/></param>
<returns>A <see cref="T:System.Boolean"/>, true if the operation succeeded.</returns>
<param name="path">a <see cref="T:Gtk.TreePath" /></param>
<param name="selection_data">A <see cref="T:Gtk.SelectionData" /></param>
<returns>A <see cref="T:System.Boolean" />, true if the operation succeeded.</returns>
<remarks />
</Docs>
</Member>
@ -257,8 +256,8 @@
</Parameters>
<Docs>
<summary>When this TreeStore is the data source for a drag operation and the drag operation is a move, this method runs to delete the data after the data has been received by the target widget.</summary>
<param name="path">A <see cref="T:Gtk.TreePath"/>, the path of the data to delete.</param>
<returns>A <see cref="T:System.Boolean"/>, true if the operation succeeds.</returns>
<param name="path">A <see cref="T:Gtk.TreePath" />, the path of the data to delete.</param>
<returns>A <see cref="T:System.Boolean" />, true if the operation succeeds.</returns>
<remarks />
</Docs>
</Member>
@ -938,10 +937,10 @@
<Parameter Name="position" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Move the row pointed to by <paramref name="iter"/> to the
position after <paramref name="position"/>. If
<paramref name="position"/> is <see langword="null"/>,
<paramref name="iter"/> will be moved to point to the start
<summary>Move the row pointed to by <paramref name="iter" /> to the
position after <paramref name="position" />. If
<paramref name="position" /> is <see langword="null" />,
<paramref name="iter" /> will be moved to point to the start
of the list.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
@ -977,10 +976,10 @@
<Parameter Name="position" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Move the row pointed to by <paramref name="iter"/> to the
position before <paramref name="position"/>. If
<paramref name="position"/> is <see langword="null"/>,
<paramref name="iter"/> will be moved to point to the end
<summary>Move the row pointed to by <paramref name="iter" /> to the
position before <paramref name="position" />. If
<paramref name="position" /> is <see langword="null" />,
<paramref name="iter" /> will be moved to point to the end
of the list.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
@ -998,9 +997,9 @@
<Parameter Name="iter" Type="Gtk.TreeIter" />
</Parameters>
<Docs>
<summary>Test whether <paramref name="iter"/> is valid for this TreeStore.</summary>
<summary>Test whether <paramref name="iter" /> is valid for this TreeStore.</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="iter"/> is valid.</returns>
<returns>a <see cref="T:System.Boolean" />, true if <paramref name="iter" /> is valid.</returns>
<remarks>WARNING: this method is slow and is only intended for
debugging/testing purposes.</remarks>
</Docs>
@ -1206,7 +1205,7 @@ store = new TreeStore (typeof (int), typeof (string));
<summary>Find out whether this TreeStore has a default sort function.</summary>
<returns>a <see cref="T:System.Boolean" />, true if there is a default
sort function.</returns>
<remarks>To set a default sort function, use <see cref="M:Gtk.TreeStore.SetDefaultSortFunc"/>.</remarks>
<remarks>To set a default sort function, use <see cref="M:Gtk.TreeStore.SetDefaultSortFunc" />.</remarks>
</Docs>
</Member>
<Member MemberName="GType">
@ -1235,10 +1234,10 @@ store = new TreeStore (typeof (int), typeof (string));
<summary>Sets what types go in each column of a ListStore.</summary>
<param name="types">a <see cref="T:GLib.GType[]" /></param>
<remarks> This function is meant primarily for #GObjects that inherit
from <see cref="T:Gtk.ListStore"/> and should only be used when
constructing a new <see cref="T:Gtk.ListStore"/>. It will not
from <see cref="T:Gtk.ListStore" /> and should only be used when
constructing a new <see cref="T:Gtk.ListStore" />. It will not
function after a row has been added or after a method on the
<see cref="T:Gtk.TreeModel"/> interface has been called.
<see cref="T:Gtk.TreeModel" /> interface has been called.
</remarks>
</Docs>
</Member>
@ -1549,7 +1548,7 @@ store = new TreeStore (typeof (int), typeof (string));
</Parameters>
<Docs>
<summary>Gets the value of row <paramref name="iter" /> of column
<paramref name="column" /> and puts it in <paramref name="value"/>.
<paramref name="column" /> and puts it in <paramref name="value" />.
</summary>
<param name="iter">a <see cref="T:Gtk.TreeIter" /></param>
<param name="column">a <see cref="T:System.Int32" /></param>
@ -1573,5 +1572,16 @@ store = new TreeStore (typeof (int), typeof (string));
<remarks>If there is no next iter, <see langword="false" /> is returned and iter is set to be invalid.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected TreeStore ();" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>To be added</summary>
<returns>a <see cref="T:Gtk.TreeStore" /></returns>
<remarks>To be added</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View file

@ -403,25 +403,6 @@
</remarks>
</Docs>
</Member>
<Member MemberName="GetChildRequisition">
<MemberSignature Language="C#" Value="public void GetChildRequisition (Gtk.Requisition requisition);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="requisition" Type="Gtk.Requisition" />
</Parameters>
<Docs>
<summary>Obtains <paramref name="widget" />-&gt;<paramref name="requisition" />.</summary>
<param name="requisition">A <see cref="T:Gtk.Requisition" /> to be filled in.</param>
<remarks>
<para>
Obtains <paramref name="widget" />-&gt;<paramref name="requisition" />, unless someone has forced a particular geometry, in which case it returns that geometry instead of the widget's <paramref name="requisition" />. This method differs from <see cref="M:Gtk.Widget.SizeRequest" /> in that it retrieves the last size request value from <paramref name="widget" />-&gt;<paramref name="requisition" />, while the <see cref="M:Gtk.Widget.SizeRequest" /> method computes the size request and fill in <paramref name="widget" />-&gt;<paramref name="requisition" />, and only then returns <paramref name="widget" />-&gt;<paramref name="requisition" />.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="GrabFocus">
<MemberSignature Language="C#" Value="public void GrabFocus ();" />
<MemberType>Method</MemberType>
@ -3970,4 +3951,20 @@ Widgets are required to honor the size allocation they receive; a size request i
<param name="vadj">a vertical plane <see cref="T:Gtk.Adjustment" /></param>
<remarks>Override this method in a subclass to support scrolling of the widget within a viewport smaller than the widget's size.</remarks>
</Docs>
</Member><Member MemberName="ChildRequisition">
<MemberSignature Language="C#" Value="public Gtk.Requisition ChildRequisition { get; };" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>Gtk.Requisition</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Obtains the widget's requisition.</summary>
<returns>a <see cref="T:Gtk.Requisition" /></returns>
<remarks>
<para>
Obtains requisition, unless someone has forced a particular geometry, in which case it returns that geometry instead of the widget's requisition. This method differs from <see cref="M:Gtk.Widget.SizeRequest" /> in that it retrieves the last size request value, while the <see cref="M:Gtk.Widget.SizeRequest" /> method recomputes the size request and fills in the requisition, and then returns the recomputed value.
</para>
</remarks>
</Docs>
</Member></Members></Type>

View file

@ -40,6 +40,8 @@
<attr path="/api/namespace/class[@cname='GtkStock_']" name="name">StockManager</attr>
<attr path="/api/namespace/class[@cname='GtkStock_']/method[@name='ListIds']" name="hidden">1</attr>
<attr path="/api/namespace/class[@cname='GtkStock_']/method[@name='Lookup']/*/*[@name='item']" name="pass_as">ref</attr>
<attr path="/api/namespace/class[@cname='GtkTree_']/method[@name='GetRowDragData']/*/*[@name='tree_model']" name="pass_as">out</attr>
<attr path="/api/namespace/class[@cname='GtkTree_']/method[@name='GetRowDragData']/*/*[@name='path']" name="pass_as">out</attr>
<attr path="/api/namespace/enum[@cname='GtkDebugFlag']" name="hidden">1</attr>
<attr path="/api/namespace/enum[@cname='GtkObjectFlags']" name="hidden">1</attr>
<attr path="/api/namespace/enum[@cname='GtkPathPriorityType']" name="hidden">1</attr>
@ -55,6 +57,7 @@
<attr path="/api/namespace/interface[@cname='GtkEditable']/signal[@name='DeleteText']" name="name">TextDeleted</attr>
<attr path="/api/namespace/interface[@cname='GtkEditable']/signal[@name='InsertText']" name="name">TextInserted</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='GetIterFirst']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='Get']" name="hidden">1</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='GetIterFromString']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='GetIter']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/interface[@cname='GtkTreeModel']/method[@name='GetValue']/*/*[@name='value']" name="pass_as">ref</attr>
@ -146,6 +149,7 @@
<attr path="/api/namespace/object[@cname='GtkLayout']/method[@name='SetHadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkLayout']/method[@name='SetVadjustment']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkLayout']/signal[@name='SetScrollAdjustments']" name="name">ScrollAdjustmentsSet</attr>
<attr path="/api/namespace/object[@cname='GtkListStore']/constructor[@cname='gtk_list_store_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkListStore']/constructor[@cname='gtk_list_store_newv']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='Append']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkListStore']/method[@name='InsertAfter']/*/*[@name='iter']" name="pass_as">out</attr>
@ -172,6 +176,7 @@
<attr path="/api/namespace/object[@cname='GtkMenu']/method[@name='SetScreen']" name="new_flag">1</attr>
<attr path="/api/namespace/object[@cname='GtkMenuShell']/signal[@name='Deactivate']" name="name">Deactivated</attr>
<attr path="/api/namespace/object[@cname='GtkMessageDialog']/constructor[@cname='gtk_message_dialog_new']/*/*[@type='GtkWindow*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkObject']/constructor[@cname='gtk_object_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkObject']/signal[@name='Destroy']" name="name">Destroyed</attr>
<attr path="/api/namespace/object[@cname='GtkPixmap']/constructor[@cname='gtk_pixmap_new']/*/*[@type='GdkBitmap*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkPixmap']/method[@name='Set']/*/*[@type='GdkBitmap*']" name="null_ok">1</attr>
@ -250,6 +255,7 @@
<attr path="/api/namespace/object[@cname='GtkTreeModelSort']/method[@name='ConvertIterToChildIter']/*/*[@name='child_iter']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelected']/*/*" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTreeSelection']/method[@name='GetSelectedRows']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/constructor[@cname='gtk_tree_store_newv']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/method[@name='Append']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/method[@name='InsertAfter']/*/*[@name='iter']" name="pass_as">out</attr>
@ -258,6 +264,7 @@
<attr path="/api/namespace/object[@cname='GtkTreeStore']/method[@name='Prepend']/*/*[@name='iter']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/method[@name='Remove']/*/*[@name='iter']" name="pass_as">ref</attr>
<attr path="/api/namespace/object[@cname='GtkTreeStore']/method[@name='SetColumnTypes']/*/*[@name='types']" name="array">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeViewColumn']/constructor[@cname='gtk_tree_view_column_new_with_attributes']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeViewColumn']/method[@name='Clicked']" name="name">Click</attr>
<attr path="/api/namespace/object[@cname='GtkTreeViewColumn']/method[@name='GetCellRenderers']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkTreeView']/constructor[@cname='gtk_tree_view_new_with_model']/*/*[@type='GtkTreeModel*']" name="null_ok">1</attr>
@ -287,9 +294,11 @@
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkVScale']/constructor[@cname='gtk_vscale_new_with_range']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkVScrollbar']/constructor[@cname='gtk_vscrollbar_new']/*/*[@type='GtkAdjustment*']" name="null_ok">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/constructor[@cname='gtk_widget_new']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ClassPath']/*/*[@type='gchar**']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Destroyed']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Event']" name="name">ProcessEvent</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetChildRequisition']/*/*[@name='requisition']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetColormap']" name="needs_ref">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetDefaultColormap']" name="needs_ref">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='GetDefaultStyle']" name="needs_ref">1</attr>

View file

@ -24,6 +24,9 @@
[DllImport("gtksharpglue")]
private static extern bool gtksharp_object_is_floating (IntPtr raw);
[DllImport("gtksharpglue")]
private static extern bool gtksharp_object_set_floating (IntPtr raw, bool val);
[DllImport("libgobject-2.0-0.dll")]
private static extern void g_object_ref (IntPtr raw);
@ -43,3 +46,13 @@
// System.Diagnostics.Debug.WriteLine ("Gtk.Object:set_Raw: object type is: " + (this as GLib.Object).GType.Name + " refcount now: " + RefCount + " needs_ref: " + needs_ref);
}
}
public bool IsFloating {
get {
return gtksharp_object_is_floating (Handle);
}
set {
gtksharp_object_set_floating (Handle, value);
}
}

View file

@ -25,6 +25,7 @@
/* Forward declarations */
void gtksharp_object_unref_if_floating (GObject *obj);
gboolean gtksharp_object_is_floating (GObject *obj);
void gtksharp_object_set_floating (GtkObject *obj, gboolean val);
/* */
void
@ -40,3 +41,12 @@ gtksharp_object_is_floating (GObject *obj)
return GTK_OBJECT_FLOATING (obj);
}
void
gtksharp_object_set_floating (GtkObject *obj, gboolean val)
{
if (val == TRUE)
GTK_OBJECT_SET_FLAGS (obj, GTK_FLOATING);
else
gtk_object_sink (obj);
}