2005-01-31 Mike Kestner <mkestner@novell.com>

* gtk/Dialog.custom : null check a parent arg.  [Fixes #77400]

svn path=/trunk/gtk-sharp/; revision=56339
This commit is contained in:
Mike Kestner 2006-01-31 16:02:18 +00:00
parent 5f1c7a56dd
commit f47b4880f1
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2005-01-31 Mike Kestner <mkestner@novell.com>
* gtk/Dialog.custom : null check a parent arg. [Fixes #77400]
2005-01-22 Mike Kestner <mkestner@novell.com>
* configure.in.in : work around broken vte that doesn't

View File

@ -43,7 +43,7 @@ public Dialog (string title, Gtk.Window parent, Gtk.DialogFlags flags, params ob
HasSeparator = false;
} else {
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (title);
Raw = gtk_dialog_new_with_buttons (native, parent.Handle, (int) flags, IntPtr.Zero);
Raw = gtk_dialog_new_with_buttons (native, parent == null ? IntPtr.Zero : parent.Handle, (int) flags, IntPtr.Zero);
GLib.Marshaller.Free (native);
}