aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-view.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-01-20 12:32:41 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-01-20 12:32:41 +0800
commitb6e44f08f719efee9c6ed90813d03ddbf42e9121 (patch)
tree974bfa73c331fbf44c829286dc5aa1e3acf1dfc3 /mail/em-folder-view.c
parent1d92e96ba8027cd5677fee5313bae50336a75e9a (diff)
downloadgsoc2013-evolution-b6e44f08f719efee9c6ed90813d03ddbf42e9121.tar.gz
gsoc2013-evolution-b6e44f08f719efee9c6ed90813d03ddbf42e9121.tar.zst
gsoc2013-evolution-b6e44f08f719efee9c6ed90813d03ddbf42e9121.zip
Make displayed_uid public.
2004-01-20 Not Zed <NotZed@Ximian.com> * em-folder-view.c (EMFolderView): Make displayed_uid public. * em-folder-browser.c (em_folder_browser_show_preview): use em_folder_view_set_message rather than message_list_select_uid. When clearing, clear view->displayed_uid too. 2004-01-20 Not Zed <NotZed@Ximian.com> ** See bug #52965. * mail-component.c (mail_component_init): removed an epfixme, it already is an object. (impl_upgradeFromVersion): call mail_note_store after running the upgrade for local folders. * em-migrate.c (em_migrate): revert the vfolders.xml after we've imported them. * mail-vfolder.c (vfolder_revert): new api to re-load the vfolders file. svn path=/trunk/; revision=24322
Diffstat (limited to 'mail/em-folder-view.c')
-rw-r--r--mail/em-folder-view.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index 66835a56a8..8d9d39f1ff 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -113,8 +113,6 @@ static const EMFolderViewEnable emfv_enable_map[];
struct _EMFolderViewPrivate {
guint seen_id;
guint setting_notify_id;
-
- char *displayed_uid; /* only used to stop re-loads, don't use it to represent any selection state */
CamelObjectHookID folder_changed_id, message_changed_id;
@@ -400,6 +398,8 @@ static void
emfv_set_message(EMFolderView *emfv, const char *uid)
{
message_list_select_uid(emfv->list, uid);
+ /* force an update, since we may not get an updated event if we select the same uid */
+ emfv_list_message_selected(emfv->list, uid, emfv);
}
/* ********************************************************************** */
@@ -1734,14 +1734,14 @@ emfv_list_message_selected(MessageList *ml, const char *uid, EMFolderView *emfv)
if (emfv->preview_active) {
if (uid) {
- if (emfv->priv->displayed_uid == NULL || strcmp(emfv->priv->displayed_uid, uid) != 0) {
- g_free(emfv->priv->displayed_uid);
- emfv->priv->displayed_uid = g_strdup(uid);
+ if (emfv->displayed_uid == NULL || strcmp(emfv->displayed_uid, uid) != 0) {
+ g_free(emfv->displayed_uid);
+ emfv->displayed_uid = g_strdup(uid);
mail_get_message(emfv->folder, uid, emfv_list_done_message_selected, emfv, mail_thread_new);
}
} else {
- g_free(emfv->priv->displayed_uid);
- emfv->priv->displayed_uid = NULL;
+ g_free(emfv->displayed_uid);
+ emfv->displayed_uid = NULL;
em_format_format((EMFormat *)emfv->preview, NULL, NULL, NULL);
}
}