aboutsummaryrefslogtreecommitdiffstats
path: root/embed/downloader-view.c
diff options
context:
space:
mode:
authorPriit Laes <plaes@plaes.org>2009-07-29 18:08:26 +0800
committerPriit Laes <plaes@plaes.org>2009-07-29 18:08:26 +0800
commitfc57712dbb7afbf0112c0ea471a86e0acb5462b7 (patch)
treee06f80c402a9aaa2f8489a906b5a9be7dbdc0ed4 /embed/downloader-view.c
parenta7d3b959e7af9b8fc3e93bdb3082cc1273bbd247 (diff)
downloadgsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar.gz
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar.bz2
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar.lz
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar.xz
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.tar.zst
gsoc2013-epiphany-fc57712dbb7afbf0112c0ea471a86e0acb5462b7.zip
Revert "Move Epiphany to solely use GnomeKeyring for password management."
This reverts commit f453c807afecdc210410eeb9f389ca50d0764a7c.
Diffstat (limited to 'embed/downloader-view.c')
-rw-r--r--embed/downloader-view.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/embed/downloader-view.c b/embed/downloader-view.c
index 8eae89fa5..36b25fbe5 100644
--- a/embed/downloader-view.c
+++ b/embed/downloader-view.c
@@ -661,6 +661,10 @@ downloader_view_add_download (DownloaderView *dv,
#endif
GValue visible = {0, };
+#ifdef HAVE_LIBNOTIFY
+ char *downloading;
+#endif
+
/* dv may be unrefed inside update_download_row if the file
* downloaded completely while the user was choosing where to
* put it, so we need to protect it
@@ -706,7 +710,6 @@ downloader_view_add_download (DownloaderView *dv,
{
#ifdef HAVE_LIBNOTIFY
- char *downloading;
char *name = ephy_download_get_name (download);
downloading = g_strdup_printf(_("The file ā€œ%sā€ has been added to the downloads queue."),
name);
@@ -889,7 +892,7 @@ downloader_view_build_ui (DownloaderView *dv)
gtk_tree_view_column_set_cell_data_func(column, renderer, progress_cell_data_func, NULL, NULL);
gtk_tree_view_column_set_sort_column_id (column, COL_PERCENT);
- /* Remaining time column */
+ /* Remainng time column */
renderer = gtk_cell_renderer_text_new ();
g_object_set (renderer, "xalign", 0.5, NULL);
gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW(priv->treeview),
@@ -1004,6 +1007,7 @@ downloader_view_remove_download (DownloaderView *dv, WebKitDownload *download)
update_status_icon (dv);
/* Close the dialog if there are no more downloads */
+
if (!g_hash_table_size (dv->priv->downloads_hash))
{
g_object_unref (dv);