diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-01-19 03:33:24 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-01-19 03:33:24 +0800 |
commit | c2cf774369853da2a4d0030171fe5f53926f6547 (patch) | |
tree | d9fd6055ae8a16276110c673f8c156e57aa2de18 /embed | |
parent | 79acbb4c2b636bf714fa7243f5e1ec7f8a9f5b97 (diff) | |
download | gsoc2013-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.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyHeaderSniffer.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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; |