[rhythmbox/media-player-sync] media-player: get categories from the device when any groups are enabled



commit 5c2c381f41749d6397aef5ec40ed1c5f07f4ad78
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Mar 21 13:34:26 2010 +1000

    media-player: get categories from the device when any groups are enabled
    
    The previous check was only TRUE when all music/podcasts would be synced,
    which is pretty useless.

 sources/rb-media-player-source.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sources/rb-media-player-source.c b/sources/rb-media-player-source.c
index f99d1be..932dcbe 100644
--- a/sources/rb-media-player-source.c
+++ b/sources/rb-media-player-source.c
@@ -936,7 +936,7 @@ build_device_state (RBMediaPlayerSource *source)
 
 	device = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)rhythmdb_entry_unref);
 
-	if (rb_media_player_sync_settings_sync_category (priv->sync_settings, SYNC_CATEGORY_MUSIC)) {
+	if (rb_media_player_sync_settings_has_enabled_groups (priv->sync_settings, SYNC_CATEGORY_MUSIC)) {
 		GHashTable *entries;
 		rb_debug ("getting music entries from device");
 		entries = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) rhythmdb_entry_unref);
@@ -946,7 +946,7 @@ build_device_state (RBMediaPlayerSource *source)
 		rb_debug ("done getting music entries from device");
 	}
 
-	if (rb_media_player_sync_settings_sync_category (priv->sync_settings, SYNC_CATEGORY_PODCAST)) {
+	if (rb_media_player_sync_settings_has_enabled_groups (priv->sync_settings, SYNC_CATEGORY_PODCAST)) {
 		GHashTable *podcasts;
 		rb_debug ("getting podcast entries from device");
 		podcasts = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify) rhythmdb_entry_unref);



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