From 8d5882f49b8607aac18a5f2ab6d99cd1ac5df9a8 Mon Sep 17 00:00:00 2001 From: Todd Berman Date: Sat, 30 Oct 2004 02:02:09 +0000 Subject: [PATCH] 2004-10-29 Todd Berman * gtk/FileChooserDialog.custom: Allow a null parent. svn path=/trunk/gtk-sharp/; revision=35491 --- ChangeLog | 4 ++++ gtk/FileChooserDialog.custom | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1fa6754b0..0eafd4721 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ * sources/gtk-sharp-sources.xml: Invalid XML due to unremoved --> closing comment tag. +2004-10-29 Todd Berman + + * gtk/FileChooserDialog.custom: Allow a null parent. + 2004-10-29 Todd Berman * gconf/GConf/gconf-sharp-2.0.pc.in: s/PACKAGE/PACKAGE_VERSION/ to fix diff --git a/gtk/FileChooserDialog.custom b/gtk/FileChooserDialog.custom index 59fe31b2c..aaa438975 100644 --- a/gtk/FileChooserDialog.custom +++ b/gtk/FileChooserDialog.custom @@ -3,7 +3,7 @@ public FileChooserDialog (string title, Window parent, FileChooserAction action) { - Raw = gtk_file_chooser_dialog_new (title, parent.Handle, (int)action, IntPtr.Zero); + Raw = gtk_file_chooser_dialog_new (title, parent == null ? IntPtr.Zero : parent.Handle, (int)action, IntPtr.Zero); } [DllImport("libgtk-win32-2.0-0.dll")] @@ -11,5 +11,5 @@ public FileChooserDialog (string title, Window parent, FileChooserAction action, string backend) { - Raw = gtk_file_chooser_dialog_new_with_backend (title, parent.Handle, (int)action, backend, IntPtr.Zero); + Raw = gtk_file_chooser_dialog_new_with_backend (title, parent == null ? IntPtr.Zero : parent.Handle, (int)action, backend, IntPtr.Zero); }