From 33e8e6c2ac125ba3806032ea3ef730bd5c782ac8 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Sun, 9 Jan 2011 15:30:29 +0000 Subject: more refactoring --- src/freedesktop-interfaces.vala | 6 ++++++ src/mpris2-controller.vala | 9 +-------- src/sound-service.c | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/freedesktop-interfaces.vala b/src/freedesktop-interfaces.vala index 3e5d832..4d75044 100644 --- a/src/freedesktop-interfaces.vala +++ b/src/freedesktop-interfaces.vala @@ -30,6 +30,12 @@ public interface FreeDesktopIntrospectable: Object { public abstract string Introspect() throws IOError; } +[DBus (name = "org.freedesktop.DBus.Properties")] +public interface FreeDesktopProperties : Object{ + public signal void PropertiesChanged (string source, HashTable changed_properties, + string[] invalid ); +} + public errordomain XmlError { FILE_NOT_FOUND, XML_DOCUMENT_EMPTY diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index 66da069..fc61c12 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -18,12 +18,6 @@ with this program. If not, see . */ using Dbusmenu; -[DBus (name = "org.freedesktop.DBus.Properties")] -public interface FreeDesktopProperties : Object{ - public signal void PropertiesChanged (string source, HashTable changed_properties, - string[] invalid ); -} - /* This class will entirely replace mpris-controller.vala hence why there is no point in trying to get encorporate both into the same object model. @@ -148,9 +142,8 @@ public class Mpris2Controller : GLib.Object MetadataMenuitem.attributes_format()); if ( this.owner.use_playlists == true ){ - debug ("it thinks that there is a valid playlist interface"); this.fetch_playlists(); - this.fetch_active_playlist(); + this.fetch_active_playlist(); } } diff --git a/src/sound-service.c b/src/sound-service.c index defcb94..98f1881 100644 --- a/src/sound-service.c +++ b/src/sound-service.c @@ -40,8 +40,8 @@ service_shutdown (IndicatorService *service, gpointer user_data) { if (mainloop != NULL) { g_debug("Service shutdown !"); - //close_pulse_activites(); - //g_main_loop_quit(mainloop); + close_pulse_activites(); + g_main_loop_quit(mainloop); } return; } -- cgit v1.2.3