diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-03-21 06:27:25 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-03-21 06:27:25 +0800 |
commit | bca5dffbb71c64f6944ba8a86fd8307bc4076108 (patch) | |
tree | b44af3b6621b84a5c78ef7c9b578f6e7dab30b1a /mail | |
parent | 9d1d52dc6b9f5c8e0136131f571497f7f76adfd1 (diff) | |
download | gsoc2013-evolution-bca5dffbb71c64f6944ba8a86fd8307bc4076108.tar.gz gsoc2013-evolution-bca5dffbb71c64f6944ba8a86fd8307bc4076108.tar.zst gsoc2013-evolution-bca5dffbb71c64f6944ba8a86fd8307bc4076108.zip |
Change the message_destroy callback to just gtk_widget_destroy. No need to
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).
svn path=/trunk/; revision=20447
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/component-factory.c | 8 |
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); } |