From 57db15334b2ea42d619024a48bda764af46d0e2a Mon Sep 17 00:00:00 2001 From: jacob berkman Date: Mon, 25 Jun 2001 21:12:10 +0000 Subject: sync folders after we've gotten mail 2001-06-25 jacob berkman * mail-send-recv.c (free_send_data): sync folders after we've gotten mail * folder-browser-factory.c (control_activate): set the ui component on the folder browser (control_activate): update the view preview item (control_deactivate): don't sync the folder here (control_deactivate): unset the ui component of the folder browser * mail-callbacks.c (toggle_flags): stuff from jleach to add an importance keybinding (mark_as_important): ditto (toggle_as_important): again * mail-config.c (mail_config_get_show_preview): (mail_config_set_show_preview): basically a copy of get_thread_list() but for the preview pane * folder-browser.c (folder_browser_destroy): unref the our ui component (folder_browser_set_ui_component): new function for setting the ui component (save_cursor_pos): (set_cursor_pos): try to show the selected row when the preview pane is shown (folder_browser_set_message_preview): implement (folder_browser_toggle_preview): toggle the preview (duh) (on_key_press): add keybindings for marking as important (!), and hiding the preview pane (q) (etree_key): clean up a little bit, and make enter either show the preview pane or open the message (fb_resize_cb): only save the paned size if the preview is alread shown (folder_browser_gui_init): pass ourselves to fb_resize_cb (on_message_selected): only add the timeout if the preview is shown svn path=/trunk/; revision=10491 --- mail/folder-browser.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/folder-browser.h') diff --git a/mail/folder-browser.h b/mail/folder-browser.h index 4372d8cc22..943bcf2fc8 100644 --- a/mail/folder-browser.h +++ b/mail/folder-browser.h @@ -30,6 +30,7 @@ struct _FolderBrowser { BonoboPropertyBag *properties; GNOME_Evolution_Shell shell; + BonoboUIComponent *uicomp; /* * The current URI being displayed by the FolderBrowser @@ -84,6 +85,9 @@ struct fb_ondemand_closure { GtkType folder_browser_get_type (void); GtkWidget *folder_browser_new (const GNOME_Evolution_Shell shell); +void folder_browser_set_ui_component (FolderBrowser *fb, + BonoboUIComponent *uicomp); + gboolean folder_browser_set_uri (FolderBrowser *folder_browser, const char *uri); @@ -113,6 +117,12 @@ void hide_none(GtkWidget *w, FolderBrowser *fb); void hide_subject(GtkWidget *w, FolderBrowser *fb); void hide_sender(GtkWidget *w, FolderBrowser *fb); +void folder_browser_toggle_preview (BonoboUIComponent *component, + const char *path, + Bonobo_UIComponent_EventType type, + const char *state, + gpointer user_data); + void folder_browser_toggle_threads (BonoboUIComponent *component, const char *path, Bonobo_UIComponent_EventType type, -- cgit