[gnome-games] ui: Rename quit() into quit_application() in Application
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] ui: Rename quit() into quit_application() in Application
- Date: Sun, 14 Aug 2016 13:21:13 +0000 (UTC)
commit 2d8f28a7b3f9c73c7b373a6e7595ebd2a03d03bd
Author: Adrien Plazas <kekun plazas laposte net>
Date: Sat Aug 13 10:31:47 2016 +0200
ui: Rename quit() into quit_application() in Application
This avoids overriding the quit() method implicitely, which produced a
compile time warning.
https://bugzilla.gnome.org/show_bug.cgi?id=769844
src/ui/application.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/ui/application.vala b/src/ui/application.vala
index a4e096a..64d8d6c 100644
--- a/src/ui/application.vala
+++ b/src/ui/application.vala
@@ -44,14 +44,14 @@ public class Games.Application : Gtk.Application {
add_action (about_action);
SimpleAction quit_action = new SimpleAction ("quit", null);
- quit_action.activate.connect (quit);
+ quit_action.activate.connect (quit_application);
add_action (quit_action);
}
private void add_signal_handlers () {
var interrupt_source = new Unix.SignalSource (ProcessSignal.INT);
interrupt_source.set_callback (() => {
- quit ();
+ quit_application ();
return Source.CONTINUE;
});
@@ -118,7 +118,7 @@ public class Games.Application : Gtk.Application {
window = new ApplicationWindow (collection);
this.add_window (window);
window.destroy.connect (() => {
- quit ();
+ quit_application ();
});
window.show ();
}
@@ -187,11 +187,11 @@ public class Games.Application : Gtk.Application {
dialog.present ();
}
- private void quit () {
+ private void quit_application () {
if (window != null && !window.quit_game ())
return;
- base.quit ();
+ quit ();
}
private static Gtk.CssProvider load_css (string css) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]