deskbar-applet r2144 - in trunk: . deskbar/core
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r2144 - in trunk: . deskbar/core
- Date: Tue, 29 Apr 2008 11:34:01 +0100 (BST)
Author: sebp
Date: Tue Apr 29 10:34:01 2008
New Revision: 2144
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2144&view=rev
Log:
Did some minor cleanup
Modified:
trunk/ChangeLog
trunk/deskbar/core/DeskbarHistory.py
Modified: trunk/deskbar/core/DeskbarHistory.py
==============================================================================
--- trunk/deskbar/core/DeskbarHistory.py (original)
+++ trunk/deskbar/core/DeskbarHistory.py Tue Apr 29 10:34:01 2008
@@ -151,7 +151,7 @@
"""
save = []
for timestamp, text, action in self:
- if action.__class__ != ChooseFromHistoryAction:
+ if isinstance(action, ChooseFromHistoryAction):
save.append((timestamp, text, action))
try:
@@ -181,7 +181,7 @@
"""
assert text != None and action != None
- if action.__class__ == ChooseFromHistoryAction:
+ if isinstance(action, ChooseFromHistoryAction):
return
if action.skip_history():
self.reset()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]