[rhythmbox] add search by composer to search menus
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] add search by composer to search menus
- Date: Sat, 25 May 2013 13:41:12 +0000 (UTC)
commit d2cad99b2badeca70a6883161039fa40e82f818c
Author: Jonathan Matthew <jonathan d14n org>
Date: Sun Apr 14 14:47:57 2013 +1000
add search by composer to search menus
sources/rb-auto-playlist-source.c | 2 ++
sources/rb-browser-source.c | 2 ++
sources/rb-static-playlist-source.c | 2 ++
3 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/sources/rb-auto-playlist-source.c b/sources/rb-auto-playlist-source.c
index 8be963e..2cda85c 100644
--- a/sources/rb-auto-playlist-source.c
+++ b/sources/rb-auto-playlist-source.c
@@ -276,12 +276,14 @@ rb_auto_playlist_source_constructed (GObject *object)
rb_source_search_basic_register (RHYTHMDB_PROP_SEARCH_MATCH, "search-match", _("Search all fields"));
rb_source_search_basic_register (RHYTHMDB_PROP_ARTIST_FOLDED, "artist", _("Search artists"));
+ rb_source_search_basic_register (RHYTHMDB_PROP_COMPOSER_FOLDED, "composer", _("Search composers"));
rb_source_search_basic_register (RHYTHMDB_PROP_ALBUM_FOLDED, "album", _("Search albums"));
rb_source_search_basic_register (RHYTHMDB_PROP_TITLE_FOLDED, "title", _("Search titles"));
section = g_menu_new ();
rb_source_search_add_to_menu (section, "app", priv->search_action, "search-match");
rb_source_search_add_to_menu (section, "app", priv->search_action, "artist");
+ rb_source_search_add_to_menu (section, "app", priv->search_action, "composer");
rb_source_search_add_to_menu (section, "app", priv->search_action, "album");
rb_source_search_add_to_menu (section, "app", priv->search_action, "title");
diff --git a/sources/rb-browser-source.c b/sources/rb-browser-source.c
index b315d2c..bcff8f8 100644
--- a/sources/rb-browser-source.c
+++ b/sources/rb-browser-source.c
@@ -313,12 +313,14 @@ rb_browser_source_constructed (GObject *object)
/* ensure search instances exist */
rb_source_search_basic_register (RHYTHMDB_PROP_SEARCH_MATCH, "search-match", _("Search all fields"));
rb_source_search_basic_register (RHYTHMDB_PROP_ARTIST_FOLDED, "artist", _("Search artists"));
+ rb_source_search_basic_register (RHYTHMDB_PROP_COMPOSER_FOLDED, "composer", _("Search composers"));
rb_source_search_basic_register (RHYTHMDB_PROP_ALBUM_FOLDED, "album", _("Search albums"));
rb_source_search_basic_register (RHYTHMDB_PROP_TITLE_FOLDED, "title", _("Search titles"));
section = g_menu_new ();
rb_source_search_add_to_menu (section, "app", source->priv->search_action, "search-match");
rb_source_search_add_to_menu (section, "app", source->priv->search_action, "artist");
+ rb_source_search_add_to_menu (section, "app", source->priv->search_action, "composer");
rb_source_search_add_to_menu (section, "app", source->priv->search_action, "album");
rb_source_search_add_to_menu (section, "app", source->priv->search_action, "title");
diff --git a/sources/rb-static-playlist-source.c b/sources/rb-static-playlist-source.c
index 135862e..24be111 100644
--- a/sources/rb-static-playlist-source.c
+++ b/sources/rb-static-playlist-source.c
@@ -320,12 +320,14 @@ rb_static_playlist_source_constructed (GObject *object)
rb_source_search_basic_register (RHYTHMDB_PROP_SEARCH_MATCH, "search-match", _("Search all fields"));
rb_source_search_basic_register (RHYTHMDB_PROP_ARTIST_FOLDED, "artist", _("Search artists"));
+ rb_source_search_basic_register (RHYTHMDB_PROP_COMPOSER_FOLDED, "composer", _("Search composers"));
rb_source_search_basic_register (RHYTHMDB_PROP_ALBUM_FOLDED, "album", _("Search albums"));
rb_source_search_basic_register (RHYTHMDB_PROP_TITLE_FOLDED, "title", _("Search titles"));
section = g_menu_new ();
rb_source_search_add_to_menu (section, "app", priv->search_action, "search-match");
rb_source_search_add_to_menu (section, "app", priv->search_action, "artist");
+ rb_source_search_add_to_menu (section, "app", priv->search_action, "composer");
rb_source_search_add_to_menu (section, "app", priv->search_action, "album");
rb_source_search_add_to_menu (section, "app", priv->search_action, "title");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]