vte r2288 - in trunk: . src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2288 - in trunk: . src
- Date: Tue, 2 Dec 2008 12:25:42 +0000 (UTC)
Author: chpe
Date: Tue Dec 2 12:25:42 2008
New Revision: 2288
URL: http://svn.gnome.org/viewvc/vte?rev=2288&view=rev
Log:
* src/vteapp.c: (main): Catch the child-exited signal to the child's
exit code.
Modified:
trunk/ChangeLog
trunk/src/vteapp.c
Modified: trunk/src/vteapp.c
==============================================================================
--- trunk/src/vteapp.c (original)
+++ trunk/src/vteapp.c Tue Dec 2 12:25:42 2008
@@ -432,6 +432,13 @@
g_value_unset(&value);
}
+static void
+child_exit_cb(VteTerminal *terminal,
+ gpointer user_data)
+{
+ g_print("Child exited with status %x\n", vte_terminal_get_child_exit_status(terminal));
+}
+
int
main(int argc, char **argv)
{
@@ -670,6 +677,7 @@
if (!dbuffer) {
gtk_widget_set_double_buffered(widget, dbuffer);
}
+ g_signal_connect(terminal, "child-exited", G_CALLBACK(child_exit_cb), NULL);
if (show_object_notifications)
g_signal_connect(terminal, "notify", G_CALLBACK(terminal_notify_cb), NULL);
if (use_scrolled_window) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]