[SCM] Installer for game data files branch, gui, updated. 9092133f0b2589fd66ef16e6348f2c3989f9aa4c

Jon Dowland jon at kiriath.lan
Fri Sep 25 17:28:41 UTC 2009


The following commit has been merged in the gui branch:
commit 62d338b4e95a4f2fed22c8a94ce97c88f4f865be
Author: Jon Dowland <jmtd at debian.org>
Date:   Wed Sep 23 22:45:45 2009 +0100

    second page: filechooser

diff --git a/gdp.glade b/gdp.glade
index d06e1c6..b0c4f38 100644
--- a/gdp.glade
+++ b/gdp.glade
@@ -48,11 +48,37 @@
         <property name="page_type">intro</property>
       </packing>
     </child>
-    <child>
-      <placeholder/>
-    </child>
-    <child>
-      <placeholder/>
+  </object>
+  <object class="GtkFileChooserDialog" id="filechooserdialog1">
+    <property name="border_width">5</property>
+    <property name="type_hint">normal</property>
+    <property name="has_separator">False</property>
+    <child internal-child="vbox">
+      <object class="GtkVBox" id="dialog-vbox1">
+        <property name="visible">True</property>
+        <property name="orientation">vertical</property>
+        <property name="spacing">2</property>
+        <child>
+          <placeholder/>
+        </child>
+        <child internal-child="action_area">
+          <object class="GtkHButtonBox" id="dialog-action_area1">
+            <property name="visible">True</property>
+            <property name="layout_style">end</property>
+            <child>
+              <placeholder/>
+            </child>
+            <child>
+              <placeholder/>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="pack_type">end</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+      </object>
     </child>
   </object>
 </interface>
diff --git a/gdp.py b/gdp.py
index bbeb4a8..8af4784 100755
--- a/gdp.py
+++ b/gdp.py
@@ -43,6 +43,7 @@ class View:
 		column.pack_start(cell, False)
 		column.add_attribute(cell, "text", 0)
 		treeview.connect("cursor-changed", self.game_row_selected)
+		self.setup_second_page()
 
 	def game_row_selected(self, treeview):
 		c = treeview.get_cursor()
@@ -50,6 +51,17 @@ class View:
 			widget = self.window.get_nth_page(self.window.get_current_page())
 			self.window.set_page_complete(widget, True)
 
+	def setup_second_page(self):
+		"""setup the assistant's second page. Assume that the first
+		action for whatever game is selected, is a "install file"
+		type one."""
+		w = self.builder.get_object("filechooserdialog1")
+		children = w.get_children()
+		print "there are %d children" % len(children)
+		w.remove(children[0])
+		self.window.append_page(children[0])
+		print "zomg"
+
 	def supported_game_added(self,game):
 		liststor = self.builder.get_object("liststore1")
 		liststor.append([game['longname']])

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list