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

Jon Dowland jon at kiriath.lan
Wed Sep 23 21:46:00 UTC 2009


The following commit has been merged in the yaml branch:
commit fb2a4c2668ec214f5c7e1fd7e0e3e9968cccd414
Author: Jon Dowland <jon at kiriath.lan>
Date:   Wed Sep 23 21:56:32 2009 +0100

    next button -> assistant

diff --git a/gdp.glade b/gdp.glade
index b8d9168..df4e3f0 100644
--- a/gdp.glade
+++ b/gdp.glade
@@ -57,7 +57,7 @@
               </packing>
             </child>
             <child>
-              <object class="GtkButton" id="button2">
+              <object class="GtkButton" id="nextbutton">
                 <property name="label">gtk-media-next</property>
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
@@ -77,4 +77,31 @@
       </object>
     </child>
   </object>
+  <object class="GtkAssistant" id="assistant1">
+    <property name="border_width">12</property>
+    <child>
+      <object class="GtkLabel" id="label2">
+        <property name="visible">True</property>
+        <property name="label" translatable="yes">Introduction page</property>
+      </object>
+      <packing>
+        <property name="page_type">intro</property>
+      </packing>
+    </child>
+    <child>
+      <object class="GtkLabel" id="label3">
+        <property name="visible">True</property>
+        <property name="label" translatable="yes">Content page</property>
+      </object>
+    </child>
+    <child>
+      <object class="GtkLabel" id="label4">
+        <property name="visible">True</property>
+        <property name="label" translatable="yes">Confirmation page</property>
+      </object>
+      <packing>
+        <property name="page_type">confirm</property>
+      </packing>
+    </child>
+  </object>
 </interface>
diff --git a/gdp.py b/gdp.py
old mode 100644
new mode 100755
index 979f803..03d1dad
--- a/gdp.py
+++ b/gdp.py
@@ -36,6 +36,8 @@ class View:
 		self.window = self.builder.get_object("window1")
 		self.window.connect("destroy", gtk.main_quit)
 		self.builder.get_object("quitbutton").connect("clicked", gtk.main_quit)
+		self.builder.get_object("nextbutton").connect("clicked", \
+			self.continue_clicked)
 
 		treeview = self.builder.get_object("treeview1")
 		cell = gtk.CellRendererText()
@@ -48,6 +50,12 @@ class View:
 		liststor = self.builder.get_object("liststore1")
 		liststor.append([game['longname']])
 
+	def continue_clicked(self,button):
+		asst = self.builder.get_object("assistant1")
+		asst.connect("destroy", gtk.main_quit)
+		asst.show()
+		self.window.hide()
+
 	def go(self):
 		self.window.show()
 		gtk.main()

-- 
Installer for game data files



More information about the Pkg-games-commits mailing list