[tuxdroid-svn] r5113 - software_suite_v3/smart-core/smart-server/trunk/util/system
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-07-14 17:54:10
|
Author: remi
Date: 2009-07-14 19:53:58 +0200 (Tue, 14 Jul 2009)
New Revision: 5113
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/system/TaskBar.py
Log:
* Fixed taskbar icons refreshing function. (Tested on xp en, vista en and vista fr)
Modified: software_suite_v3/smart-core/smart-server/trunk/util/system/TaskBar.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/system/TaskBar.py 2009-07-14 10:24:22 UTC (rev 5112)
+++ software_suite_v3/smart-core/smart-server/trunk/util/system/TaskBar.py 2009-07-14 17:53:58 UTC (rev 5113)
@@ -21,7 +21,7 @@
FW(FW(FW(0, "Shell_TrayWnd"), "TrayNotifyWnd"), "SysPager"),
0,
"ToolbarWindow32",
- "Notification Area")
+ None)
# Get TaskBar area
rect = win32gui.GetClientRect(hWnd)
width = rect[2]
@@ -51,11 +51,11 @@
def refreshTaskBar():
"""Refresh the task bar.
"""
- return
- '''
- if os.name == "nt":
- __refreshTaskBarWin32()
- else:
- __refreshTaskBarUnix()
- '''
+ try:
+ if os.name == "nt":
+ __refreshTaskBarWin32()
+ else:
+ __refreshTaskBarUnix()
+ except:
+ pass
|