[gnome-games/applygsoc2009: 14/76] Make attribute 'vb' a local variable



commit 559a6a5fd86bb37583649d0d218dd117daebb2dc
Author: Pablo Castellano <pablog src gnome org>
Date:   Thu Aug 26 04:47:09 2010 +0200

    Make attribute 'vb' a local variable
    
    It doesn't have to be instance attribute.

 gnome-sudoku/src/lib/main.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gnome-sudoku/src/lib/main.py b/gnome-sudoku/src/lib/main.py
index ee4341a..1ec3517 100644
--- a/gnome-sudoku/src/lib/main.py
+++ b/gnome-sudoku/src/lib/main.py
@@ -310,23 +310,23 @@ class UI (gconf_wrapper.GConfWrapper):
                             self.autosave)
 
     def setup_main_boxes (self):
-        self.vb = gtk.VBox()
+        vb = gtk.VBox()
         # Add menu bar and toolbar...
         mb = self.uimanager.get_widget('/MenuBar')
         mb.show()
-        self.vb.pack_start(mb, fill = False, expand = False)
+        vb.pack_start(mb, fill = False, expand = False)
         self.tb = self.uimanager.get_widget('/Toolbar')
-        self.vb.pack_start(self.tb, fill = False, expand = False)
+        vb.pack_start(self.tb, fill = False, expand = False)
         self.main_area = gtk.HBox()
-        self.vb.pack_start(self.main_area, True, padding = 12)
+        vb.pack_start(self.main_area, True, padding = 12)
         self.main_area.pack_start(self.gsd, padding = 6)
         self.main_actions.set_visible(True)
         self.game_box = gtk.VBox()
         self.main_area.show()
-        self.vb.show()
+        vb.show()
         self.game_box.show()
         self.main_area.pack_start(self.game_box, False, padding = 12)
-        self.w.add(self.vb)
+        self.w.add(vb)
 
     def setup_toggles (self):
         # sync up toggles with gconf values...



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