[kupfer] browser: Fix overwritten variable when checking accelerators
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] browser: Fix overwritten variable when checking accelerators
- Date: Thu, 10 Sep 2009 12:30:46 +0000 (UTC)
commit 91610a84db2fe491a850b92541bd2fff29e2d39f
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Thu Sep 10 14:10:04 2009 +0200
browser: Fix overwritten variable when checking accelerators
kupfer/browser.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/browser.py b/kupfer/browser.py
index 91e59db..6cbd600 100644
--- a/kupfer/browser.py
+++ b/kupfer/browser.py
@@ -851,10 +851,10 @@ class Interface (gobject.GObject):
# process accelerators
for accel in accels:
- keyvalue, modifiers = gtk.accelerator_parse(accel)
- if not keyvalue:
+ akeyv, amodf = gtk.accelerator_parse(accel)
+ if not akeyv:
continue
- if keyv == keyvalue and (modifiers == (event.state & modifiers)):
+ if akeyv == keyv and (amodf == (event.state & modifiers)):
action = accels[accel]
action_method = getattr(self, action, None)
if not action_method:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]