aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2007-09-14 04:35:11 +0800
committerChristian Persch <chpe@src.gnome.org>2007-09-14 04:35:11 +0800
commitaa53ef8dd2c8174a2428b2aa360c8dd0e045543e (patch)
treee1e6b10535fbbb674370f7685d0e2a4ce132743c
parentfd25a11c2326c54d1c9e538cd39911223a46134f (diff)
downloadgsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar.gz
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar.bz2
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar.lz
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar.xz
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.tar.zst
gsoc2013-epiphany-aa53ef8dd2c8174a2428b2aa360c8dd0e045543e.zip
Fix the build. We don't need to manually add the window to the window group,
since set_transient_for does that for us since gtk 2.10. svn path=/trunk/; revision=7430
-rw-r--r--embed/xulrunner/components/GeckoPromptService.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/embed/xulrunner/components/GeckoPromptService.cpp b/embed/xulrunner/components/GeckoPromptService.cpp
index 0756fcedf..317c7487b 100644
--- a/embed/xulrunner/components/GeckoPromptService.cpp
+++ b/embed/xulrunner/components/GeckoPromptService.cpp
@@ -35,6 +35,8 @@
#include "gecko-embed.h"
#include "gecko-embed-single.h"
+#include "ephy-embed-shell.h"
+
#include "AutoJSContextStack.h"
#include "AutoWindowModalState.h"
#include "GeckoUtils.h"
@@ -115,7 +117,7 @@ Prompter::Prompter (const char *aStock,
{
GtkWidget *parent, *hbox, *label, *image;
- g_object_ref (gecko_embed_shell_get_default ());
+ g_object_ref (ephy_embed_shell_get_default ());
mEntries[0] = mEntries[1] = nsnull;
@@ -138,10 +140,7 @@ Prompter::Prompter (const char *aStock,
{
gtk_window_set_transient_for (GTK_WINDOW (mDialog),
GTK_WINDOW (parent));
-
- gtk_window_group_add_window (gecko_gui_ensure_window_group (GTK_WINDOW (parent)),
- GTK_WINDOW (mDialog));
- }
+ }
gtk_dialog_set_has_separator (mDialog, FALSE);
gtk_window_set_resizable (GTK_WINDOW (mDialog), FALSE);
@@ -199,7 +198,7 @@ Prompter::~Prompter ()
gtk_widget_destroy (GTK_WIDGET (mDialog));
g_object_unref (mDialog);
- g_object_unref (gecko_embed_shell_get_default ());
+ g_object_unref (ephy_embed_shell_get_default ());
}
void