mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-22 18:01:00 +00:00
2003-10-10 Mike Kestner <mkestner@ximian.com>
* gtk/gtk-api.xml : regenerated * gtk/FileSelection.custom : implement the Selections property by hand. [Fixes #49254] * sources/Gtk.metadata : hide FileSelection.GetSelections. svn path=/trunk/gtk-sharp/; revision=18866
This commit is contained in:
parent
3f0273bece
commit
8fd17765c1
|
@ -1,3 +1,10 @@
|
|||
2003-10-10 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/gtk-api.xml : regenerated
|
||||
* gtk/FileSelection.custom : implement the Selections property by
|
||||
hand. [Fixes #49254]
|
||||
* sources/Gtk.metadata : hide FileSelection.GetSelections.
|
||||
|
||||
2003-10-10 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* */makefile.win32 : remove api dir from build and fix clean target
|
||||
|
|
|
@ -124,3 +124,29 @@ static extern IntPtr gtksharp_file_selection_get_action_area (IntPtr i);
|
|||
public new Gtk.HButtonBox ActionArea {
|
||||
get { return GLib.Object.GetObject (gtksharp_file_selection_get_action_area (this.Handle), false) as Gtk.HButtonBox; }
|
||||
}
|
||||
|
||||
[DllImport("libgtk-win32-2.0-0.dll")]
|
||||
static extern IntPtr gtk_file_selection_get_selections (IntPtr handle);
|
||||
|
||||
[DllImport("libglib-2.0-0.dll")]
|
||||
static extern void g_strfreev (IntPtr handle);
|
||||
|
||||
public string[] Selections {
|
||||
get {
|
||||
IntPtr strv = gtk_file_selection_get_selections (Handle);
|
||||
|
||||
System.Collections.ArrayList result = new System.Collections.ArrayList ();
|
||||
|
||||
int i = 0;
|
||||
IntPtr strptr = Marshal.ReadIntPtr (strv, IntPtr.Size * i++);
|
||||
while (strptr != IntPtr.Zero) {
|
||||
result.Add (Marshal.PtrToStringAnsi (strptr));
|
||||
strptr = Marshal.ReadIntPtr (strv, IntPtr.Size * i++);
|
||||
}
|
||||
|
||||
g_strfreev (strv);
|
||||
|
||||
return result.ToArray (typeof (string)) as string[];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -3055,8 +3055,8 @@
|
|||
<method name="GetSelectMultiple" cname="gtk_file_selection_get_select_multiple">
|
||||
<return-type type="gboolean"/>
|
||||
</method>
|
||||
<method name="GetSelections" cname="gtk_file_selection_get_selections">
|
||||
<return-type type="gchar**" array="1"/>
|
||||
<method name="GetSelections" cname="gtk_file_selection_get_selections" hidden="1">
|
||||
<return-type type="gchar**"/>
|
||||
</method>
|
||||
<method name="GetType" cname="gtk_file_selection_get_type" shared="true">
|
||||
<return-type type="GType"/>
|
||||
|
|
|
@ -453,8 +453,8 @@
|
|||
<method>GetSelections</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="return">
|
||||
<name>array</name>
|
||||
<attribute target="method">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
|
|
Loading…
Reference in a new issue