aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-25 05:54:34 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-25 05:54:34 +0800
commit4f43db365be2d917955985025f1231170db15db9 (patch)
treee35af465f4def23f685042f2adb5da9f2d09cbc5
parent6181a8992c45c0f124bbc7e9fb83d1ac963d6435 (diff)
downloadgsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar.gz
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar.bz2
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar.lz
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar.xz
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.tar.zst
gsoc2013-evolution-4f43db365be2d917955985025f1231170db15db9.zip
g_strdup the uid into the ml->cursor_uid.
2001-05-24 Jeffrey Stedfast <fejj@ximian.com> * message-list.c (message_list_select_uid): g_strdup the uid into the ml->cursor_uid. * message-browser.c (message_browser_forward_msg): Use the default forward style. svn path=/trunk/; revision=9969
-rw-r--r--mail/ChangeLog8
-rw-r--r--mail/mail-callbacks.c8
-rw-r--r--mail/message-browser.c2
-rw-r--r--mail/message-list.c8
4 files changed, 20 insertions, 6 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 73f21a0fbb..9b0869e030 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,11 @@
+2001-05-24 Jeffrey Stedfast <fejj@ximian.com>
+
+ * message-list.c (message_list_select_uid): g_strdup the uid into
+ the ml->cursor_uid.
+
+ * message-browser.c (message_browser_forward_msg): Use the default
+ forward style.
+
2001-05-24 Dan Winship <danw@ximian.com>
* mail-identify.c (mail_identify_mime_part): If the message data
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 38734b37cf..80f0affe9c 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -670,7 +670,7 @@ mail_reply (CamelFolder *folder, CamelMimeMessage *msg, const char *uid, gboolea
g_return_if_fail (folder != NULL);
g_return_if_fail (msg != NULL);
g_return_if_fail (uid != NULL);
-
+
psd = g_new (struct post_send_data, 1);
psd->folder = folder;
camel_object_ref (CAMEL_OBJECT (psd->folder));
@@ -687,7 +687,7 @@ mail_reply (CamelFolder *folder, CamelMimeMessage *msg, const char *uid, gboolea
GTK_SIGNAL_FUNC (composer_postpone_cb), psd);
gtk_signal_connect (GTK_OBJECT (composer), "destroy",
GTK_SIGNAL_FUNC (free_psd), psd);
-
+
gtk_widget_show (GTK_WIDGET (composer));
e_msg_composer_unset_changed (composer);
}
@@ -708,10 +708,10 @@ void
reply_to_all (GtkWidget *widget, gpointer user_data)
{
FolderBrowser *fb = FOLDER_BROWSER (user_data);
-
+
if (!check_send_configuration (fb))
return;
-
+
mail_reply (fb->folder, fb->mail_display->current_message,
fb->message_list->cursor_uid, TRUE);
}
diff --git a/mail/message-browser.c b/mail/message-browser.c
index 71d3065914..8bd4470235 100644
--- a/mail/message-browser.c
+++ b/mail/message-browser.c
@@ -105,7 +105,7 @@ message_browser_forward_msg (GtkWidget *widget, gpointer user_data)
{
MessageBrowser *mb = MESSAGE_BROWSER (user_data);
- forward_attached (NULL, mb->fb);
+ forward (NULL, mb->fb);
}
static void
diff --git a/mail/message-list.c b/mail/message-list.c
index 15f843aaf3..2abf62abb4 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -413,7 +413,9 @@ message_list_select (MessageList *message_list, int base_row,
info = get_message_info (message_list, node);
if (info && (info->flags & mask) == flags) {
e_tree_set_cursor (et, node);
- gtk_signal_emit(GTK_OBJECT (message_list), message_list_signals [MESSAGE_SELECTED], camel_message_info_uid(info));
+
+ gtk_signal_emit (GTK_OBJECT (message_list), message_list_signals[MESSAGE_SELECTED],
+ camel_message_info_uid (info));
return;
}
vrow += direction;
@@ -439,6 +441,10 @@ message_list_select_uid (MessageList *message_list, const char *uid)
info = get_message_info (message_list, node);
e_tree_set_cursor (message_list->tree, node);
+
+ g_free (message_list->cursor_uid);
+ message_list->cursor_uid = g_strdup (camel_message_info_uid (info));
+
gtk_signal_emit (GTK_OBJECT (message_list), message_list_signals[MESSAGE_SELECTED],
camel_message_info_uid (info));
} else {