diff --git a/gnome-sudoku-numberbox-events.patch b/gnome-sudoku-numberbox-events.patch new file mode 100644 index 0000000..b53ee9a --- /dev/null +++ b/gnome-sudoku-numberbox-events.patch @@ -0,0 +1,26 @@ +From c82fc3131802f4fe1f069facb9aae833cc6cdc5f Mon Sep 17 00:00:00 2001 +From: Yanko Kaneti +Date: Wed, 13 Feb 2013 21:15:13 +0200 +Subject: [PATCH] Fix NumberBox envents configuration with latest pygobject + +--- + src/lib/number_box.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +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) +-- +1.8.1.2 + + diff --git a/gnome-sudoku.changes b/gnome-sudoku.changes index d565f75..481a77e 100644 --- a/gnome-sudoku.changes +++ b/gnome-sudoku.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 11 18:05:27 UTC 2013 - dimstar@opensuse.org + +- Add gnome-sudoku-numberbox-events.patch: Fix NumberBox envents + configuration with latest pygobject. + ------------------------------------------------------------------- Wed Mar 27 07:39:44 UTC 2013 - dimstar@opensuse.org diff --git a/gnome-sudoku.spec b/gnome-sudoku.spec index 1d72bc7..50fad7d 100644 --- a/gnome-sudoku.spec +++ b/gnome-sudoku.spec @@ -24,6 +24,8 @@ License: GPL-2.0+ Group: Amusements/Games/Logic Url: https://live.gnome.org/GnomeSudoku Source: http://download.gnome.org/sources/gnome-sudoku/3.8/%{name}-%{version}.tar.xz +# PATCH-FIX-UPSTREAM gnome-sudoku-numberbox-events.patch bgo#693736 dimstar@opensuse.org -- Fix NumberBox envents configuration with latest pygobject +Patch0: gnome-sudoku-numberbox-events.patch BuildRequires: hicolor-icon-theme BuildRequires: intltool >= 0.35.0 BuildRequires: update-desktop-files @@ -40,6 +42,7 @@ with the correct digits. %lang_package %prep %setup -q +%patch0 -p1 %build %configure