aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/ContentHandler.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2004-03-01 08:58:50 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-03-01 08:58:50 +0800
commit2737b39233fc4cf0cfa332a233371e3344f6c99c (patch)
treebb30b97e10c2761988e08cd0408371443e5b172b /embed/mozilla/ContentHandler.cpp
parent4461c9354db2be499323f99a2fe17fab73df3eba (diff)
downloadgsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar.gz
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar.bz2
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar.lz
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar.xz
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.tar.zst
gsoc2013-epiphany-2737b39233fc4cf0cfa332a233371e3344f6c99c.zip
Keep a ref for downloads in the view.
2004-03-01 Marco Pesenti Gritti <marco@gnome.org> * embed/downloader-view.c: (downloader_view_add_download), (downloader_view_remove_download): Keep a ref for downloads in the view. * embed/mozilla/ContentHandler.cpp: * embed/mozilla/ContentHandler.h: Ensure the download directory exist. * embed/mozilla/MozDownload.cpp: * embed/mozilla/mozilla-download.cpp: * embed/mozilla/mozilla-download.h: Use a property to store MozDownload in the wrapper. The wrapper now keep a reference on the c++ implementation, that way references will be correctly propagated (unreffing the GObject will unref the c++ object). (Bug 135755)
Diffstat (limited to 'embed/mozilla/ContentHandler.cpp')
-rw-r--r--embed/mozilla/ContentHandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/embed/mozilla/ContentHandler.cpp b/embed/mozilla/ContentHandler.cpp
index 4381a9f47..b39df19bd 100644
--- a/embed/mozilla/ContentHandler.cpp
+++ b/embed/mozilla/ContentHandler.cpp
@@ -249,7 +249,7 @@ NS_METHOD GContentHandler::Init (void)
return NS_OK;
}
-NS_METHOD GContentHandler::MIMEConfirmAction (PRBool autoDownload)
+NS_METHOD GContentHandler::MIMEConfirmAction ()
{
GtkWidget *dialog;
GtkWidget *hbox, *vbox, *label, *image;
@@ -289,7 +289,7 @@ NS_METHOD GContentHandler::MIMEConfirmAction (PRBool autoDownload)
"It's not safe to open it directly. You "
"can save it instead."));
}
- else if (mAction == CONTENT_ACTION_OPEN && !autoDownload)
+ else if (mAction == CONTENT_ACTION_OPEN_TMP)
{
text = g_strdup_printf ("<span weight=\"bold\" size=\"larger\">%s</span>\n\n%s",
_("Open the file in another application?"),
@@ -370,7 +370,7 @@ NS_METHOD GContentHandler::MIMEDoAction (void)
if (!auto_downloads || mAction == CONTENT_ACTION_DOWNLOAD)
{
- MIMEConfirmAction (auto_downloads);
+ MIMEConfirmAction ();
}
nsCOMPtr<nsIMIMEInfo> mimeInfo;