diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-12-05 05:49:38 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-12-05 05:49:38 +0800 |
commit | 8438d0bc82666eb09541ecd6672f89e4cf9a25e9 (patch) | |
tree | ca888fa32ffbb6387637dd11047620e6e82b6b59 /composer | |
parent | 410f3bc629f38cb76a5d16209a07e2c336ed1f9f (diff) | |
download | gsoc2013-evolution-8438d0bc82666eb09541ecd6672f89e4cf9a25e9.tar.gz gsoc2013-evolution-8438d0bc82666eb09541ecd6672f89e4cf9a25e9.tar.zst gsoc2013-evolution-8438d0bc82666eb09541ecd6672f89e4cf9a25e9.zip |
Change the FileSend tooltip the be the same as the FileSendLater tooltip
2001-11-30 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (setup_ui): Change the FileSend tooltip the be
the same as the FileSendLater tooltip if we are in offline mode.
svn path=/trunk/; revision=14871
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 45 |
2 files changed, 20 insertions, 32 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index d0cb5220fb..d8445443cb 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,8 +1,7 @@ -2001-11-19 Jeffrey Stedfast <fejj@ximian.com> +2001-11-30 Jeffrey Stedfast <fejj@ximian.com> - * e-msg-composer.c (setup_ui): If we come back online, switch the - Send accelerator back to the Send button from the Send Later - button. + * e-msg-composer.c (setup_ui): Change the FileSend tooltip the be + the same as the FileSendLater tooltip if we are in offline mode. 2001-11-11 Jeffrey Stedfast <fejj@ximian.com> diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 220adddb7f..d227be207d 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -65,8 +65,6 @@ #include <gal/e-text/e-entry.h> #include <gtkhtml/gtkhtml.h> -/*#include <addressbook/backend/ebook/e-card.h>*/ - #include "widgets/misc/e-charset-picker.h" #include "camel/camel.h" @@ -109,13 +107,11 @@ static guint signals[LAST_SIGNAL] = { 0 }; enum { DND_TYPE_MESSAGE_RFC822, DND_TYPE_TEXT_URI_LIST, - DND_TYPE_TEXT_VCARD, }; static GtkTargetEntry drop_types[] = { { "message/rfc822", 0, DND_TYPE_MESSAGE_RFC822 }, { "text/uri-list", 0, DND_TYPE_TEXT_URI_LIST }, - { "text/x-vcard", 0, DND_TYPE_TEXT_VCARD }, }; static const int num_drop_types = sizeof (drop_types) / sizeof (drop_types[0]); @@ -344,7 +340,7 @@ build_message (EMsgComposer *composer) if (composer->send_html) { clear_current_images (composer); - + data = get_text (composer->persist_stream_interface, "text/html"); if (!data) { /* The component has probably died */ @@ -398,7 +394,7 @@ build_message (EMsgComposer *composer) add_inlined_images (composer, html_with_images); clear_current_images (composer); - + current = CAMEL_DATA_WRAPPER (html_with_images); } else current = CAMEL_DATA_WRAPPER (body); @@ -412,7 +408,7 @@ build_message (EMsgComposer *composer) camel_data_wrapper_set_mime_type (CAMEL_DATA_WRAPPER (multipart), "multipart/alternative"); } - + /* Generate a random boundary. */ camel_multipart_set_boundary (multipart, NULL); @@ -428,16 +424,16 @@ build_message (EMsgComposer *composer) if (composer->is_alternative) { int i; - + for (i = camel_multipart_get_number (multipart); i > 1; i--) { part = camel_multipart_get_part (multipart, i - 1); camel_medium_remove_header (CAMEL_MEDIUM (part), "Content-Disposition"); } } - + current = CAMEL_DATA_WRAPPER (multipart); } - + if (composer->pgp_sign || composer->pgp_encrypt) { part = camel_mime_part_new (); camel_medium_set_content_object (CAMEL_MEDIUM (part), current); @@ -459,6 +455,8 @@ build_message (EMsgComposer *composer) camel_internet_address_get (from, 0, NULL, &pgpid); } + printf ("build_message(): pgpid = '%s'\n", pgpid); + mail_crypto_pgp_mime_part_sign (&part, pgpid, CAMEL_CIPHER_HASH_SHA1, &ex); if (from) @@ -1771,6 +1769,8 @@ setup_ui (EMsgComposer *composer) g_free (default_charset); if (!session || !camel_session_is_online (session)) { + char *tooltip; + /* Move the accelerator from Send to Send Later */ bonobo_ui_component_set_prop ( composer->uic, "/commands/FileSend", @@ -1778,14 +1778,15 @@ setup_ui (EMsgComposer *composer) bonobo_ui_component_set_prop ( composer->uic, "/commands/FileSendLater", "accel", "*Ctrl*Return", NULL); - } else { - /* Switch the accelerator back to the Send item */ + + /* Update the FileSend tooltip to be the same as the FileSendLater tooltip... */ + tooltip = bonobo_ui_component_get_prop ( + composer->uic, "/commands/FileSendLater", + "tip", NULL); bonobo_ui_component_set_prop ( composer->uic, "/commands/FileSend", - "accel", "*Ctrl*Return", NULL); - bonobo_ui_component_set_prop ( - composer->uic, "/commands/FileSendLater", - "accel", NULL, NULL); + "tip", tooltip, NULL); + g_free (tooltip); } /* Format -> HTML */ @@ -2095,7 +2096,6 @@ drag_data_received (EMsgComposer *composer, GdkDragContext *context, guint info, guint time) { gchar *tmp, *filename, **filenames; - CamelMimePart *mime_part; CamelStream *stream; CamelURL *url; int i; @@ -2133,17 +2133,6 @@ drag_data_received (EMsgComposer *composer, GdkDragContext *context, g_free (filenames); break; - case DND_TYPE_TEXT_VCARD: - mime_part = camel_mime_part_new (); - camel_mime_part_set_content (mime_part, selection->data, - selection->length, "text/x-vcard"); - camel_mime_part_set_disposition (mime_part, "inline"); - - e_msg_composer_attachment_bar_attach_mime_part - (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), - mime_part); - - camel_object_unref (CAMEL_OBJECT (mime_part)); default: break; } |