teberle / pida

No description has been added.

Clone this repository (size: 3.3 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/teberle/pida/

Changed (Δ192 bytes):

raw changeset »

pida/core/pdbus.py (7 lines added, 0 lines removed)

pida/core/service.py (2 lines added, 0 lines removed)

Up to file-list pida/core/pdbus.py:

@@ -85,6 +85,10 @@ class DbusOptionsManagerReal(Object):
85
85
                                self.on_config_changed, 'CONFIG_CHANGED', 
86
86
                                ns, None, path, sender_keyword='sender')
87
87
88
    def unload(self):
89
        self.config_match.remove()
90
        self.remove_from_connection()
91
88
92
    def on_config_changed(self, workspace, name, value, sender=None):
89
93
        if sender == BUS.get_unique_name():
90
94
            return
@@ -225,6 +229,9 @@ class DbusOptionsManagerReal(Object):
225
229
226
230
227
231
class DbusOptionsManagerNoop(object):
232
    def unload(self):
233
        pass
234
228
235
    def notify_dbus(self, *args):
229
236
        pass
230
237
    

Up to file-list pida/core/service.py:

@@ -96,6 +96,8 @@ class Service(object):
96
96
97
97
    def stop_components(self):
98
98
        # Will remove everything
99
        self.options.unload()
100
        self.actions.unload()
99
101
        self.events.unsubscribe_foreign()
100
102
        self.features.unsubscribe_foreign()
101
103
        self.actions.remove_actions()