Package: tictactoe
Version: 0.8.1-5
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu oneiric ubuntu-patch
In Ubuntu, the attached patch was applied to achieve the following:
* Apply patch from Saket Choudhary <[email protected]> to properly
destroy the window when the Close button is activated. Thanks,
Saket! (LP: #793901)
Thanks for considering the patch.
-- System Information:
Debian Release: wheezy/sid
APT prefers oneiric-updates
APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500,
'oneiric-proposed'), (500, 'oneiric')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-5-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- tictactoe-0.8.1.orig/debian/patches/03_add_gtk_quit_event.diff
+++ tictactoe-0.8.1/debian/patches/03_add_gtk_quit_event.diff
@@ -0,0 +1,17 @@
+diff -Nur -x '*.orig' -x '*~' tictactoe-0.8.1//tictactoe.rb
tictactoe-0.8.1.new//tictactoe.rb
+--- tictactoe-0.8.1//tictactoe.rb 2011-07-19 16:15:47.000000000 -0400
++++ tictactoe-0.8.1.new//tictactoe.rb 2011-07-19 16:16:50.000000000 -0400
+@@ -529,11 +529,11 @@
+
+ # finally, add basic window event handling
+ window.signal_connect('delete_event') do
+- false
++ Gtk.main_quit
+ end
+
+ window.signal_connect('destroy') do
+- exit
++ Gtk.main_quit
+ end
+
+ # enter main event loop