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
2 changed files with 9 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* glue/selectiondata.c : expose data field.
|
||||
|
|
|
@ -24,7 +24,10 @@
|
|||
|
||||
public string Text {
|
||||
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 {
|
||||
gtk_selection_data_set_text (Handle, value, value.Length);
|
||||
|
|
Loading…
Reference in a new issue