[gnome-games] sudoku: imports fix, replace deprecated api
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] sudoku: imports fix, replace deprecated api
- Date: Wed, 6 Apr 2011 22:04:05 +0000 (UTC)
commit e7e4f9f8724102fd6672f014f4780a33d72aaa0c
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Thu Apr 7 00:03:59 2011 +0200
sudoku: imports fix, replace deprecated api
gnome-sudoku/src/lib/game_selector.py | 2 +-
gnome-sudoku/src/lib/number_box.py | 2 +-
gnome-sudoku/src/lib/sudoku_thumber.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/game_selector.py b/gnome-sudoku/src/lib/game_selector.py
index 14c0cb0..4a2c2a2 100644
--- a/gnome-sudoku/src/lib/game_selector.py
+++ b/gnome-sudoku/src/lib/game_selector.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-from gi.repository import Gtk,GObject
+from gi.repository import Gtk,GdkPixbuf,GObject
import os.path
import sudoku, saver, sudoku_maker
import sudoku_thumber
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index c4b2e71..cf16bf8 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -513,7 +513,7 @@ class NumberBox (Gtk.Widget):
# then draw on
# First set an internal flag telling that we're realized
- self.set_flags(self.flags() | Gtk.REALIZED)
+ self.set_realized(True)
# Create a new Gdk.Window which we can draw on.
# Also say that we want to receive exposure events by setting
diff --git a/gnome-sudoku/src/lib/sudoku_thumber.py b/gnome-sudoku/src/lib/sudoku_thumber.py
index 98f2c08..a9e2b13 100644
--- a/gnome-sudoku/src/lib/sudoku_thumber.py
+++ b/gnome-sudoku/src/lib/sudoku_thumber.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
-from gi.repository import Gtk
+from gi.repository import Gtk,GdkPixbuf
import cairo
SUDOKU_SIZE = 9
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]