diff --git a/ChangeLog b/ChangeLog index 5a8a1134e..2af07c40a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-01-31 Mike Kestner + + * gtk/Dialog.custom : null check a parent arg. [Fixes #77400] + 2005-01-22 Mike Kestner * configure.in.in : work around broken vte that doesn't diff --git a/gtk/Dialog.custom b/gtk/Dialog.custom index 2b20389fa..dacf353f7 100644 --- a/gtk/Dialog.custom +++ b/gtk/Dialog.custom @@ -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); }