[latexila/wip/app-menu] app: implement quit action
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila/wip/app-menu] app: implement quit action
- Date: Fri, 6 Nov 2015 13:28:51 +0000 (UTC)
commit 37f5616e821595d8cdef6f1123933ebe9bf66981
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]