[latexila/wip/app-menu: 2/4] app: implement quit action
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/app-menu: 2/4] app: implement quit action
- Date: Fri, 6 Nov 2015 15:05:30 +0000 (UTC)
commit 5c184ccbe9f08bd5524638127b2e3079d06d0846
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 6 14:12:09 2015 +0100
app: implement quit action
src/latexila_app.vala | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/latexila_app.vala b/src/latexila_app.vala
index 273c670..931534f 100644
--- a/src/latexila_app.vala
+++ b/src/latexila_app.vala
@@ -110,6 +110,15 @@ public class LatexilaApp : Gtk.Application
open_documents (files);
});
+
+ /* Quit */
+ SimpleAction quit_action = new SimpleAction ("quit", null);
+ add_action (quit_action);
+
+ quit_action.activate.connect (() =>
+ {
+ message ("quit!");
+ });
}
public static LatexilaApp get_instance ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]