[gnome-boxes] app: Add action to launch a box by name
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] app: Add action to launch a box by name
- Date: Tue, 19 May 2015 12:52:50 +0000 (UTC)
commit 48ff6174422546e5f03af6a78d9e58ee8270e9bb
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue May 19 13:38:11 2015 +0100
app: Add action to launch a box by name
https://bugzilla.gnome.org/show_bug.cgi?id=746751
src/app.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index b3f8a38..ac2a646 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -78,6 +78,10 @@ private class Boxes.App: Gtk.Application {
});
add_action (action);
+ action = new GLib.SimpleAction ("launch-box", GLib.VariantType.STRING);
+ action.activate.connect ((param) => { open_name (param.get_string ()); });
+ add_action (action);
+
action = new GLib.SimpleAction ("about", null);
action.activate.connect (() => {
string[] authors = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]