diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-04 08:25:14 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-04 08:25:14 +0800 |
commit | d2856de03062e5540dfefe3b8449324467e63966 (patch) | |
tree | 6c9e31eefa60f8c1b606b0b143d40b38f1eb5793 /mail | |
parent | 8a1a8bade0e3b55ef36bda8206eec31a24f40f7b (diff) | |
download | gsoc2013-evolution-d2856de03062e5540dfefe3b8449324467e63966.tar.gz gsoc2013-evolution-d2856de03062e5540dfefe3b8449324467e63966.tar.zst gsoc2013-evolution-d2856de03062e5540dfefe3b8449324467e63966.zip |
Yay, no more compiler warnings
2000-08-03 Jeffrey Stedfast <fejj@helixcode.com>
* mail-ops.c (composer_send_cb): Yay, no more compiler warnings
svn path=/trunk/; revision=4521
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 2 | ||||
-rw-r--r-- | mail/mail-ops.c | 17 |
2 files changed, 10 insertions, 9 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index d78dca32e0..2faf5b3493 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,7 @@ 2000-08-03 Jeffrey Stedfast <fejj@helixcode.com> + * mail-ops.c (composer_send_cb): Yay, no more compiler warnings + * mail-config.c: set config = NULL (provider_list) Eek! Initialize news to NULL! Also, use g_slist_prepend() for "performance" gains ;-) diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 036dd28a2b..38d938028d 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -524,8 +524,8 @@ composer_send_cb (EMsgComposer *composer, gpointer data) message = gnome_warning_dialog_parented (_("You need to configure an identity\n" "before you can send mail."), - gtk_widget_get_ancestor (GTK_WIDGET (composer), - GTK_TYPE_WINDOW)); + GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (composer), + GTK_TYPE_WINDOW))); gnome_dialog_run_and_close (GNOME_DIALOG (message)); return; } @@ -791,12 +791,11 @@ move_msg (GtkWidget *button, gpointer user_data) char *uri, *physical, *path; struct move_data rfd; const char *allowed_types[] = { "mail", NULL }; - extern EvolutionShellClient *global_shell_client; - static char *last; + static char *last = NULL; - if (last == NULL) - last = g_strdup (""); + if (!last) + g_strdup (""); evolution_shell_client_user_select_folder (global_shell_client, _("Move message(s) to"), @@ -817,12 +816,12 @@ move_msg (GtkWidget *button, gpointer user_data) if (!rfd.dest) return; rfd.ex = camel_exception_new (); - + message_list_foreach (ml, real_move_msg, &rfd); gtk_object_unref (GTK_OBJECT (rfd.dest)); - + if (camel_exception_is_set (rfd.ex)) - mail_exception_dialog ("Could not move message", rfd.ex, fb); + mail_exception_dialog ("Could not move message", rfd.ex, fb); camel_exception_free (rfd.ex); } |