diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-08-11 03:23:53 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-08-11 03:23:53 +0800 |
commit | d3e0461430c6d68e362b27bb61f2d5b24b2a9634 (patch) | |
tree | 77c829be342bd59498cc33399ef659c9a499c767 | |
parent | 1ecabb0dc4b97d18725d4bbbeb66fb0f4465ece1 (diff) | |
download | gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.gz gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.bz2 gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.lz gsoc2013-evolution-d3e0461430c6d68e362b27bb61f2d5b24b2a9634.tar.xz 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
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index e2d38a2a1c..bae751424c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-08-10 Jeffrey Stedfast <fejj@helixcode.com> + + * mail-callbacks.c (composer_send_cb): Fix compile warning by + casting the object to a CamelObject + 2000-08-10 Peter Williams <peterw@helixcode.com> * mail-tools.c (mail_tool_filter_contents_into): Delete the source 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 */ |