aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2004-04-14 03:32:45 +0800
committerChristian Persch <chpe@src.gnome.org>2004-04-14 03:32:45 +0800
commitc0852b5c82595400cad4014fca32d188baf9a9e8 (patch)
treee85065ca4ce12bc0a30c93583aca6967caecab2e /embed
parent4a908200fdd1064924da73f61a64f61d628dae96 (diff)
downloadgsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar.gz
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar.bz2
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar.lz
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar.xz
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.tar.zst
gsoc2013-epiphany-c0852b5c82595400cad4014fca32d188baf9a9e8.zip
Merging from HEAD
Diffstat (limited to 'embed')
-rw-r--r--embed/mozilla/FilePicker.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/embed/mozilla/FilePicker.cpp b/embed/mozilla/FilePicker.cpp
index 42d4b3b33..3443d17e6 100644
--- a/embed/mozilla/FilePicker.cpp
+++ b/embed/mozilla/FilePicker.cpp
@@ -90,10 +90,9 @@ NS_IMETHODIMP GFilePicker::Init(nsIDOMWindowInternal *parent, const PRUnichar *t
{
LOG ("GFilePicker::Init")
- nsCOMPtr<nsIDOMWindow> dw = do_QueryInterface (parent);
- if (dw)
+ if (parent)
{
- GtkWidget *pwin = MozillaFindGtkParent (dw);
+ GtkWidget *pwin = MozillaFindGtkParent (parent);
gtk_window_set_transient_for (GTK_WINDOW (mDialog), GTK_WINDOW (pwin));
}