[nanny] Refresh info when anything change
- From: Roberto Majadas <telemaco src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nanny] Refresh info when anything change
- Date: Fri, 5 Mar 2010 10:33:22 +0000 (UTC)
commit 24ade25ada1c32c20c61e374655ef77d8a67ea2f
Author: Roberto Majadas <roberto majadas openshine com>
Date: Fri Mar 5 11:32:33 2010 +0100
Refresh info when anything change
client/gnome/systray/src/SystrayNanny.py | 5 -----
daemon/src/QuarterBack.py | 1 +
2 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/client/gnome/systray/src/SystrayNanny.py b/client/gnome/systray/src/SystrayNanny.py
index ae79cb1..1e2edc2 100644
--- a/client/gnome/systray/src/SystrayNanny.py
+++ b/client/gnome/systray/src/SystrayNanny.py
@@ -64,14 +64,11 @@ class SystrayNanny(gtk.StatusIcon):
gobject.timeout_add(3000, self.__handlerTimer )
def __handlerUserNotification(self, dbus, block_status, user_id, app_id, next_change, available_time):
- print "handler time"
uid= str(os.getuid())
if uid==user_id:
self.times_left[app_id] = [next_change, block_status]
def __handlerTimer(self):
- print "timer handler"
-
mssg=""
mssg_ready=False
for app_id in self.times_left:
@@ -105,10 +102,8 @@ class SystrayNanny(gtk.StatusIcon):
self.set_tooltip( mssg )
if len(mssg) != 0 :
- print "Set visible True"
self.set_visible(True)
else:
- print "Set visible False"
self.set_visible(False)
return True
diff --git a/daemon/src/QuarterBack.py b/daemon/src/QuarterBack.py
index 2291cfd..2a0502e 100644
--- a/daemon/src/QuarterBack.py
+++ b/daemon/src/QuarterBack.py
@@ -292,6 +292,7 @@ class QuarterBack(gobject.GObject) :
self.blocks[user_id][app_id] = ret
self.__save()
self.emit("update-blocks", self.blocks)
+ self.__refresh_info()
def get_blocks(self, user_id, app_id):
if not self.blocks.has_key(user_id) :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]