Use CamelCase for the activity service methods.

This commit is contained in:
Marco Pesenti Gritti 2007-08-20 15:18:46 +02:00
parent 1ba5cddaa3
commit 1c06a44a7d
2 changed files with 7 additions and 7 deletions

View File

@ -107,13 +107,13 @@ class HomeModel(gobject.GObject):
if self._active_activity:
service = self._active_activity.get_service()
if service:
service.set_active(False,
service.SetActive(False,
reply_handler=self._set_active_success,
error_handler=self._set_active_error)
if home_activity:
service = home_activity.get_service()
if service:
service.set_active(True,
service.SetActive(True,
reply_handler=self._set_active_success,
error_handler=self._set_active_error)

View File

@ -56,6 +56,6 @@ class ActivityService(dbus.service.Object):
self._activity = activity
@dbus.service.method(_ACTIVITY_INTERFACE)
def set_active(self, active):
def SetActive(self, active):
logging.debug('ActivityService.set_active: %s.' % active)
self._activity.props.active = active