From 32a3fdfe3dc9a4d18cc445703d5dc0a2f0fd2ae6 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 7 Jun 2002 20:15:19 +0000 Subject: hook this to cancel button in signature script dialog 2002-06-07 Radek Doulik * mail-composer-prefs.c (sig_add_script_cancel): hook this to cancel button in signature script dialog svn path=/trunk/; revision=17150 --- mail/ChangeLog | 3 +++ mail/mail-composer-prefs.c | 7 +++++++ 2 files changed, 10 insertions(+) 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 + * 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 @@ -302,6 +302,12 @@ sig_add_script_add (GtkWidget *widget, MailComposerPrefs *prefs) GTK_WINDOW (prefs->sig_script_dialog)))); } +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) { @@ -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); -- cgit v1.2.3