[rhythmbox] podcast: drop miroguide search
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] podcast: drop miroguide search
- Date: Mon, 11 Nov 2019 21:54:59 +0000 (UTC)
commit c203ef3351061cb0b18876f33ad85d749d1774ea
Author: Jonathan Matthew <jonathan d14n org>
Date: Tue Nov 12 07:50:03 2019 +1000
podcast: drop miroguide search
This probably hasn't worked for years.
podcast/Makefile.am | 4 +-
podcast/rb-podcast-manager.c | 1 -
podcast/rb-podcast-search-miroguide.c | 218 ----------------------------------
podcast/rb-podcast-search.h | 1 -
podcast/test-podcast-search.c | 11 +-
5 files changed, 4 insertions(+), 231 deletions(-)
---
diff --git a/podcast/Makefile.am b/podcast/Makefile.am
index a87e5240a..221fe37d8 100644
--- a/podcast/Makefile.am
+++ b/podcast/Makefile.am
@@ -12,8 +12,7 @@ librbpodcast_parse_la_SOURCES = \
rb-podcast-parse.c \
rb-podcast-parse.h \
rb-podcast-search.c \
- rb-podcast-search-itunes.c \
- rb-podcast-search-miroguide.c
+ rb-podcast-search-itunes.c
librbpodcast_la_SOURCES = \
$(podcastinclude_HEADERS) \
@@ -27,7 +26,6 @@ librbpodcast_la_SOURCES = \
rb-podcast-main-source.h \
rb-podcast-search.c \
rb-podcast-search-itunes.c \
- rb-podcast-search-miroguide.c \
rb-podcast-settings.h \
rb-podcast-source.c \
rb-podcast-source.h \
diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c
index 9c36e68ac..6d397437b 100644
--- a/podcast/rb-podcast-manager.c
+++ b/podcast/rb-podcast-manager.c
@@ -273,7 +273,6 @@ rb_podcast_manager_constructed (GObject *object)
/* add built in search types */
pd->priv->searches = g_array_new (FALSE, FALSE, sizeof (GType));
rb_podcast_manager_add_search (pd, rb_podcast_search_itunes_get_type ());
- rb_podcast_manager_add_search (pd, rb_podcast_search_miroguide_get_type ());
pd->priv->settings = g_settings_new (PODCAST_SETTINGS_SCHEMA);
g_signal_connect_object (pd->priv->settings,
diff --git a/podcast/rb-podcast-search.h b/podcast/rb-podcast-search.h
index 91e09e2b3..9980bc2dd 100644
--- a/podcast/rb-podcast-search.h
+++ b/podcast/rb-podcast-search.h
@@ -69,6 +69,5 @@ void rb_podcast_search_finished (RBPodcastSearch *search, gboolean
successful)
/* built in search types */
GType rb_podcast_search_itunes_get_type (void);
-GType rb_podcast_search_miroguide_get_type (void);
#endif /* RB_PODCAST_SEARCH_H */
diff --git a/podcast/test-podcast-search.c b/podcast/test-podcast-search.c
index 10ea73e9c..279cf9f67 100644
--- a/podcast/test-podcast-search.c
+++ b/podcast/test-podcast-search.c
@@ -107,11 +107,11 @@ result_cb (RBPodcastSearch *search, RBPodcastChannel *data)
}
static void
-finished_cb (RBPodcastSearch *search, GMainLoop *loop)
+finished_cb (RBPodcastSearch *search, gboolean successful, GMainLoop *loop)
{
- g_print ("Search %s finished\n", G_OBJECT_TYPE_NAME (search));
+ g_print ("Search %s finished (%d)\n", G_OBJECT_TYPE_NAME (search), successful);
done++;
- if (done == 2) {
+ if (done == 1) {
g_main_loop_quit (loop);
}
}
@@ -120,7 +120,6 @@ int main (int argc, char **argv)
{
GMainLoop *loop;
RBPodcastSearch *itunes;
- RBPodcastSearch *miroguide;
char *text;
setlocale (LC_ALL, "");
@@ -135,15 +134,11 @@ int main (int argc, char **argv)
loop = g_main_loop_new (NULL, FALSE);
itunes = RB_PODCAST_SEARCH (g_object_new (rb_podcast_search_itunes_get_type (), NULL));
- miroguide = RB_PODCAST_SEARCH (g_object_new (rb_podcast_search_miroguide_get_type (), NULL));
g_signal_connect (itunes, "result", G_CALLBACK (result_cb), NULL);
- g_signal_connect (miroguide, "result", G_CALLBACK (result_cb), NULL);
g_signal_connect (itunes, "finished", G_CALLBACK (finished_cb), loop);
- g_signal_connect (miroguide, "finished", G_CALLBACK (finished_cb), loop);
rb_podcast_search_start (itunes, text, 10);
- rb_podcast_search_start (miroguide, text, 10);
g_main_loop_run (loop);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]