Fixed "feature" where actions's output was duplicated
authorMelvin Hadasht <melvin.hadasht@free.fr>
Tue, 12 Feb 2002 01:20:07 +0000 (01:20 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Tue, 12 Feb 2002 01:20:07 +0000 (01:20 +0000)
instead of refreshed while monitoring.
Removed some debug code in actions code.

ChangeLog.claws
configure.in
src/prefs_actions.c

index 2224b79..2614471 100644 (file)
@@ -1,3 +1,10 @@
+2002-02-12 [melvin]    0.7.0claws64
+
+       * src/prefs_actions.c
+               Fixed "feature" where children's output was duplicated 
+               instead of refreshed while monitoring.
+               Removed some debug code.
+
 2002-02-12 [christoph] 0.7.0claws63
 
        * src/compose.c
 2002-02-12 [christoph] 0.7.0claws63
 
        * src/compose.c
index 36ddc41..2228177 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws63
+EXTRA_VERSION=claws64
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 4522154..9f06af6 100644 (file)
@@ -309,7 +309,7 @@ static void prefs_actions_create(MainWindow *mainwin)
                                      "provided hidden text to command\n"
                                      " End with:\n   '|' to replace "
                                      "message body or selection with command "
                                      "provided hidden text to command\n"
                                      " End with:\n   '|' to replace "
                                      "message body or selection with command "
-                                     "output\n   '&' to"
+                                     "output\n   '&' to "
                                      "run command asynchronously\n Use '%f' "
                                      "for message file name\n and '%F' for the"
                                      " list of the file names of selected "
                                      "run command asynchronously\n Use '%f' "
                                      "for message file name\n and '%F' for the"
                                      " list of the file names of selected "
@@ -1389,7 +1389,8 @@ static void update_io_dialog(Children *children)
                gtk_widget_show(children->scrolledwin);
                gtk_text_freeze(GTK_TEXT(text));
                gtk_text_set_point(GTK_TEXT(text), 0);
                gtk_widget_show(children->scrolledwin);
                gtk_text_freeze(GTK_TEXT(text));
                gtk_text_set_point(GTK_TEXT(text), 0);
-               gtk_text_forward_delete(GTK_TEXT(text), -1);
+               gtk_text_forward_delete(GTK_TEXT(text), 
+                                       gtk_text_get_length(GTK_TEXT(text)));
                for (cur = children->list; cur; cur = cur->next)
                {
                        child_info = (ChildInfo *) cur->data;
                for (cur = children->list; cur; cur = cur->next)
                {
                        child_info = (ChildInfo *) cur->data;
@@ -1564,10 +1565,6 @@ static void catch_output(gpointer data, gint source, GdkInputCondition cond)
                        c = read(source, buf, PREFSBUFSIZE - 1);
                        if (c == 0) 
                                break;
                        c = read(source, buf, PREFSBUFSIZE - 1);
                        if (c == 0) 
                                break;
-                       if (source == child_info->chld_out) 
-                               printf("stdout\n");
-                       else
-                               printf("stderr\n");
                        for (i = 0; i < c; i++)
                                child_info->output = g_string_append_c(
                                                child_info->output, buf[i]);
                        for (i = 0; i < c; i++)
                                child_info->output = g_string_append_c(
                                                child_info->output, buf[i]);