[RigoDaemon] rename is_exclusive() to exclusive()
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
@@ -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")),
|
||||
|
||||
Reference in New Issue
Block a user