2005-05-11 Mike Kestner <mkestner@novell.com>

* gtk/Widget.custom : manual ListMnemonicLabels implementation to
	return a Widget[].  [Fixes #74786]

svn path=/trunk/gtk-sharp/; revision=44404
This commit is contained in:
Mike Kestner 2005-05-11 18:04:52 +00:00
parent 8c8f6b1448
commit 8ccfd329dc
4 changed files with 34 additions and 10 deletions

View file

@ -1,3 +1,8 @@
2005-05-11 Mike Kestner <mkestner@novell.com>
* gtk/Widget.custom : manual ListMnemonicLabels implementation to
return a Widget[]. [Fixes #74786]
2005-05-11 Mike Kestner <mkestner@novell.com>
* generator/ObjectGen.cs : default empty assembly names for the

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Type Name="Widget" FullName="Gtk.Widget">
<TypeSignature Language="C#" Value="public class Widget : Gtk.Object, Implementor, IWrapper, IWrapper, IDisposable" Maintainer="Hector Gomez M" />
<AssemblyInfo>
@ -4103,20 +4103,21 @@ Widgets are required to honor the size allocation they receive; a size request i
<summary>This function works like <see cref="M:Gtk.Widget.QueueResize()" />, except that the widget is not invalidated.</summary>
<remarks />
</Docs>
</Member><Member MemberName="ListMnemonicLabels">
<MemberSignature Language="C#" Value="public GLib.List ListMnemonicLabels ();" />
</Member>
<Member MemberName="ListMnemonicLabels">
<MemberSignature Language="C#" Value="public Gtk.Widget[] ListMnemonicLabels ();" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>GLib.List</ReturnType>
<ReturnType>Gtk.Widget[]</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns a newly allocated list of the widgets, normally labels, for which this widget is a the target of a mnemonic</summary>
<returns>a <see cref="T:GLib.List" /></returns>
<remarks>
</remarks>
<summary>Returns a list of the widgets, normally Labels, for which this widget is a the target of a mnemonic</summary>
<returns>a <see cref="T:Gtk.Widget[]" /></returns>
<remarks />
</Docs>
</Member><Member MemberName="CanActivateAccel">
</Member>
<Member MemberName="CanActivateAccel">
<MemberSignature Language="C#" Value="public bool CanActivateAccel (uint signal_id);" />
<MemberType>Method</MemberType>
<ReturnValue>
@ -4208,4 +4209,5 @@ Widgets are required to honor the size allocation they receive; a size request i
<returns>a <see cref="T:System.Boolean" /></returns>
<remarks>Override this method in a subclass to provide a default handler for the <see cref="M:Gtk.Widget.WidgetEventAfter" /> event.</remarks>
</Docs>
</Member></Members></Type>
</Member>
</Members></Type>

View file

@ -440,6 +440,7 @@
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Intersect']/*/*[@name='intersection']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='IsFocus']" name="name">GetIsFocus</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ListAccelClosures']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='ListMnemonicLabels']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Path']/*/*[@type='gchar**']" name="pass_as">out</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='Ref']" name="hidden">1</attr>
<attr path="/api/namespace/object[@cname='GtkWidget']/method[@name='SetEvents']/*/*[@type='gint']" name="type">GdkEventMask</attr>

View file

@ -330,3 +330,19 @@ public object StyleGetProperty (string property_name) {
value.Dispose ();
return ret;
}
[DllImport("libgtk-win32-2.0-0.dll")]
static extern IntPtr gtk_widget_list_mnemonic_labels (IntPtr raw);
public Widget[] ListMnemonicLabels ()
{
IntPtr raw_ret = gtk_widget_list_mnemonic_labels (Handle);
if (raw_ret == IntPtr.Zero)
return new Widget [0];
GLib.List list = new GLib.List(raw_ret);
Widget[] result = new Widget [list.Count];
for (int i = 0; i < list.Count; i++)
result [i] = list [i] as Widget;
return result;
}