Skip to content

Commit eaa3f51

Browse files
committed
Updated use of application, and added credits
1 parent 1e7b021 commit eaa3f51

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed
Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
public void main () {
2-
// TODO - need access to the application for this to work.
3-
//var application = workbench.application as GLib.Application;
2+
var application = workbench.application as GLib.Application;
43

54
var notification = new Notification ("Lunch is ready");
65
notification.set_body (
@@ -15,26 +14,26 @@ public void main () {
1514

1615
var simple_button = workbench.builder.get_object ("button_simple") as Gtk.Button;
1716
simple_button.clicked.connect (() => {
18-
//application.send_notification ("lunch-is-ready", notification);
17+
application.send_notification ("lunch-is-ready", notification);
1918
});
2019

2120
var action_reply = new SimpleAction ("notification-reply", null);
2221
action_reply.activate.connect (() => {
2322
stdout.printf ("Reply");
2423
});
25-
//application.add_action (action_reply);
24+
application.add_action (action_reply);
2625

2726
var action_accept = new SimpleAction ("notification-accept", null);
2827
action_accept.activate.connect (() => {
2928
stdout.printf ("Accept");
3029
});
31-
//application.add_action (action_accept);
30+
application.add_action (action_accept);
3231

3332
var action_decline = new SimpleAction ("notification-decline", null);
3433
action_decline.activate.connect (() => {
3534
stdout.printf ("Decline");
3635
});
37-
//application.add_action (action_decline);
38-
}
3936

37+
application.add_action (action_decline);
38+
}
4039

src/Library/demos/Toasts/main.vala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public void main () {
3131
string val = target.get_string ();
3232
stdout.printf ("undo %s", val);
3333
});
34-
// TODO - Need access to the application for this to work.
35-
//workbench.application.add_action (action_console);
34+
35+
workbench.application.add_action (action_console);
3636
}
3737

src/about.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ ${getBlueprintVersion()}
4343
dialog.add_credit_section("Contributors", [
4444
"Lorenz Wildberg https://gitlab.gnome.org/lwildberg",
4545
"Tobias Bernard <tbernard@gnome.org>",
46+
"Ben Foote http://www.bengineeri.ng",
4647
// Add yourself as
4748
// "John Doe",
4849
// or

0 commit comments

Comments
 (0)