[RigoDaemon] rename is_exclusive() to exclusive()

This commit is contained in:
Fabio Erculiani
2012-03-19 21:32:26 +01:00
parent 7c132a9bf4
commit b400b4bfea
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -594,7 +594,7 @@ class RigoDaemonService(dbus.service.Object):
@dbus.service.method(BUS_NAME, in_signature='',
out_signature='b')
def is_exclusive(self):
def exclusive(self):
"""
Return whether RigoDaemon is running in with
Entropy Resources acquired in exclusive mode.
+1 -1
View File
@@ -19,7 +19,7 @@
<arg name="accepted" type="b" direction="out"/>
</method>
<method name="is_exclusive">
<method name="exclusive">
<arg name="status" type="b" direction="out"/>
</method>
+3 -3
View File
@@ -755,14 +755,14 @@ class RigoServiceController(GObject.Object):
self._entropy_bus,
dbus_interface=self.DBUS_INTERFACE).activity()
def is_exclusive(self):
def exclusive(self):
"""
Return whether RigoDaemon is running in with
Entropy Resources acquired in exclusive mode.
"""
return dbus.Interface(
self._entropy_bus,
dbus_interface=self.DBUS_INTERFACE).is_exclusive()
dbus_interface=self.DBUS_INTERFACE).exclusive()
def _release_local_resources(self):
"""
@@ -2150,7 +2150,7 @@ class Rigo(Gtk.Application):
# check whether RigoDaemon is running in excluive mode
# and ignore non-atomicity here (failing with error
# is acceptable)
if not self._service.is_exclusive():
if not self._service.exclusive():
self._show_ok_dialog(
None,
escape_markup(_("Rigo")),