mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 08:23:19 +02:00
2004-01-27 Mike Kestner <mkestner@ximian.com>
* glue/selectiondata.c : expose data field. * gtk/SelectionData.custom : add Data property. [Fixes #53397] svn path=/trunk/gtk-sharp/; revision=22563
This commit is contained in:
parent
0dac8ebd48
commit
37aad1b278
@ -1,3 +1,9 @@
|
||||
2004-01-27 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* glue/selectiondata.c : expose data field.
|
||||
* gtk/SelectionData.custom : add Data property.
|
||||
[Fixes #53397]
|
||||
|
||||
2004-01-27 John Luke <jluke@cfl.rr.com>
|
||||
|
||||
* gtk/AccelKey.custom: add convenience ctor
|
||||
|
@ -10,6 +10,13 @@
|
||||
|
||||
gint gtksharp_gtk_selection_data_get_length (GtkSelectionData *data);
|
||||
gint gtksharp_gtk_selection_data_get_format (GtkSelectionData *data);
|
||||
guchar *gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data);
|
||||
|
||||
guchar *
|
||||
gtksharp_gtk_selection_data_get_data_pointer (GtkSelectionData *data)
|
||||
{
|
||||
return data->data;
|
||||
}
|
||||
|
||||
gint
|
||||
gtksharp_gtk_selection_data_get_length (GtkSelectionData *data)
|
||||
|
@ -31,3 +31,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("gtksharpglue")]
|
||||
private static extern IntPtr gtksharp_selection_data_get_data_pointer (IntPtr selection_data);
|
||||
|
||||
public byte[] Data {
|
||||
get {
|
||||
IntPtr data_ptr = gtksharp_selection_data_get_data_pointer (Handle);
|
||||
byte[] result = new byte [Length];
|
||||
Marshal.Copy (data_ptr, result, 0, Length);
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user