Use CamelCase for the activity service methods.
This commit is contained in:
parent
1ba5cddaa3
commit
1c06a44a7d
@ -107,13 +107,13 @@ class HomeModel(gobject.GObject):
|
|||||||
if self._active_activity:
|
if self._active_activity:
|
||||||
service = self._active_activity.get_service()
|
service = self._active_activity.get_service()
|
||||||
if service:
|
if service:
|
||||||
service.set_active(False,
|
service.SetActive(False,
|
||||||
reply_handler=self._set_active_success,
|
reply_handler=self._set_active_success,
|
||||||
error_handler=self._set_active_error)
|
error_handler=self._set_active_error)
|
||||||
if home_activity:
|
if home_activity:
|
||||||
service = home_activity.get_service()
|
service = home_activity.get_service()
|
||||||
if service:
|
if service:
|
||||||
service.set_active(True,
|
service.SetActive(True,
|
||||||
reply_handler=self._set_active_success,
|
reply_handler=self._set_active_success,
|
||||||
error_handler=self._set_active_error)
|
error_handler=self._set_active_error)
|
||||||
|
|
||||||
|
@ -56,6 +56,6 @@ class ActivityService(dbus.service.Object):
|
|||||||
self._activity = activity
|
self._activity = activity
|
||||||
|
|
||||||
@dbus.service.method(_ACTIVITY_INTERFACE)
|
@dbus.service.method(_ACTIVITY_INTERFACE)
|
||||||
def set_active(self, active):
|
def SetActive(self, active):
|
||||||
logging.debug('ActivityService.set_active: %s.' % active)
|
logging.debug('ActivityService.set_active: %s.' % active)
|
||||||
self._activity.props.active = active
|
self._activity.props.active = active
|
||||||
|
Loading…
Reference in New Issue
Block a user