aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-browser.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-browser.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-browser.c')
-rw-r--r--mail/em-folder-browser.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index d8bc18c7fe..b30633481d 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -115,6 +115,8 @@ static void emfb_search_query_changed(ESearchBar *esb, EMFolderBrowser *emfb);
static int emfb_list_key_press(ETree *tree, int row, ETreePath path, int col, GdkEvent *ev, EMFolderBrowser *emfb);
static void emfb_list_message_selected (MessageList *ml, const char *uid, EMFolderBrowser *emfb);
+static void emfb_create_view_menus(EMFolderBrowser *emfb, BonoboUIComponent *uic);
+
static const EMFolderViewEnable emfb_enable_map[];
enum {
@@ -298,13 +300,17 @@ void em_folder_browser_show_preview(EMFolderBrowser *emfb, gboolean state)
gtk_widget_show (GTK_WIDGET (emfb->priv->preview));
if (emfb->view.list->cursor_uid)
- message_list_select_uid(emfb->view.list, emfb->view.list->cursor_uid);
+ em_folder_view_set_message(&emfb->view, emfb->view.list->cursor_uid);
/* need to load/show the current message? */
/*do_message_selected (emfb);*/
/*set_cursor_pos (emfb, y);*/
} else {
em_format_format((EMFormat *)emfb->view.preview, NULL, NULL, NULL);
+
+ g_free(emfb->view.displayed_uid);
+ emfb->view.displayed_uid = NULL;
+
gtk_widget_hide(emfb->priv->preview);
/*
mail_display_set_message (emfb->mail_display, NULL, NULL, NULL);