aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/component-factory.c8
2 files changed, 6 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 7c823ffd90..8080726754 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
+ * component-factory.c (owner_set_cb): Change the message_destroy
+ callback to just gtk_widget_destroy. No need to have a callback
+ simply to call this function.
+ (warning_response): Removed (see above).
+
* mail-composer-prefs.c (sig_add_script_response): Don't forget to
add the signature to the signature list if it is a valid script.
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 02f4492402..bee831a3a3 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -751,12 +751,6 @@ shell_client_destroy (GtkObject *object)
}
static void
-warning_response (GtkWidget *dialog, int button, gpointer user_data)
-{
- gtk_widget_destroy (dialog);
-}
-
-static void
owner_set_cb (EvolutionShellComponent *shell_component,
EvolutionShellClient *shell_client,
const char *evolution_homedir,
@@ -821,7 +815,7 @@ owner_set_cb (EvolutionShellComponent *shell_component,
dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_CLOSE,
_("Some of your mail settings seem corrupt, "
"please check that everything is in order."));
- g_signal_connect (dialog, "response", G_CALLBACK (warning_response), NULL);
+ g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), dialog);
gtk_widget_show (dialog);
}