The following commit has been merged in the yaml branch:
commit 5dd8da743a1db9a56fcfed3919ae2aa2e59c5771
Author: Jon Dowland <[email protected]>
Date:   Thu Sep 24 18:18:02 2009 +0100

    determine selected game

diff --git a/gdp.py b/gdp.py
index a3ead93..44d1e24 100755
--- a/gdp.py
+++ b/gdp.py
@@ -56,6 +56,14 @@ class View:
                treeview.connect("row-activated", lambda treeview,path,col:
                        
self.window.set_current_page(self.window.get_current_page()+1))
                self.setup_filechooser_page()
+               self.window.set_forward_page_func(self.forward_page_func, None)
+
+       def forward_page_func(self, current_page, data):
+               if 0 == current_page:
+                       treeview = self.builder.get_object("treeview1")
+                       path,col = treeview.get_cursor()
+                       print "selected game is %d" % path[0]
+               return current_page + 1
 
        def setup_filechooser_page(self):
                """setup the assistant's second page. Assume that the first

-- 
Installer for game data files

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-games-commits

Reply via email to