diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/FilePicker.cpp | 9 |
2 files changed, 11 insertions, 4 deletions
@@ -1,5 +1,11 @@ 2003-10-30 Marco Pesenti Gritti <marco@gnome.org> + * embed/mozilla/FilePicker.cpp: + + Do not require a parent window + +2003-10-30 Marco Pesenti Gritti <marco@gnome.org> + * lib/egg/egg-editable-toolbar.c: (drag_data_received_cb): Fix creation of special drag types items diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp index 74b3e7bec..7c761e980 100644 --- a/embed/mozilla/FilePicker.cpp +++ b/embed/mozilla/FilePicker.cpp @@ -89,11 +89,12 @@ GFilePicker::~GFilePicker() NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *title, PRInt16 mode) { nsCOMPtr<nsIDOMWindow> dw = do_QueryInterface (parent); - if (!dw) return NS_ERROR_FAILURE; - - GtkWidget *pwin = MozillaFindGtkParent (dw); + if (dw) + { + GtkWidget *pwin = MozillaFindGtkParent (dw); - gtk_window_set_transient_for (GTK_WINDOW (mDialog), GTK_WINDOW (pwin)); + gtk_window_set_transient_for (GTK_WINDOW (mDialog), GTK_WINDOW (pwin)); + } gtk_window_set_title (GTK_WINDOW (mDialog), NS_ConvertUCS2toUTF8 (title).get()); |