[prev in list] [next in list] [prev in thread] [next in thread]
List: sylpheed
Subject: [sylpheed:24304] PATCH: use text font in action.c
From: Alfons Hoogervorst <alfons () proteus ! demon ! nl>
Date: 2005-03-09 6:45:06
Message-ID: 20050309074506.5deb3407.alfons () proteus ! demon ! nl
[Download RAW message or body]
Lo,
IIRC text font is mostly a fixed font anyway, and since the actions grab
output from the shell, maybe it's a better idea to use the fixed font. Makes
the output more readable, especially if its tabular data, no?
Bye.
--
Ecuación algebraico sin solución posible,
a menos de poseer profundos conocimientos
en matemática - Revueltas (Ocho Por Radio)
["action.c.patch" (text/plain)]
--- action.c 2004-12-21 11:23:12.000000000 +0100
+++ ../../sylpheed-claws/src/action.c 2005-01-28 11:40:42.465121600 +0100
@@ -1463,6 +1463,7 @@
gint c, i;
gchar buf[BUFFSIZE];
#ifdef WIN32
+ gint j;
gint source = g_io_channel_unix_get_fd(channel);
#endif
@@ -1479,6 +1480,16 @@
while (TRUE) {
#ifdef WIN32
g_io_channel_read(channel, buf, sizeof(buf) - 1, &c);
+
+ /* strip CR's from actions output */
+ for (i = 0; i < c; i++) {
+ if (buf[i] == '\r') {
+ for (j = i + 1; j < c; j++)
+ buf[j-1] = buf[j];
+ --i;
+ --c;
+ }
+ }
#else
c = read(source, buf, sizeof(buf) - 1);
#endif
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic