aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-01-19 03:33:24 +0800
committerChristian Persch <chpe@src.gnome.org>2005-01-19 03:33:24 +0800
commitc2cf774369853da2a4d0030171fe5f53926f6547 (patch)
treed9fd6055ae8a16276110c673f8c156e57aa2de18
parent79acbb4c2b636bf714fa7243f5e1ec7f8a9f5b97 (diff)
downloadgsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar.gz
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar.bz2
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar.lz
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar.xz
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.tar.zst
gsoc2013-epiphany-c2cf774369853da2a4d0030171fe5f53926f6547.zip
Really make confirm-overwrite dialogue have a parent window. Fixes bug
2005-01-18 Christian Persch <chpe@cvs.gnome.org> * embed/mozilla/EphyHeaderSniffer.cpp: Really make confirm-overwrite dialogue have a parent window. Fixes bug #164189.
-rw-r--r--ChangeLog7
-rw-r--r--embed/mozilla/EphyHeaderSniffer.cpp7
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d4ebd8ba0..cba067644 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2005-01-18 Christian Persch <chpe@cvs.gnome.org>
+ * embed/mozilla/EphyHeaderSniffer.cpp:
+
+ Really make confirm-overwrite dialogue have a parent window.
+ Fixes bug #164189.
+
+2005-01-18 Christian Persch <chpe@cvs.gnome.org>
+
* lib/ephy-dialog.c: (ephy_dialog_set_size_group):
Fix mem leak. Fixes bug #164302.
diff --git a/embed/mozilla/EphyHeaderSniffer.cpp b/embed/mozilla/EphyHeaderSniffer.cpp
index d751a6941..cde2fa1d2 100644
--- a/embed/mozilla/EphyHeaderSniffer.cpp
+++ b/embed/mozilla/EphyHeaderSniffer.cpp
@@ -203,16 +203,17 @@ EphyHeaderSniffer::OnSecurityChange (nsIWebProgress *aWebProgress, nsIRequest *a
}
static void
-filechooser_response_cb (EphyFileChooser *dialog, gint response, EphyHeaderSniffer* sniffer)
+filechooser_response_cb (GtkWidget *dialog,
+ gint response,
+ EphyHeaderSniffer* sniffer)
{
if (response == GTK_RESPONSE_ACCEPT)
{
char *filename;
- GtkWidget *parent = NULL; // FIXME!
filename = gtk_file_chooser_get_filename (GTK_FILE_CHOOSER (dialog));
- if (ephy_gui_confirm_overwrite_file (parent, filename) == FALSE)
+ if (ephy_gui_confirm_overwrite_file (dialog, filename) == FALSE)
{
g_free (filename);
return;