aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-08-11 03:23:53 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-08-11 03:23:53 +0800
commitd3e0461430c6d68e362b27bb61f2d5b24b2a9634 (patch)
tree77c829be342bd59498cc33399ef659c9a499c767 /mail/mail-callbacks.c
parent1ecabb0dc4b97d18725d4bbbeb66fb0f4465ece1 (diff)
downloadgsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.gz
gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.zst
gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.zip
Fix compile warning by casting the object to a CamelObject
2000-08-10 Jeffrey Stedfast <fejj@helixcode.com> * mail-callbacks.c (composer_send_cb): Fix compile warning by casting the object to a CamelObject svn path=/trunk/; revision=4697
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index fb0a0d5c5c..b92abacba1 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -148,27 +148,27 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
id = mail_config_get_default_identity ();
if (!check_configured () || !id) {
GtkWidget *message;
-
+
message = gnome_warning_dialog_parented (_("You need to configure an identity\n"
"before you can send mail."),
GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (composer),
- GTK_TYPE_WINDOW)));
+ GTK_TYPE_WINDOW)));
GDK_THREADS_ENTER ();
gnome_dialog_run_and_close (GNOME_DIALOG (message));
GDK_THREADS_LEAVE ();
return;
}
-
+
/* Check for a transport */
-
+
xport = mail_config_get_transport ();
if (!xport || !xport->url) {
GtkWidget *message;
-
+
message = gnome_warning_dialog_parented (_("You need to configure a mail transport\n"
"before you can send mail."),
GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (composer),
- GTK_TYPE_WINDOW)));
+ GTK_TYPE_WINDOW)));
GDK_THREADS_ENTER ();
gnome_dialog_run_and_close (GNOME_DIALOG (message));
GDK_THREADS_LEAVE ();
@@ -176,19 +176,19 @@ composer_send_cb (EMsgComposer *composer, gpointer data)
}
/* Generate our from address */
-
+
from = g_strdup (e_msg_composer_hdrs_get_from (E_MSG_COMPOSER_HDRS (composer->hdrs)));
if (!from) {
CamelInternetAddress *ciaddr;
-
+
ciaddr = camel_internet_address_new ();
camel_internet_address_add (ciaddr, id->name, id->address);
from = camel_address_encode (CAMEL_ADDRESS (ciaddr));
camel_object_unref (CAMEL_OBJECT (ciaddr));
}
-
+
/* Get the message */
-
+
message = e_msg_composer_get_message (composer);
/* Check for no subject */