diff options
author | Debarshi Ray <debarshir@gnome.org> | 2015-01-22 16:37:10 +0100 |
---|---|---|
committer | Debarshi Ray <debarshir@gnome.org> | 2015-02-03 12:03:01 +0100 |
commit | 837f7b9bf22a7db813bec98aa085854ef4e9d76d (patch) | |
tree | 67c3510a8964a8a09bfa4a99ba1804098a186189 | |
parent | aff5c199b1da581f57292addf238002cdc09b17b (diff) | |
download | vte-837f7b9bf22a7db813bec98aa085854ef4e9d76d.tar.gz |
vteapp: Add a test for the notification-received signal
-rw-r--r-- | src/app.vala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/app.vala b/src/app.vala index 67a58a24..be650582 100644 --- a/src/app.vala +++ b/src/app.vala @@ -102,6 +102,8 @@ class Window : Gtk.ApplicationWindow if (App.Options.object_notifications) terminal.notify.connect(notify_cb); + terminal.notification_received.connect(notification_received_cb); + /* Settings */ if (App.Options.no_double_buffer) terminal.set_double_buffered(true); @@ -508,6 +510,11 @@ class Window : Gtk.ApplicationWindow set_title(terminal.get_window_title()); } + private void notification_received_cb(Vte.Terminal terminal, string summary, string? body) + { + print ("[%s]: %s\n", summary, body); + } + } /* class Window */ class App : Gtk.Application |