[gnome-games/gnome-3-0] sudoku: imports fix, replace deprecated api



commit 5dee397a08939a4e7090edefb131efb4057c71d5
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]