[vte/wip/command-notify: 2/2] vteapp: Add a test for the command-terminated signal
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/wip/command-notify: 2/2] vteapp: Add a test for the command-terminated signal
- Date: Wed, 7 Jan 2015 15:04:34 +0000 (UTC)
commit 256d56568a41ea17e5e22535a27345cd5164704c
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Jan 7 16:02:38 2015 +0100
vteapp: Add a test for the command-terminated signal
src/app.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 67a58a2..1c1931a 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.command_terminated.connect(command_terminated_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 command_terminated_cb(Vte.Terminal terminal, string cmdline)
+ {
+ print ("%s", cmdline);
+ }
+
} /* class Window */
class App : Gtk.Application
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]