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

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


The following commit has been merged in the gui branch:
commit 74e7d9acbeecff23895e5d8599aec0980650b57c
Author: Jon Dowland <jmtd at debian.org>
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