[gnome-games/gnome-3-0] sodoku: gi port complete, fix Gtk.DirectionType.TAB_BACKWARD



commit 611f5eb4faff0d321400b5adb7534092d0b8f7a6
Author: John Stowers <john stowers gmail com>
Date:   Tue May 3 10:06:57 2011 +1200

    sodoku: gi port complete, fix Gtk.DirectionType.TAB_BACKWARD

 gnome-sudoku/src/lib/dancer.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/dancer.py b/gnome-sudoku/src/lib/dancer.py
index a585c28..6afb7bd 100644
--- a/gnome-sudoku/src/lib/dancer.py
+++ b/gnome-sudoku/src/lib/dancer.py
@@ -40,7 +40,7 @@ class GridDancer:
                 box.need_restore = True
             else:
                 box.need_restore = False
-        self.grid.get_toplevel().child_focus(Gtk.DIR_TAB_BACKWARD)
+        self.grid.get_toplevel().child_focus(Gtk.DirectionType.TAB_BACKWARD)
         self.dancing = True
         GObject.timeout_add(350, self.dance_grid)
 
@@ -126,7 +126,7 @@ if __name__ == '__main__':
 
         vbox = Gtk.VBox()
         vbox.pack_start(gsd, True, True, 0)
-        vbox.pack_end(button)
+        vbox.pack_end(button, True, True, 0)
         vbox.set_focus_child(button)
 
         window.add(vbox)



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