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,15 +107,15 @@ 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)
self._active_activity = home_activity self._active_activity = home_activity
self.emit('active-activity-changed', self._active_activity) self.emit('active-activity-changed', self._active_activity)

View File

@ -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