From 5ca425852cab78a782c1b354555f7c9c380d8e02 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Mon, 23 Sep 2002 22:15:18 +0000 Subject: pass name of the script as 1st parameter 2002-09-23 Radek Doulik * mail-config.c (mail_config_signature_run_script): pass name of the script as 1st parameter * mail-composer-prefs.c (sig_add_script_add): fix entry's glade name svn path=/trunk/; revision=18188 --- mail/ChangeLog | 8 ++++++++ mail/mail-composer-prefs.c | 2 +- mail/mail-config.c | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index cbc865c72d..56518328fe 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,11 @@ +2002-09-23 Radek Doulik + + * mail-config.c (mail_config_signature_run_script): pass name of + the script as 1st parameter + + * mail-composer-prefs.c (sig_add_script_add): fix entry's glade + name + 2002-09-23 Dan Winship * mail-signature-editor.c (exit_dialog_cb): Fix non-ANSI switch diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c index fb5e0f455d..82ec642e47 100644 --- a/mail/mail-composer-prefs.c +++ b/mail/mail-composer-prefs.c @@ -286,7 +286,7 @@ sig_add_script_add (GtkWidget *widget, MailComposerPrefs *prefs) entry = glade_xml_get_widget (prefs->sig_script_gui, "fileentry_add_script_script"); script = gtk_entry_get_text (GTK_ENTRY (gnome_file_entry_gtk_entry (GNOME_FILE_ENTRY (entry)))); - entry = glade_xml_get_widget (prefs->sig_script_gui, "entry_add_script_script"); + entry = glade_xml_get_widget (prefs->sig_script_gui, "entry_add_script_name"); name = e_utf8_gtk_entry_get_text (GTK_ENTRY (entry)); if (script && *script) { struct stat st; diff --git a/mail/mail-config.c b/mail/mail-config.c index bfe5608925..1985a504be 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -3117,7 +3117,7 @@ mail_config_signature_run_script (gchar *script) } - execlp (script, NULL); + execlp (script, script, NULL); g_warning ("Could not execute %s: %s\n", script, g_strerror (errno)); _exit (255); } else if (pid < 0) { -- cgit v1.2.3