aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-31 00:38:53 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-31 00:38:53 +0800
commita14bb2d6611954d5d91cbef853a01af989dd9804 (patch)
tree47829acbacfce24c53771ab4665d4dd78355ef4a /embed
parentbeb24485f79f1131be3d5fa006447d57e5be6873 (diff)
downloadgsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar.gz
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar.bz2
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar.lz
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar.xz
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.tar.zst
gsoc2013-epiphany-a14bb2d6611954d5d91cbef853a01af989dd9804.zip
Do not require a parent window
2003-10-30 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/FilePicker.cpp: Do not require a parent window
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/FilePicker.cpp9
1 files changed, 5 insertions, 4 deletions
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());