GNOME Bugzilla – Bug 665976
Port to Vala
Last modified: 2012-11-11 22:52:56 UTC
Created attachment 203226 [details] [review] A quick stab at porting this to Vala Port to Vala
Created attachment 203313 [details] [review] Port from C to Vala
Created attachment 203324 [details] [review] Port from C to Vala
Created attachment 203327 [details] [review] Port from C to Vala
(anyone is welcome to pick this patch up and finish it if they want)
Created attachment 204370 [details] [review] Port from C to Vala
Created attachment 204408 [details] [review] Port from C to Vala
I am looking at updating this patch. I will remove the libgames-support stuff, add gtk.application, remove status bar and move the messages to a new tool bar. I made some progress but it's not finished yet (I am new to vala/gtk3). Hopefully I will post a new patch (for the new split-off gnome-klotski repo) in a couple of days.
Hi John, That sounds really great. It would be very much appreciated.
Created attachment 228019 [details] [review] vala version of gnome-klotski
From a quick glance this looks really good. I am assuming that the patch is tested so I plan to commit this tonight! Just a few comments: Do we still need the gmodule? (in src/Makefile.am) It should not be necessary with the glib actionentry. I also see no direct use of pango. There is also some commented out code about a game clock? That does not belong in this game right?
It should be OK to commit it. I tried removing the gmodule and pango from src/Makefile.am and it still works so as you say it's not needed. Same goes for the clock code which I think is part of some toolbar code I copied from tetravex. Tetravex displays a clock and klotski doesn't so I should have deleted that.
Comment on attachment 228019 [details] [review] vala version of gnome-klotski Committed to master:http://git.gnome.org/browse/gnome-klotski/commit/?id=bb374fb52e35dca6ff7f8b1e16543b149b888f49 Thanks John and Robert
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.