2004-10-29 Todd Berman <tberman@off.net>

* gtk/FileChooserDialog.custom: Allow a null parent.

svn path=/trunk/gtk-sharp/; revision=35491
This commit is contained in:
Todd Berman 2004-10-30 02:02:09 +00:00
parent bd247f27ed
commit 8d5882f49b
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,10 @@
* sources/gtk-sharp-sources.xml: Invalid XML due to unremoved -->
closing comment tag.
2004-10-29 Todd Berman <tberman@off.net>
* gtk/FileChooserDialog.custom: Allow a null parent.
2004-10-29 Todd Berman <tberman@off.net>
* gconf/GConf/gconf-sharp-2.0.pc.in: s/PACKAGE/PACKAGE_VERSION/ to fix

View File

@ -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);
}