[gnome-sudoku/gnome-3-8] Fix NumberBox events configuration with latest pygobject



commit 3ae4bae199413c0e9798f19577087ab4fa048340
Author: Yanko Kaneti <yaneti declera com>
Date:   Wed Feb 13 21:15:13 2013 +0200

    Fix NumberBox events configuration with latest pygobject
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693736

 src/lib/number_box.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/lib/number_box.py b/src/lib/number_box.py
index 4087de1..60b255a 100644
--- a/src/lib/number_box.py
+++ b/src/lib/number_box.py
@@ -130,7 +130,7 @@ class NumberBox (Gtk.DrawingArea):
         self.bottom_note_list = []
         self.tinfo = tracker_info.TrackerInfo()
         self.set_property('can-focus', True)
-        self.set_property('events', Gdk.EventMask.ALL_EVENTS_MASK)
+        self.add_events(Gdk.EventMask.ALL_EVENTS_MASK)
         self.connect('button-press-event', self.button_press_cb)
         self.connect('key-release-event', self.key_press_cb)
         self.connect('enter-notify-event', self.pointer_enter_cb)


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