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
 


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to