aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-composer-prefs.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2002-06-08 04:15:19 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-06-08 04:15:19 +0800
commit32a3fdfe3dc9a4d18cc445703d5dc0a2f0fd2ae6 (patch)
tree802ab8afdaf0e58933128d59201dd91f077c3783 /mail/mail-composer-prefs.c
parent8b2a189cf7255d02323d9ff11c6627982d9739c0 (diff)
downloadgsoc2013-evolution-32a3fdfe3dc9a4d18cc445703d5dc0a2f0fd2ae6.tar.gz
gsoc2013-evolution-32a3fdfe3dc9a4d18cc445703d5dc0a2f0fd2ae6.tar.zst
gsoc2013-evolution-32a3fdfe3dc9a4d18cc445703d5dc0a2f0fd2ae6.zip
hook this to cancel button in signature script dialog
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 svn path=/trunk/; revision=17150
Diffstat (limited to 'mail/mail-composer-prefs.c')
-rw-r--r--mail/mail-composer-prefs.c7
1 files changed, 7 insertions, 0 deletions
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);