aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/MozillaPrivate.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-10-31 21:13:06 +0800
committerChristian Persch <chpe@src.gnome.org>2003-10-31 21:13:06 +0800
commit67430590bb00c7265876fc25e6339c3fa33ca1de (patch)
tree2a347decf0e3df9a52c520e2ead1daf2f42ddac0 /embed/mozilla/MozillaPrivate.cpp
parent5909ee59ade218fcaab27cc4446e5ab384d90679 (diff)
downloadgsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar.gz
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar.bz2
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar.lz
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar.xz
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.tar.zst
gsoc2013-epiphany-67430590bb00c7265876fc25e6339c3fa33ca1de.zip
Correctly set the embed for the print dialogue.
2003-10-31 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/MozillaPrivate.cpp: * embed/mozilla/MozillaPrivate.h: * embed/mozilla/PrintingPromptService.cpp: Correctly set the embed for the print dialogue.
Diffstat (limited to 'embed/mozilla/MozillaPrivate.cpp')
-rw-r--r--embed/mozilla/MozillaPrivate.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/embed/mozilla/MozillaPrivate.cpp b/embed/mozilla/MozillaPrivate.cpp
index 48d29fc10..1950f0e6c 100644
--- a/embed/mozilla/MozillaPrivate.cpp
+++ b/embed/mozilla/MozillaPrivate.cpp
@@ -6,7 +6,10 @@
#include <nsIWebBrowserChrome.h>
#include <gtkmozembed.h>
-GtkWidget *MozillaFindGtkParent (nsIDOMWindow *aDOMWindow)
+#include "ephy-embed.h"
+#include "mozilla-embed.h"
+
+GtkWidget *MozillaFindEmbed (nsIDOMWindow *aDOMWindow)
{
nsresult result;
@@ -34,7 +37,15 @@ GtkWidget *MozillaFindGtkParent (nsIDOMWindow *aDOMWindow)
result = window->GetSiteWindow ((void **)&mozembed);
if (NS_FAILED(result)) return nsnull;
- return gtk_widget_get_toplevel (GTK_WIDGET(mozembed));
+ return mozembed;
+}
+
+GtkWidget *MozillaFindGtkParent (nsIDOMWindow *aDOMWindow)
+{
+ GtkWidget *embed = MozillaFindEmbed (aDOMWindow);
+ if (!embed) return nsnull;
+
+ return gtk_widget_get_toplevel (GTK_WIDGET (embed));
}
#define MM_TO_INCH(x) (((double) x) / 25.4)