[gnome-games] sodoku: a little more gi porting



commit c9eb6a1641c61466ee9c1c79c510d9cc8204bc02
Author: John Stowers <john stowers gmail com>
Date:   Wed Apr 6 02:08:32 2011 +1200

    sodoku: a little more gi porting

 gnome-sudoku/src/lib/main.py                       |   12 ++++++------
 gnome-sudoku/src/lib/number_box.py                 |    4 ++--
 .../help/de/figures/gnotravex-main-window.png      |  Bin 32388 -> 40960 bytes
 3 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index 38542b0..3f6daa3 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -31,13 +31,13 @@ for filename, stock_id in [('footprints.png', 'tracks'), ]:
         print 'Failed to load pixbuf: %s' % e
         continue
     STOCK_PIXBUFS[stock_id] = pb
-    iconset = Gtk.IconSet(pb)
+    iconset = Gtk.IconSet.new_from_pixbuf(pb)
     ICON_FACTORY.add(stock_id, iconset)
     ICON_FACTORY.add_default()
 
-Gtk.stock_add([('tracks',
-                _('Track moves'),
-                0, 0, ""), ])
+#Gtk.stock_add([('tracks',
+#                _('Track moves'),
+#                0, 0, ""), ])
 
 def inactivate_new_game_etc (fun):
     def inactivate_new_game_etc_ (ui, *args, **kwargs):
@@ -315,9 +315,9 @@ class UI (gconf_wrapper.GConfWrapper):
         # Add menu bar and toolbar...
         mb = self.uimanager.get_widget('/MenuBar')
         mb.show()
-        self.vb.pack_start(mb, fill = False, expand = False)
+        self.vb.pack_start(mb, False, False, 0)
         self.tb = self.uimanager.get_widget('/Toolbar')
-        self.vb.pack_start(self.tb, fill = False, expand = False)
+        self.vb.pack_start(self.tb, False, False, 0)
         self.main_area = Gtk.HBox()
         self.swallower = dialog_swallower.SwappableArea(self.main_area)
         self.swallower.show()
diff --git a/gnome-sudoku/src/lib/number_box.py b/gnome-sudoku/src/lib/number_box.py
index 052d8b9..c4b2e71 100644
--- a/gnome-sudoku/src/lib/number_box.py
+++ b/gnome-sudoku/src/lib/number_box.py
@@ -1,7 +1,7 @@
 # -*- coding: utf-8 -*-
 #!/usr/bin/python
 
-from gi.repository import Gtk,GObject,Pango
+from gi.repository import Gtk,Gdk,GObject,Pango
 import cairo
 import math
 import tracker_info
@@ -104,7 +104,7 @@ class NumberBox (Gtk.Widget):
         self.upper = upper
         self.parent_win = None
         self.timer = None
-        self.font = self.style.font_desc
+        self.font = self.get_style().font_desc
         self.font.set_size(BASE_FONT_SIZE)
         self.note_font = self.font.copy()
         self.note_font.set_size(NOTE_FONT_SIZE)
diff --git a/gnotravex/help/de/figures/gnotravex-main-window.png b/gnotravex/help/de/figures/gnotravex-main-window.png
index 55122fb..5855f4e 100644
Binary files a/gnotravex/help/de/figures/gnotravex-main-window.png and b/gnotravex/help/de/figures/gnotravex-main-window.png differ



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