accerciser r608 - in trunk: . src/lib/accerciser



Author: eitani
Date: Mon Aug  4 16:42:04 2008
New Revision: 608
URL: http://svn.gnome.org/viewvc/accerciser?rev=608&view=rev

Log:
* src/lib/accerciser/node.py: Removed "finally" block for
compatability (bug #545904), thanks Will. Hard code default colors.


Modified:
   trunk/ChangeLog
   trunk/src/lib/accerciser/node.py

Modified: trunk/src/lib/accerciser/node.py
==============================================================================
--- trunk/src/lib/accerciser/node.py	(original)
+++ trunk/src/lib/accerciser/node.py	Mon Aug  4 16:42:04 2008
@@ -25,10 +25,10 @@
 
 cl = gconf.client_get_default()
 BORDER_COLOR, BORDER_ALPHA = parseColorString(
-  cl.get_string('/apps/accerciser/highlight_border'))
+  cl.get_string('/apps/accerciser/highlight_border') or '#ff0000ff') 
 
 FILL_COLOR, FILL_ALPHA  = parseColorString(
-  cl.get_string('/apps/accerciser/highlight_fill'))
+  cl.get_string('/apps/accerciser/highlight_fill') or '#ff00006f')
 
 HL_DURATION = int(cl.get_float('/apps/accerciser/highlight_duration')*1000)
 
@@ -251,8 +251,7 @@
       print 'Error reading SVG for display: %s\r\n%s', ex, self.svg
       svgh.close()
       return
-    finally:
-      svgh.close()
+    svgh.close()
       
     if not self._composited:
       # Draw the screengrab of the underlaying window, and set the drawing



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