Accepting request 163688 from GNOME:Factory

- Add gnome-sudoku-numberbox-events.patch: Fix NumberBox envents
  configuration with latest pygobject. (forwarded request 163686 from Zaitor)

OBS-URL: https://build.opensuse.org/request/show/163688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnome-sudoku?expand=0&rev=3
This commit is contained in:
Stephan Kulow 2013-04-12 18:32:31 +00:00 committed by Git OBS Bridge
commit 470b784bb6
3 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,26 @@
From c82fc3131802f4fe1f069facb9aae833cc6cdc5f Mon Sep 17 00:00:00 2001
From: Yanko Kaneti <yaneti@declera.com>
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

View File

@ -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

View File

@ -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