more sync with 0.7.8cvs21
authorPaul Mangan <paul@claws-mail.org>
Mon, 8 Jul 2002 08:39:00 +0000 (08:39 +0000)
committerPaul Mangan <paul@claws-mail.org>
Mon, 8 Jul 2002 08:39:00 +0000 (08:39 +0000)
ChangeLog
ChangeLog.claws
ChangeLog.jp
configure.in
src/prefs_actions.c

index 9deb7069ee378c186bef8fd2e4a95e7c0b915b85..3a2b9d4b880ebb151429471d56105cd7f49b236d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@
          src/about.c: removed the copyright notice for libkcc.
        * src/codeconv.c: conv_guess_encoding(): check for ASCII code first
          for speedup.
+       * src/prefs_actions.c: removed unnecessary spaces/tabs.
 
 2002-07-05
 
index 5c300d7cbf5fc57e7ec857c51115b193deda4838..cfd0bb35bf611c10ee981d422533e9575cc0186e 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-08     [paul]  0.7.8claws55
+
+       * more sync with 0.7.8cvs21
+               see ChangeLog 2002-07-08
+
 2002-07-08 [paul]      0.7.8claws54
 
        * sync with 0.7.8cvs21
index 9a930a86385f1cd216f81ae1bfd1783b6738dee7..7e67a4600d622719f69bd01fae03a06c16fa2967 100644 (file)
@@ -5,6 +5,7 @@
          src/about.c: libkcc ¤ÎÃøºî¸¢É½¼¨¤òºï½ü¡£
        * src/codeconv.c: conv_guess_encoding(): ¥¹¥Ô¡¼¥É¥¢¥Ã¥×¤Î¤¿¤á¤Ë
          ºÇ½é¤Ë ASCII ¥³¡¼¥É¤ò¥Á¥§¥Ã¥¯¡£
+       * src/prefs_actions.c: ÉÔÍפʥ¹¥Ú¡¼¥¹/¥¿¥Ö¤ò½üµî¡£
 
 2002-07-05
 
index 1242cc7d10efd927ff888ac42e569d2193c1e2dc..679d9a9d4a0a6497eafc4c3d16ee0458dafac907 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws54
+EXTRA_VERSION=claws55
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 0c30d98dd85c669532318e4902f55340aa576dbb..562a412062e24d9e98bda379691639de1c878954 100644 (file)
 #include "mimeview.h"
 
 #define WAIT_LAP 10000
-                                               
+
 typedef enum
 {
        ACTION_NONE     = 1 << 0,
-       ACTION_PIPE_IN  = 1 << 1,
-       ACTION_PIPE_OUT = 1 << 2,
+       ACTION_PIPE_IN  = 1 << 1,
+       ACTION_PIPE_OUT = 1 << 2,
        ACTION_SINGLE   = 1 << 3,
-       ACTION_MULTIPLE = 1 << 4,
+       ACTION_MULTIPLE = 1 << 4,
        ACTION_ASYNC    = 1 << 5,
-       ACTION_OPEN_IN  = 1 << 6,
-       ACTION_HIDE_IN  = 1 << 7,
+       ACTION_OPEN_IN  = 1 << 6,
+       ACTION_HIDE_IN  = 1 << 7,
        ACTION_ERROR    = 1 << 8,
 } ActionType;
 
@@ -83,18 +83,18 @@ typedef struct _ChildInfo ChildInfo;
 
 struct _Children
 {
-       GtkWidget       *window;
-       GtkWidget       *dialog;
-       GtkWidget       *text;
-       GtkWidget       *input_entry;
-       GtkWidget       *input_hbox;
-       GtkWidget       *abort_btn;
-       GtkWidget       *hide_btn;
-       GtkWidget       *scrolledwin;
-
-       gchar           *action;
+       GtkWidget       *window;
+       GtkWidget       *dialog;
+       GtkWidget       *text;
+       GtkWidget       *input_entry;
+       GtkWidget       *input_hbox;
+       GtkWidget       *abort_btn;
+       GtkWidget       *hide_btn;
+       GtkWidget       *scrolledwin;
+
+       gchar           *action;
        guint            timer;
-       GSList          *list;
+       GSList          *list;
        gint             nb;
        gint             open_in;
        gboolean         output;
@@ -103,10 +103,10 @@ struct _Children
 struct _ChildInfo
 {
        Children        *children;
-       gchar           *cmd;
-       guint            type;
-       pid_t            pid;
-       gint             chld_in;
+       gchar           *cmd;
+       guint            type;
+       pid_t            pid;
+       gint             chld_in;
        gint             chld_out;
        gint             chld_err;
        gint             chld_status;
@@ -159,8 +159,8 @@ static void update_actions_menu             (GtkItemFactory *ifactory,
                                         gpointer        callback,
                                         gpointer        data);
 static void mainwin_actions_execute_cb         (MainWindow     *mainwin,
-                                        guint           action_nb,
-                                        GtkWidget      *widget);
+                                        guint           action_nb,
+                                        GtkWidget      *widget);
 static void compose_actions_execute_cb (Compose        *compose,
                                         guint           action_nb,
                                         GtkWidget      *widget);
@@ -184,8 +184,8 @@ static GString *parse_append_msgpart        (GString        *cmd,
                                         MimeView       *mimeview);
 
 ChildInfo *fork_child                  (gchar          *cmd,
-                                        gint            action_type,
-                                        GtkWidget      *text,
+                                        gint            action_type,
+                                        GtkWidget      *text,
                                         Children       *children);
 
 static gint wait_for_children          (gpointer        data);
@@ -221,7 +221,7 @@ void prefs_actions_open(MainWindow *mainwin)
 
        if (!actions.window)
                prefs_actions_create(mainwin);
-       
+
        manage_window_set_transient(GTK_WINDOW(actions.window));
        gtk_widget_grab_focus(actions.ok_btn);
 
@@ -265,7 +265,7 @@ static void prefs_actions_create(MainWindow *mainwin)
        GtkWidget *btn_vbox;
        GtkWidget *up_btn;
        GtkWidget *down_btn;
-       
+
        gchar *title[1];
 
        debug_print(_("Creating actions setting window...\n"));
@@ -441,7 +441,7 @@ static void prefs_actions_create(MainWindow *mainwin)
 
        actions.name_entry = name_entry;
        actions.cmd_entry  = cmd_entry;
-       
+
        actions.actions_clist = cond_clist;
 }
 
@@ -453,7 +453,7 @@ static void prefs_actions_help_cb(GtkWidget *w, gpointer data)
                gtk_widget_hide(GTK_WIDGET(data));
 }
 
-void prefs_actions_read_config()
+void prefs_actions_read_config(void)
 {
        gchar *rcpath;
        FILE *fp;
@@ -476,7 +476,7 @@ void prefs_actions_read_config()
                        g_slist_remove(prefs_common.actions_list, act);
                g_free(act);
        }
-       
+
        while (fgets(buf, sizeof(buf), fp) != NULL) {
                g_strchomp(buf);
                act = strstr(buf, ": ");
@@ -489,7 +489,7 @@ void prefs_actions_read_config()
        fclose(fp);
 }
 
-void prefs_actions_write_config()
+void prefs_actions_write_config(void)
 {
        gchar *rcpath;
        PrefFile *pfile;
@@ -527,7 +527,7 @@ static guint get_action_type(gchar *action)
 {
        gchar *p;
        guint action_type = ACTION_NONE;
-       
+
        g_return_val_if_fail(action,  ACTION_ERROR);
        g_return_val_if_fail(*action, ACTION_ERROR);
 
@@ -598,7 +598,7 @@ static gchar *parse_action_cmd(gchar *action, MsgInfo *msginfo,
                        switch (p[1]) {
                        case 'f':
                                cmd = parse_append_filename(cmd, msginfo);
-                               p++;    
+                               p++;
                                break;
                        case 'F':
                                for (cur = GTK_CLIST(ctree)->selection;
@@ -666,7 +666,7 @@ static GString *parse_append_msgpart(GString *cmd, MsgInfo *msginfo,
        MimeInfo *partinfo;
        gint      ret;
        FILE     *fp;
-       
+
        if (!mimeview) {
 #if USE_GPGME
                if ((fp = procmsg_open_message_decrypted(msginfo, &partinfo))
@@ -675,8 +675,7 @@ static GString *parse_append_msgpart(GString *cmd, MsgInfo *msginfo,
                        return NULL;
                }
 #else
-               if ((fp = procmsg_open_message(msginfo)) == NULL)
-               {
+               if ((fp = procmsg_open_message(msginfo)) == NULL) {
                        alertpanel_error(_("Could not get message file."));
                        return NULL;
                }
@@ -747,14 +746,15 @@ static void prefs_actions_set_dialog(void)
                row = gtk_clist_append(clist, action);
                gtk_clist_set_row_data(clist, row, action[0]);
        }
-       
+
        gtk_clist_thaw(clist);
 }
+
 static void prefs_actions_set_list(void)
 {
        gint row = 1;
        gchar *action;
-       
+
        g_slist_free(prefs_common.actions_list);
        prefs_common.actions_list = NULL;
 
@@ -765,7 +765,6 @@ static void prefs_actions_set_list(void)
                row++;
        }
 }
-               
 
 #define GET_ENTRY(entry) \
        entry_text = gtk_entry_get_text(GTK_ENTRY(entry))
@@ -777,11 +776,8 @@ static gint prefs_actions_clist_set_row(gint row)
        gint len;
        gchar action[PREFSBUFSIZE];
        gchar *buf[1];
-       
-       
-       g_return_val_if_fail(row != 0, -1);
 
-       
+       g_return_val_if_fail(row != 0, -1);
 
        GET_ENTRY(actions.name_entry);
        if (entry_text[0] == '\0') {
@@ -793,7 +789,7 @@ static gint prefs_actions_clist_set_row(gint row)
                alertpanel_error(_("Colon ':' is not allowed in the menu name."));
                return -1;
        }
-       
+
        strncpy(action, entry_text, PREFSBUFSIZE - 1);
        g_strstrip(action);
 
@@ -823,7 +819,7 @@ static gint prefs_actions_clist_set_row(gint row)
                                 entry_text);
                return -1;
        }
-       
+
        strcat(action, entry_text);
 
        buf[0] = action;
@@ -838,14 +834,14 @@ static gint prefs_actions_clist_set_row(gint row)
        }
 
        buf[0] = g_strdup(action);
-       
+
        gtk_clist_set_row_data(clist, row, buf[0]);
 
        prefs_actions_set_list();
 
        return 0;
 }
-       
+
 /* callback functions */
 
 static void prefs_actions_register_cb(GtkWidget *w, gpointer data)
@@ -866,7 +862,7 @@ static void prefs_actions_substitute_cb(GtkWidget *w, gpointer data)
 
        action = gtk_clist_get_row_data(clist, row);
        if (!action) return;
-       
+
        prefs_actions_clist_set_row(row);
 }
 
@@ -918,6 +914,7 @@ static void prefs_actions_down(GtkWidget *w, gpointer data)
 
 #define ENTRY_SET_TEXT(entry, str) \
        gtk_entry_set_text(GTK_ENTRY(entry), str ? str : "")
+
 static void prefs_actions_select(GtkCList *clist, gint row, gint column,
                                 GdkEvent *event)
 {
@@ -931,7 +928,7 @@ static void prefs_actions_select(GtkCList *clist, gint row, gint column,
                ENTRY_SET_TEXT(actions.cmd_entry, "");
                return;
        }
-       
+
        strncpy(buf, action, PREFSBUFSIZE - 1);
        buf[PREFSBUFSIZE - 1] = 0x00;
        cmd = strstr(buf, ": ");
@@ -944,7 +941,7 @@ static void prefs_actions_select(GtkCList *clist, gint row, gint column,
        *cmd = 0x00;
        ENTRY_SET_TEXT(actions.name_entry, buf);
 }
-       
+
 static void prefs_actions_row_move(GtkCList *clist,
                                   gint source_row, gint dest_row)
 {
@@ -988,23 +985,23 @@ static void prefs_actions_ok(GtkWidget *widget, gpointer data)
        inc_unlock();
 }
 
-void update_mainwin_actions_menu(GtkItemFactory *ifactory, 
+void update_mainwin_actions_menu(GtkItemFactory *ifactory,
                                 MainWindow *mainwin)
 {
-       update_actions_menu(ifactory, "/Tools/Actions", 
-                           mainwin_actions_execute_cb, 
+       update_actions_menu(ifactory, "/Tools/Actions",
+                           mainwin_actions_execute_cb,
                            mainwin);
 }
 
-void update_compose_actions_menu(GtkItemFactory *ifactory, 
+void update_compose_actions_menu(GtkItemFactory *ifactory,
                                 gchar *branch_path,
                                 Compose *compose)
 {
-       update_actions_menu(ifactory, branch_path, 
-                           compose_actions_execute_cb, 
+       update_actions_menu(ifactory, branch_path,
+                           compose_actions_execute_cb,
                            compose);
 }
-                                
+
 static void update_actions_menu(GtkItemFactory *ifactory,
                                gchar *branch_path,
                                gpointer callback,
@@ -1018,7 +1015,7 @@ static void update_actions_menu(GtkItemFactory *ifactory,
        GtkItemFactoryEntry ifentry = {NULL, NULL, NULL, 0, "<Branch>"};
 
        ifentry.path = branch_path;
-       menuitem = gtk_item_factory_get_widget(ifactory, branch_path);  
+       menuitem = gtk_item_factory_get_widget(ifactory, branch_path);
        g_return_if_fail(menuitem != NULL);
 
        amenu = GTK_MENU_SHELL(menuitem)->children;
@@ -1039,7 +1036,7 @@ static void update_actions_menu(GtkItemFactory *ifactory,
                if (action_p && action_p[2] &&
                    get_action_type(&action_p[2]) != ACTION_ERROR) {
                        action_p[0] = 0x00;
-                       menu_path = g_strdup_printf("%s/%s", branch_path, 
+                       menu_path = g_strdup_printf("%s/%s", branch_path,
                                                    action);
                        ifentry.path = menu_path;
                        gtk_item_factory_create_item(ifactory, &ifentry, data,
@@ -1047,16 +1044,15 @@ static void update_actions_menu(GtkItemFactory *ifactory,
                        g_free(menu_path);
                }
                g_free(action);
-               ifentry.callback_action++;      
+               ifentry.callback_action++;
        }
 }
 
-static void compose_actions_execute_cb (Compose        *compose,
-                                        guint           action_nb,
-                                        GtkWidget      *widget)
+static void compose_actions_execute_cb(Compose *compose, guint action_nb,
+                                      GtkWidget *widget)
 {
        gchar *buf, *action;
-       guint action_type;      
+       guint action_type;
 
        g_return_if_fail(action_nb < g_slist_length(prefs_common.actions_list));
 
@@ -1079,9 +1075,8 @@ static void compose_actions_execute_cb    (Compose        *compose,
        execute_actions(action, compose->window, NULL, compose->text, NULL);
 }
 
-static void mainwin_actions_execute_cb         (MainWindow     *mainwin,
-                                        guint           action_nb,
-                                        GtkWidget      *widget)
+static void mainwin_actions_execute_cb(MainWindow *mainwin, guint action_nb,
+                                      GtkWidget *widget)
 {
        MessageView *messageview = mainwin->messageview;
        GtkWidget   *text = NULL;
@@ -1092,7 +1087,7 @@ static void mainwin_actions_execute_cb    (MainWindow     *mainwin,
        g_return_if_fail(action_nb < g_slist_length(prefs_common.actions_list));
 
        buf = (gchar *)g_slist_nth_data(prefs_common.actions_list, action_nb);
-       
+
        g_return_if_fail(buf);
        g_return_if_fail(action = strstr(buf, ": "));
 
@@ -1119,11 +1114,9 @@ static void mainwin_actions_execute_cb   (MainWindow     *mainwin,
                        GTK_CTREE(mainwin->summaryview->ctree), text, mimeview);
 }
 
-static gboolean execute_actions(gchar     *action, 
-                               GtkWidget *window,
-                               GtkCTree  *ctree, 
-                               GtkWidget *text,
-                               MimeView  *mimeview)
+static gboolean execute_actions(gchar *action, GtkWidget *window,
+                               GtkCTree *ctree, GtkWidget *text,
+                               MimeView *mimeview)
 {
        GList *cur, *selection = NULL;
        GSList *children_list = NULL;
@@ -1150,7 +1143,7 @@ static gboolean execute_actions(gchar     *action,
                selection = GTK_CLIST(ctree)->selection;
                selection_len = g_list_length(selection);
        }
-       
+
        if (action_type & (ACTION_PIPE_OUT | ACTION_PIPE_IN)) {
                if (ctree && selection_len > 1)
                        return FALSE; /* ERR: pipe + multiple selection */
@@ -1183,8 +1176,8 @@ static gboolean execute_actions(gchar     *action,
                                                     children))) {
                                children_list = g_slist_append(children_list,
                                                               child_info);
-                               children->open_in = (selection_len == 1) ? 
-                                                   (action_type & 
+                               children->open_in = (selection_len == 1) ?
+                                                   (action_type &
                                                     (ACTION_OPEN_IN |
                                                      ACTION_HIDE_IN)) : 0;
                        }
@@ -1214,7 +1207,7 @@ static gboolean execute_actions(gchar     *action,
                }
        } else {
                GSList *cur;
-               
+
                children->action  = g_strdup(action);
                children->window  = window;
                children->dialog  = NULL;
@@ -1238,9 +1231,7 @@ static gboolean execute_actions(gchar     *action,
        return is_ok;
 }
 
-ChildInfo *fork_child(gchar *cmd,
-                     gint action_type,
-                     GtkWidget *text,
+ChildInfo *fork_child(gchar *cmd, gint action_type, GtkWidget *text,
                      Children *children)
 {
        gint chld_in[2], chld_out[2], chld_err[2], chld_status[2];
@@ -1290,9 +1281,9 @@ ChildInfo *fork_child(gchar *cmd,
                        if (setpgid(0, getppid()))
                                perror("setpgid");
                        if (sync) {
-                               if (action_type & 
-                                   (ACTION_PIPE_IN | 
-                                    ACTION_OPEN_IN | 
+                               if (action_type &
+                                   (ACTION_PIPE_IN |
+                                    ACTION_OPEN_IN |
                                     ACTION_HIDE_IN)) {
                                        close(fileno(stdin));
                                        dup  (chld_in[0]);
@@ -1316,7 +1307,7 @@ ChildInfo *fork_child(gchar *cmd,
                        cmdline[2] = cmd;
                        cmdline[3] = 0;
                        execvp("/bin/sh", cmdline);
-                       
+
                        perror("execvp");
                        _exit(1);
                } else if (gch_pid < (pid_t) 0) { /* Fork error */
@@ -1346,14 +1337,14 @@ ChildInfo *fork_child(gchar *cmd,
                }
        } else if (pid < 0) { /* Fork error */
                alertpanel_error(_("Could not fork to execute the following "
-                                  "command:\n%s\n%s"), 
+                                  "command:\n%s\n%s"),
                                 cmd, g_strerror(errno));
                return NULL; 
        }
 
        /* Parent */
 
-       if (!sync) 
+       if (!sync)
                return NULL;
 
        close(chld_in[0]);
@@ -1366,7 +1357,7 @@ ChildInfo *fork_child(gchar *cmd,
        child_info = g_new0(ChildInfo, 1);
 
        child_info->children    = children;
-       
+
        child_info->pid         = pid;
        child_info->cmd         = g_strdup(cmd);
        child_info->type        = action_type;
@@ -1405,7 +1396,7 @@ ChildInfo *fork_child(gchar *cmd,
                is_selection = TRUE;
                if (start == end) {
                        start = 0;
-                       end   = gtk_stext_get_length(GTK_STEXT(text));
+                       end = gtk_stext_get_length(GTK_STEXT(text));
                        is_selection = FALSE;
                }
        }
@@ -1427,10 +1418,10 @@ ChildInfo *fork_child(gchar *cmd,
        }
 
        gtk_stext_thaw(GTK_STEXT(text));
-       
+
        return child_info;
 }
-       
+
 static void kill_children_cb(GtkWidget *widget, gpointer data)
 {
        GSList *cur;
@@ -1440,25 +1431,25 @@ static void kill_children_cb(GtkWidget *widget, gpointer data)
        for (cur = children->list; cur; cur = cur->next) {
                child_info = (ChildInfo *)(cur->data);
                debug_print(_("Killing child group id %d\n"), child_info->pid);
-               if (child_info->pid && (kill(-child_info->pid, SIGTERM) < 0))
-                               perror("kill");
+               if (child_info->pid && kill(-child_info->pid, SIGTERM) < 0)
+                       perror("kill");
        }
 }
 
 static gint wait_for_children(gpointer data)
 {
        gboolean new_output;
-       Children *children = (Children *) data;
+       Children *children = (Children *)data;
        ChildInfo *child_info;
        GSList *cur;
        gint nb = children->nb;
 
        children->nb = 0;
-               
+
        cur = children->list;
        new_output = FALSE;
        while (cur) {
-               child_info = (ChildInfo *) cur->data;
+               child_info = (ChildInfo *)cur->data;
                if (child_info->pid)
                        children->nb++;
                new_output |= child_info->new_out;
@@ -1468,7 +1459,7 @@ static gint wait_for_children(gpointer data)
        if (!children->dialog && 
            (new_output || children->timer))
                create_io_dialog(children);
-       
+
        if (children->timer) {
                gtk_timeout_remove(children->timer);
                children->timer = 0;
@@ -1494,7 +1485,7 @@ static void send_input(GtkWidget *w, gpointer data)
 {
        Children *children = (Children *) data;
        ChildInfo *child_info = (ChildInfo *) children->list->data;
-       
+
        child_info->tag_in = gdk_input_add(child_info->chld_in,
                                           GDK_INPUT_WRITE,
                                           catch_input, children);
@@ -1510,7 +1501,7 @@ static gint delete_io_dialog_cb(GtkWidget *w, GdkEvent *e, gpointer data)
 static void hide_io_dialog_cb(GtkWidget *w, gpointer data)
 {
 
-       Children *children = (Children *) data;
+       Children *children = (Children *)data;
 
        if (!children->nb) {
                gtk_widget_set_sensitive(children->window, TRUE);
@@ -1540,11 +1531,11 @@ static void free_children(Children *children)
        GSList *cur;
        ChildInfo *child_info;
 
-       debug_print(_("Freeing children data %x\n"), (guint) children);
-                               
+       debug_print(_("Freeing children data %p\n"), children);
+
        g_free(children->action);
        for (cur = children->list; cur;) {
-               child_info = (ChildInfo *) cur->data;
+               child_info = (ChildInfo *)cur->data;
                g_free(child_info->cmd);
                g_string_free(child_info->output, TRUE);
                children->list = g_slist_remove(children->list, child_info);
@@ -1552,7 +1543,7 @@ static void free_children(Children *children)
                cur = children->list;
        }
        g_free(children);
-}      
+}
 
 static void update_io_dialog(Children *children)
 {
@@ -1579,7 +1570,7 @@ static void update_io_dialog(Children *children)
                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;
+                       child_info = (ChildInfo *)cur->data;
                        if (child_info->pid)
                                caption = g_strdup_printf
                                        (_("--- Running: %s\n"),
@@ -1588,7 +1579,7 @@ static void update_io_dialog(Children *children)
                                caption = g_strdup_printf
                                        (_("--- Ended: %s\n"),
                                         child_info->cmd);
-                       
+
                        gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL,
                                        caption, -1);
                        gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL,
@@ -1599,8 +1590,7 @@ static void update_io_dialog(Children *children)
                gtk_text_thaw(GTK_TEXT(text));
        }
 }
-       
-       
+
 static void create_io_dialog(Children *children)
 {
        GtkWidget *dialog;
@@ -1613,13 +1603,13 @@ static void create_io_dialog(Children *children)
        GtkWidget *hbox;
        GtkWidget *abort_button;
        GtkWidget *hide_button;
-       
+
        debug_print(_("Creating actions dialog\n"));
 
        dialog = gtk_dialog_new();
        label = gtk_label_new(children->action);
        gtk_misc_set_padding(GTK_MISC(label), 8, 8);
-       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label, FALSE, 
+       gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), label, FALSE,
                           FALSE, 0);
 
        gtk_window_set_title(GTK_WINDOW(dialog), _("Actions' input/output"));
@@ -1660,11 +1650,11 @@ static void create_io_dialog(Children *children)
                send_button = gtk_button_new_with_label(_("Send"));
                gtk_signal_connect(GTK_OBJECT(send_button), "clicked",
                                   GTK_SIGNAL_FUNC(send_input), children);
-               gtk_box_pack_start(GTK_BOX(input_hbox), send_button, FALSE, 
+               gtk_box_pack_start(GTK_BOX(input_hbox), send_button, FALSE,
                                   FALSE, 8);
                gtk_widget_show(send_button);
 
-               gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox), 
+               gtk_box_pack_start(GTK_BOX(GTK_DIALOG(dialog)->vbox),
                                input_hbox, FALSE, FALSE, 8);
                gtk_widget_grab_focus(entry);
        }
@@ -1702,7 +1692,7 @@ static void create_io_dialog(Children *children)
 
 static void catch_status(gpointer data, gint source, GdkInputCondition cond)
 {
-       ChildInfo *child_info = (ChildInfo *) data;
+       ChildInfo *child_info = (ChildInfo *)data;
        gchar buf;
        gint c;
 
@@ -1714,21 +1704,21 @@ static void catch_status(gpointer data, gint source, GdkInputCondition cond)
        waitpid(-child_info->pid, NULL, 0);
        childinfo_close_pipes(child_info);
        child_info->pid = 0;
-       
+
        wait_for_children(child_info->children);
 }
        
 static void catch_input(gpointer data, gint source, GdkInputCondition cond)
 {
-       Children *children = (Children *) data;
-       ChildInfo *child_info = (ChildInfo *) children->list->data;
+       Children *children = (Children *)data;
+       ChildInfo *child_info = (ChildInfo *)children->list->data;
        gchar *input;
        gint c;
 
        debug_print(_("Sending input to grand child.\n"));
        if (!(cond && GDK_INPUT_WRITE))
                return;
-       
+
        gdk_input_remove(child_info->tag_in);
        child_info->tag_in = -1;
 
@@ -1747,7 +1737,7 @@ static void catch_input(gpointer data, gint source, GdkInputCondition cond)
 
 static void catch_output(gpointer data, gint source, GdkInputCondition cond)
 {
-       ChildInfo *child_info = (ChildInfo *) data;
+       ChildInfo *child_info = (ChildInfo *)data;
        gint c, i;
        gchar buf[PREFSBUFSIZE];
 
@@ -1771,7 +1761,7 @@ static void catch_output(gpointer data, gint source, GdkInputCondition cond)
                         * so we just change selection position and 
                         * defere drawing when thawing. Hack?
                         */
-                       GTK_EDITABLE(text)->selection_end_pos = 
+                       GTK_EDITABLE(text)->selection_end_pos =
                                        gtk_stext_get_point(GTK_STEXT(text));
                }
                gtk_stext_thaw(GTK_STEXT(child_info->text));