[ontv] Removed reference to applet



commit b06cfa30ff67b68a0fc4bd30155644e6a4557ee5
Author: Olof Kindgren <olki src gnome org>
Date:   Tue May 18 22:55:17 2010 +0200

    Removed reference to applet
    
    This reference was used to control placement of notification bubbles.
    It is no longer needed, at least for Ubuntu

 ontv/notify.py |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/ontv/notify.py b/ontv/notify.py
index 92d88fb..14b891c 100644
--- a/ontv/notify.py
+++ b/ontv/notify.py
@@ -43,9 +43,6 @@ class Notification:
         self.program = program
         self.get_readable_time = get_readable_time
 
-        from applet import OnTVApplet
-        self.ontvapplet = OnTVApplet()
-
         pynotify.init(NAME)
 
         self.__update_id = gobject.timeout_add(TIMEOUT, self.__update)
@@ -80,11 +77,6 @@ class Notification:
                                                   self.__get_body())
         if not self.program.channel.logo is None:
             self.notification.set_icon_from_pixbuf(self.program.channel.logo)
-        (x, y, gravity) = self.ontvapplet.get_docking_data(True)
-        self.notification.set_hint_int32("x", x)
-        self.notification.set_hint_int32("y", y)
-        self.notification.set_timeout(self.__get_timeout())
-        self.notification.connect("closed", self.__closed)
         self.notification.show()
 
     def __action_invoked(self, notification, action):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]