From bca5dffbb71c64f6944ba8a86fd8307bc4076108 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 20 Mar 2003 22:27:25 +0000 Subject: Change the message_destroy callback to just gtk_widget_destroy. No need to 2003-03-20 Jeffrey Stedfast * 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). svn path=/trunk/; revision=20447 --- mail/ChangeLog | 5 +++++ mail/component-factory.c | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'mail') 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 + * 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 @@ -750,12 +750,6 @@ shell_client_destroy (GtkObject *object) global_shell_client = NULL; } -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, @@ -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); } -- cgit