From d3e0461430c6d68e362b27bb61f2d5b24b2a9634 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 10 Aug 2000 19:23:53 +0000 Subject: Fix compile warning by casting the object to a CamelObject 2000-08-10 Jeffrey Stedfast * mail-callbacks.c (composer_send_cb): Fix compile warning by casting the object to a CamelObject svn path=/trunk/; revision=4697 --- mail/mail-callbacks.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'mail/mail-callbacks.c') 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 */ -- cgit