Skip to content
Browse files

Merge pull request #87 from izidormatusov/master

Update GTG dbus calls to match changes in their interface
  • Loading branch information...
2 parents f09ffc1 + a216f10 commit 91e1b7d96729bbd48d67dd1d66bada8210282a03 @tbaugis tbaugis committed
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

0 comments on commit 91e1b7d

Please sign in to comment.
Something went wrong with that request. Please try again.