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



Author: eitani
Date: Tue Nov 18 19:02:27 2008
New Revision: 662
URL: http://svn.gnome.org/viewvc/accerciser?rev=662&view=rev

Log:
* src/lib/accerciser/node.py: If duration is 0, don't highlight at all.

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	Tue Nov 18 19:02:27 2008
@@ -239,10 +239,12 @@
     # Connect "expose" event.
     self.connect("expose-event", self._onExpose)
     
-  def highlight(self, duration=0):
+  def highlight(self, duration=500):
     if duration > 0:
       gobject.timeout_add(duration, lambda w: w.destroy(), self)
-    self.show_all()
+      self.show_all()
+    else:
+      self.destroy()
     
 
   def _onExpose(self, widget, event):



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