2004-05-11 Mike Kestner <mkestner@ximian.com>
* gconf/GConf/NotifyWrapper.cs : add some defensive null checking. [fixes #57902] svn path=/trunk/gtk-sharp/; revision=27115
This commit is contained in:
parent
4214989dff
commit
b071a8c507
2 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,9 @@
|
|||
2004-05-10 Mike Kestner <mkestner@ximian.com>
|
||||
2004-05-11 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gconf/GConf/NotifyWrapper.cs : add some defensive null checking.
|
||||
[fixes #57902]
|
||||
|
||||
2004-05-11 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* gtk/SelectionData.custom : add a Set overload without length param.
|
||||
|
||||
|
|
|
@ -15,6 +15,10 @@ namespace GConf
|
|||
{
|
||||
Client client = new Client (client_ptr);
|
||||
_Entry entry = new _Entry (entry_ptr);
|
||||
if (entry.ValuePtr == IntPtr.Zero) {
|
||||
notify (client, new NotifyEventArgs (entry.Key, null));
|
||||
return;
|
||||
}
|
||||
Value val = new Value (entry.ValuePtr);
|
||||
val.Managed = false;
|
||||
notify (client, new NotifyEventArgs (entry.Key, val.Get ()));
|
||||
|
|
Loading…
Reference in a new issue