[rhythmbox] podcast: don't download episodes on activation



commit f674867f5f46c08f1c82ef9dba6990a5276823af
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Sep 14 19:51:23 2014 +1000

    podcast: don't download episodes on activation

 podcast/rb-podcast-source.c |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/podcast/rb-podcast-source.c b/podcast/rb-podcast-source.c
index 5e84e34..7a7dabb 100644
--- a/podcast/rb-podcast-source.c
+++ b/podcast/rb-podcast-source.c
@@ -883,27 +883,6 @@ podcast_post_status_sort_func (RhythmDBEntry *a,
        return ret;
 }
 
-
-static void
-episode_activated_cb (RBEntryView *view,
-                     RhythmDBEntry *entry,
-                     RBPodcastSource *source)
-{
-       GValue val = {0,};
-
-       /* check to see if it has already been downloaded */
-       if (rb_podcast_manager_entry_downloaded (entry))
-               return;
-
-       g_value_init (&val, G_TYPE_ULONG);
-       g_value_set_ulong (&val, RHYTHMDB_PODCAST_STATUS_WAITING);
-       rhythmdb_entry_set (source->priv->db, entry, RHYTHMDB_PROP_STATUS, &val);
-       rhythmdb_commit (source->priv->db);
-       g_value_unset (&val);
-
-       rb_podcast_manager_download_entry (source->priv->podcast_mgr, entry);
-}
-
 static void
 podcast_entry_changed_cb (RhythmDB *db,
                          RhythmDBEntry *entry,
@@ -1380,11 +1359,6 @@ impl_constructed (GObject *object)
                                                 TRUE, FALSE);
        g_object_unref (shell_player);
 
-       g_signal_connect_object (source->priv->posts,
-                                "entry-activated",
-                                G_CALLBACK (episode_activated_cb),
-                                source, 0);
-
        /* Podcast date column */
        column = gtk_tree_view_column_new ();
        renderer = gtk_cell_renderer_text_new();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]