diff --git a/ChangeLog b/ChangeLog index 74b7d4f6f..16c1229b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-11 Mike Kestner + + * gtk/Widget.custom : manual ListMnemonicLabels implementation to + return a Widget[]. [Fixes #74786] + 2005-05-11 Mike Kestner * generator/ObjectGen.cs : default empty assembly names for the diff --git a/doc/en/Gtk/Widget.xml b/doc/en/Gtk/Widget.xml index b1e267e9b..09a97b898 100644 --- a/doc/en/Gtk/Widget.xml +++ b/doc/en/Gtk/Widget.xml @@ -1,4 +1,4 @@ - + @@ -4103,20 +4103,21 @@ Widgets are required to honor the size allocation they receive; a size request i This function works like , except that the widget is not invalidated. - - + + + Method - GLib.List + Gtk.Widget[] - Returns a newly allocated list of the widgets, normally labels, for which this widget is a the target of a mnemonic - a - - + Returns a list of the widgets, normally Labels, for which this widget is a the target of a mnemonic + a + - + + Method @@ -4208,4 +4209,5 @@ Widgets are required to honor the size allocation they receive; a size request i a Override this method in a subclass to provide a default handler for the event. - \ No newline at end of file + + diff --git a/gtk/Gtk.metadata b/gtk/Gtk.metadata index 35e135681..680831038 100644 --- a/gtk/Gtk.metadata +++ b/gtk/Gtk.metadata @@ -440,6 +440,7 @@ out GetIsFocus 1 + 1 out 1 GdkEventMask diff --git a/gtk/Widget.custom b/gtk/Widget.custom index a24b4040a..ba4c0eb7f 100644 --- a/gtk/Widget.custom +++ b/gtk/Widget.custom @@ -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; +} +