aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-composer-prefs.c7
2 files changed, 10 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d12fe6e337..e2831a51f7 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2002-06-07 Radek Doulik <rodo@ximian.com>
+ * mail-composer-prefs.c (sig_add_script_cancel): hook this to
+ cancel button in signature script dialog
+
* mail-signature-editor.c (mail_signature_editor): fix some typos,
set label usize to 500, -2
(menu_help): added help link to Help menu
diff --git a/mail/mail-composer-prefs.c b/mail/mail-composer-prefs.c
index 88b4b58405..3c835f7446 100644
--- a/mail/mail-composer-prefs.c
+++ b/mail/mail-composer-prefs.c
@@ -303,6 +303,12 @@ sig_add_script_add (GtkWidget *widget, MailComposerPrefs *prefs)
}
static void
+sig_add_script_cancel (GtkWidget *widget, MailComposerPrefs *prefs)
+{
+ gnome_dialog_close (prefs->sig_script_dialog);
+}
+
+static void
sig_add_script (GtkWidget *widget, MailComposerPrefs *prefs)
{
GtkWidget *entry;
@@ -858,6 +864,7 @@ mail_composer_prefs_construct (MailComposerPrefs *prefs)
gtk_box_pack_start_defaults (GTK_BOX (GNOME_DIALOG (prefs->sig_script_dialog)->vbox),
glade_xml_get_widget (prefs->sig_script_gui, "vbox_add_script_signature"));
gnome_dialog_button_connect (GNOME_DIALOG (prefs->sig_script_dialog), 0, sig_add_script_add, prefs);
+ gnome_dialog_button_connect (GNOME_DIALOG (prefs->sig_script_dialog), 1, sig_add_script_cancel, prefs);
glade_xml_signal_connect_data (gui, "cmdSignatureAddScriptClicked", sig_add_script, prefs);