Commit 498dcd26 authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Change browser_remove_service so that argument to service-removed signal is


a string service name instead of a DMAPMdnsBrowserService. This is what
Rhythmbox expects.
Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent 4411825c
......@@ -461,17 +461,10 @@ static void
browser_remove_service (DMAPMdnsBrowser *browser,
const gchar *service_name)
{
GSList *walk;
DMAPMdnsBrowserService *service;
for (walk = browser->priv->services; walk; walk = walk->next) {
service = (DMAPMdnsBrowserService *) walk->data;
if (g_ascii_strcasecmp (service->service_name, service_name) == 0) {
g_signal_emit (browser, dmap_mdns_browser_signals [SERVICE_REMOVED], 0, service);
free_service (service);
browser->priv->services = g_slist_remove_link (browser->priv->services, walk);
break;
}
}
g_signal_emit (browser,
dmap_mdns_browser_signals [SERVICE_REMOVED],
0,
service_name);
}
static void
......
......@@ -300,17 +300,10 @@ static void
browser_remove_service (DMAPMdnsBrowser *browser,
const char *service_name)
{
GSList *walk;
DMAPMdnsBrowserService *service;
for (walk = browser->priv->services; walk; walk = walk->next) {
service = (DMAPMdnsBrowserService *) walk->data;
if (g_ascii_strcasecmp (service->service_name, service_name) == 0) {
g_signal_emit (browser, dmap_mdns_browser_signals [SERVICE_REMOVED], 0, service);
free_service (service);
browser->priv->services = g_slist_remove_link (browser->priv->services, walk);
break;
}
}
g_signal_emit (browser,
dmap_mdns_browser_signals [SERVICE_REMOVED],
0,
service_name);
}
static sw_result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment