Lines 612-618
rb_daap_source_connection_cb (DMAPConnection *connection,
Link Here
|
612 |
{ |
612 |
{ |
613 |
RBDAAPSource *daap_source = RB_DAAP_SOURCE (source); |
613 |
RBDAAPSource *daap_source = RB_DAAP_SOURCE (source); |
614 |
RBShell *shell = NULL; |
614 |
RBShell *shell = NULL; |
615 |
GSettings *plugin_settings; |
|
|
616 |
GSettings *settings; |
615 |
GSettings *settings; |
617 |
GSList *playlists; |
616 |
GSList *playlists; |
618 |
GSList *l; |
617 |
GSList *l; |
Lines 637-645
rb_daap_source_connection_cb (DMAPConnection *connection,
Link Here
|
637 |
g_object_get (daap_source, |
636 |
g_object_get (daap_source, |
638 |
"shell", &shell, |
637 |
"shell", &shell, |
639 |
"entry-type", &entry_type, |
638 |
"entry-type", &entry_type, |
640 |
"settings", &plugin_settings, |
639 |
"settings", &settings, |
641 |
NULL); |
640 |
NULL); |
642 |
settings = g_settings_get_child (plugin_settings, "source"); |
|
|
643 |
playlists = dmap_connection_get_playlists (DMAP_CONNECTION (daap_source->priv->connection)); |
641 |
playlists = dmap_connection_get_playlists (DMAP_CONNECTION (daap_source->priv->connection)); |
644 |
for (l = playlists; l != NULL; l = g_slist_next (l)) { |
642 |
for (l = playlists; l != NULL; l = g_slist_next (l)) { |
645 |
DMAPPlaylist *playlist = l->data; |
643 |
DMAPPlaylist *playlist = l->data; |
Lines 654-660
rb_daap_source_connection_cb (DMAPConnection *connection,
Link Here
|
654 |
} |
652 |
} |
655 |
|
653 |
|
656 |
g_object_unref (settings); |
654 |
g_object_unref (settings); |
657 |
g_object_unref (plugin_settings); |
|
|
658 |
g_object_unref (shell); |
655 |
g_object_unref (shell); |
659 |
g_object_unref (entry_type); |
656 |
g_object_unref (entry_type); |
660 |
} |
657 |
} |
661 |
- |
|
|