Browse files

Updates in DBus interface of GTG

  • Loading branch information...
1 parent f09ffc1 commit a216f10fb3ce737ddd7802561e8e95d1bb69a8ea @izidormatusov izidormatusov committed Mar 16, 2013
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 a216f10

Please sign in to comment.