Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updates in DBus interface of GTG #87

Merged
merged 1 commit into from

2 participants

@izidormatusov

Since version 0.2.9, GTG uses a '''better''' DBus name org.gnome.GTG instead of org.GTG. Exported methods were changed to CamelCase. This patch reflects the changes.

@tbaugis tbaugis merged commit 91e1b7d into projecthamster:master
@tbaugis
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 16, 2013
  1. @izidormatusov
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/hamster/external.py
View
10 src/hamster/external.py
@@ -58,7 +58,7 @@ def get_activities(self, query = None):
tasks = []
try:
- tasks = conn.get_tasks()
+ tasks = conn.GetTasks()
except dbus.exceptions.DBusException: #TODO too lame to figure out how to connect to the disconnect signal
self.__gtg_connection = None
return self.get_activities(query) # reconnect
@@ -77,12 +77,12 @@ def get_activities(self, query = None):
def __get_gtg_connection(self):
bus = dbus.SessionBus()
- if self.__gtg_connection and bus.name_has_owner("org.GTG"):
+ if self.__gtg_connection and bus.name_has_owner("org.gnome.GTG"):
return self.__gtg_connection
- if bus.name_has_owner("org.GTG"):
- self.__gtg_connection = dbus.Interface(bus.get_object('org.GTG', '/org/GTG'),
- dbus_interface='org.GTG')
+ if bus.name_has_owner("org.gnome.GTG"):
+ self.__gtg_connection = dbus.Interface(bus.get_object('org.gnome.GTG', '/org/gnome/GTG'),
+ dbus_interface='org.gnome.GTG')
return self.__gtg_connection
else:
return None
Something went wrong with that request. Please try again.