[gnome-games] gnotravex: Fix quit handlers not working with GtkApplication
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] gnotravex: Fix quit handlers not working with GtkApplication
- Date: Tue, 20 Dec 2011 07:33:04 +0000 (UTC)
commit 4f55ff2176c8aae80bee55f84ec3635a8d027d7a
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Dec 20 18:32:56 2011 +1100
gnotravex: Fix quit handlers not working with GtkApplication
gnotravex/src/gnotravex.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnotravex/src/gnotravex.vala b/gnotravex/src/gnotravex.vala
index 3ab98f0..391b3fa 100644
--- a/gnotravex/src/gnotravex.vala
+++ b/gnotravex/src/gnotravex.vala
@@ -224,7 +224,7 @@ public class Gnotravex : Gtk.Application
scores_dialog.set_message ("<b>%s</b>\n\n%s".printf (_("Congratulations!"), pos == 1 ? _("Your score is the best!") : _("Your score has made the top ten.")));
scores_dialog.set_buttons (GnomeGamesSupport.ScoresButtons.QUIT_BUTTON | GnomeGamesSupport.ScoresButtons.NEW_GAME_BUTTON);
if (scores_dialog.run () == Gtk.ResponseType.REJECT)
- Gtk.main_quit ();
+ window.destroy ();
else
new_game ();
scores_dialog.destroy ();
@@ -237,7 +237,7 @@ public class Gnotravex : Gtk.Application
private void quit_cb (Gtk.Action action)
{
- Gtk.main_quit ();
+ window.destroy ();
}
private void scores_cb (Gtk.Action action)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]