Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cardtable.py
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-01-24 17:07:56 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-01-24 17:07:56 (GMT)
commite8035ee7f48afd893216b63a4bd3931ba65bd612 (patch)
tree9d1166b2e9d127f86c7fe6dbc789ca6a56241ae4 /cardtable.py
parent64c9869b5d6c79e9445836bccd4f8ff9c71f6f5f (diff)
click breaks wrong-pair-timeout
Diffstat (limited to 'cardtable.py')
-rw-r--r--cardtable.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/cardtable.py b/cardtable.py
index eeb4772..608d8c5 100644
--- a/cardtable.py
+++ b/cardtable.py
@@ -31,6 +31,7 @@ class CardTable(gtk.EventBox):
__gsignals__ = {
'card-flipped': (SIGNAL_RUN_FIRST, None, [int, TYPE_PYOBJECT]),
+ 'card-overflipped': (SIGNAL_RUN_FIRST, None, [int]),
'card-highlighted': (SIGNAL_RUN_FIRST, None, [int, TYPE_PYOBJECT]),
}
@@ -201,8 +202,10 @@ class CardTable(gtk.EventBox):
self.card_flipped(card)
def card_flipped(self, card):
- if not card.is_flipped():
- id = self.cd2id[card]
+ id = self.cd2id[card]
+ if card.is_flipped():
+ self.emit('card-overflipped', id)
+ else:
self.emit('card-flipped', id, False)
def set_border(self, widget, id, stroke_color, fill_color):