[gnome-tetravex] Use GApplication's quit function.



commit 5908ab10db03b6f0e6480bb5b6fcb20de9e1254e
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Sat Jan 31 22:21:23 2015 +0100

    Use GApplication's quit function.

 src/gnome-tetravex.vala |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-tetravex.vala b/src/gnome-tetravex.vala
index 657f62f..83d7ef1 100644
--- a/src/gnome-tetravex.vala
+++ b/src/gnome-tetravex.vala
@@ -46,7 +46,7 @@ public class Tetravex : Gtk.Application
         { "pause",          pause_cb                                        },
         { "solve",          solve_cb                                        },
         { "scores",         scores_cb                                       },
-        { "quit",           quit_cb                                         },
+        { "quit",           quit                                            },
         { "move-up",        move_up_cb                                      },
         { "move-down",      move_down_cb                                    },
         { "move-left",      move_left_cb                                    },
@@ -321,11 +321,6 @@ public class Tetravex : Gtk.Application
         new_game ();
     }
 
-    private void quit_cb ()
-    {
-        window.destroy ();
-    }
-
     private void scores_cb ()
     {
         show_scores ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]