[SCM] Installer for game data files branch, yaml, updated. aabd8e6c4fb5b687aa3693e61f41ca2a7338d914

Jon Dowland jmtd at debian.org
Wed Sep 23 14:15:24 UTC 2009


The following commit has been merged in the yaml branch:
commit aabd8e6c4fb5b687aa3693e61f41ca2a7338d914
Author: Jon Dowland <jmtd at debian.org>
Date:   Wed Sep 23 15:14:54 2009 +0100

    function style tidy-up + rm reduntant lines

diff --git a/gdp.py b/gdp.py
index 59f55e7..979f803 100644
--- a/gdp.py
+++ b/gdp.py
@@ -4,8 +4,10 @@ import yaml
 class Controller:
 	def __init__(self):
 		pass
+
 	def add_view(self,v):
 		self.view = v
+
 	def get_model(self):
 		m = []
 		for game in [ x for x in os.listdir("supported") \
@@ -14,6 +16,7 @@ class Controller:
 				m.append(y)
 				self.view.supported_game_added(y)
 		return m
+
 	def go(self):
 			self.view.go()
 
@@ -28,7 +31,6 @@ class View:
 			gtk.init_check()
 		except RuntimeError, e:
 			sys.exit('E: %s. Exiting.' % e)
-		gtk.gdk.threads_init()
 		self.builder = gtk.Builder()
 		self.builder.add_from_file("gdp.glade")
 		self.window = self.builder.get_object("window1")
@@ -36,8 +38,6 @@ class View:
 		self.builder.get_object("quitbutton").connect("clicked", gtk.main_quit)
 
 		treeview = self.builder.get_object("treeview1")
-
-		treeview = self.builder.get_object("treeview1")
 		cell = gtk.CellRendererText()
 		column = gtk.TreeViewColumn('game')
 		treeview.append_column(column)
@@ -45,9 +45,9 @@ class View:
 		column.add_attribute(cell, "text", 0)
 
 	def supported_game_added(self,game):
-		treeview = self.builder.get_object("treeview1")
 		liststor = self.builder.get_object("liststore1")
 		liststor.append([game['longname']])
+
 	def go(self):
 		self.window.show()
 		gtk.main()

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list