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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
9d1d52dc6b
commit
bca5dffbb7
@ -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.
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user