[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/gtkshell add_options.c callbacks.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/gtkshell add_options.c callbacks.c |
Date: |
Thu, 17 May 2007 16:17:29 +0000 |
CVSROOT: /sources/antiright
Module name: antiright
Changes by: Jeffrey Bedard <jefbed> 07/05/17 16:17:29
Modified files:
gtkshell : add_options.c callbacks.c
Log message:
Use conditional compilation for VTE-specific code.
Fixed argc/argv mixup.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/add_options.c?cvsroot=antiright&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/antiright/gtkshell/callbacks.c?cvsroot=antiright&r1=1.27&r2=1.28
Patches:
Index: add_options.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/add_options.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- add_options.c 17 May 2007 16:04:35 -0000 1.35
+++ add_options.c 17 May 2007 16:17:29 -0000 1.36
@@ -94,6 +94,7 @@
}
}
+#ifdef HAVE_VTE
static void
add_shell(GSH * gsh, const gchar * command)
{
@@ -103,6 +104,7 @@
/* Let GSH manage the terminal widget. */
$(gsh, manage, (GtkWidget *)terminal);
}
+#endfi /* HAVE_VTE */
static void
add_command_shell(GSH * gsh, const gchar * command)
@@ -168,7 +170,7 @@
#ifdef HAVE_VTE
add_shell(gsh, argv[*counter]);
#else /* not HAVE_VTE */
- add_command_shell(gsh, argc[*counter]);
+ add_command_shell(gsh, argv[*counter]);
#endif /* HAVE_VTE */
break;
Index: callbacks.c
===================================================================
RCS file: /sources/antiright/antiright/gtkshell/callbacks.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- callbacks.c 15 May 2007 19:04:12 -0000 1.27
+++ callbacks.c 17 May 2007 16:17:29 -0000 1.28
@@ -46,8 +46,10 @@
split_command=g_strsplit(command, "#", 2);
ar_asprintf(&feed_command, "%s\n", split_command[0]);
g_strfreev(split_command);
+#ifdef HAVE_VTE
vte_terminal_feed_child(VTE_TERMINAL(terminal),
feed_command, strlen(feed_command));
+#endif HAVE_VTE
g_free(feed_command);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Antiright-devel] antiright/gtkshell add_options.c callbacks.c,
Jeffrey Bedard <=