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>
* gtk/SelectionData.custom : guard against null in get_Text. [Fixes #52713] svn path=/trunk/gtk-sharp/; revision=22566
This commit is contained in:
parent
37aad1b278
commit
80257d2b9a
@ -1,3 +1,8 @@
|
|||||||
|
2004-01-27 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
|
* gtk/SelectionData.custom : guard against null in get_Text.
|
||||||
|
[Fixes #52713]
|
||||||
|
|
||||||
2004-01-27 Mike Kestner <mkestner@ximian.com>
|
2004-01-27 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* glue/selectiondata.c : expose data field.
|
* glue/selectiondata.c : expose data field.
|
||||||
|
@ -24,7 +24,10 @@
|
|||||||
|
|
||||||
public string Text {
|
public string Text {
|
||||||
get {
|
get {
|
||||||
return GLibSharp.Marshaller.PtrToStringGFree (gtk_selection_data_get_text (Handle));
|
IntPtr text = gtk_selection_data_get_text (Handle);
|
||||||
|
if (text == IntPtr.Zero)
|
||||||
|
return null;
|
||||||
|
return GLibSharp.Marshaller.PtrToStringGFree (text);
|
||||||
}
|
}
|
||||||
set {
|
set {
|
||||||
gtk_selection_data_set_text (Handle, value, value.Length);
|
gtk_selection_data_set_text (Handle, value, value.Length);
|
||||||
|
Loading…
Reference in New Issue
Block a user