[pygobject] [gi] Enable handling of Gdk.EventType.2BUTTON_PRESS and 3BUTTON_PRESS
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] Enable handling of Gdk.EventType.2BUTTON_PRESS and 3BUTTON_PRESS
- Date: Wed, 19 Jan 2011 14:13:51 +0000 (UTC)
commit b2189424f9dd6d3a4a5b9792f0d5843fc27657d1
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Wed Jan 19 15:12:25 2011 +0100
[gi] Enable handling of Gdk.EventType.2BUTTON_PRESS and 3BUTTON_PRESS
gi/overrides/Gdk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gi/overrides/Gdk.py b/gi/overrides/Gdk.py
index c87ed46..e536da4 100644
--- a/gi/overrides/Gdk.py
+++ b/gi/overrides/Gdk.py
@@ -84,8 +84,8 @@ class Event(Gdk.Event):
Gdk.EventType.EXPOSE: 'expose',
Gdk.EventType.MOTION_NOTIFY: 'motion',
Gdk.EventType.BUTTON_PRESS: 'button',
- #Gdk.EventType.2BUTTON_PRESS: 'button',
- #Gdk.EventType.3BUTTON_PRESS: 'button',
+ getattr(Gdk.EventType, "2BUTTON_PRESS"): 'button',
+ getattr(Gdk.EventType, "3BUTTON_PRESS"): 'button',
Gdk.EventType.BUTTON_RELEASE: 'button',
Gdk.EventType.KEY_PRESS: 'key',
Gdk.EventType.KEY_RELEASE: 'key',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]