diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-07-07 03:49:27 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-07-07 03:49:27 +0800 |
commit | 2c8fa1b419913da056de62e1b11f664f4b1d7100 (patch) | |
tree | e677aeb128028a1a85c96b4fa8b95c4069a9b6c4 /mail/component-factory.c | |
parent | 068ae263a05245aa487ffc99bb5e884412043cbc (diff) | |
download | gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar.gz gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar.bz2 gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar.lz gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar.xz gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.tar.zst gsoc2013-evolution-2c8fa1b419913da056de62e1b11f664f4b1d7100.zip |
Mark the messages as Seen also. (folder_browser_class_init): Create an
2001-07-06 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser.c (folder_browser_copy): Mark the messages as
Seen also.
(folder_browser_class_init): Create an atom type for
X-Evolution-Message selection type.
(my_folder_browser_init): Add our multiple selection types, one of
which is the default string type.
* component-factory.c (destination_folder_handle_drop): Update to
use the new X-Evolution-Message type format.
* folder-browser.c (selection_get): Convert the
X-Evolution-Message clipboard type to whatever format the target
wants.
(message_list_drag_data_get): Update because the
X-Evolution-Message type changed.
(folder_browser_copy): Same.
(x_evolution_message_parse): And here too.
svn path=/trunk/; revision=10853
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r-- | mail/component-factory.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c index 66420e01fd..8e958d6443 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -368,7 +368,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol const GNOME_Evolution_ShellComponentDnd_Data *data, gpointer user_data) { - char *url, *name, *in, *inptr, *inend; + char *url, *in, *inptr, *inend; gboolean retval = FALSE; CamelFolder *source; CamelStream *stream; @@ -442,7 +442,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol camel_object_unref (CAMEL_OBJECT (source)); break; case ACCEPTED_DND_TYPE_X_EVOLUTION_MESSAGE: - /* format: "url folder_name uid1\0uid2\0uid3\0...\0uidn" */ + /* format: "uri uid1\0uid2\0uid3\0...\0uidn" */ in = data->bytes._buffer; inend = in + data->bytes._length; @@ -450,12 +450,7 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *fol inptr = strchr (in, ' '); url = g_strndup (in, inptr - in); - name = inptr + 1; - inptr = strchr (name, ' '); - name = g_strndup (name, inptr - name); - - source = mail_tool_get_folder_from_urlname (url, name, 0, &ex); - g_free (name); + source = mail_tool_uri_to_folder (url, &ex); g_free (url); if (!source) { |