From e1e2d6393df2a7e1af08a18330fe65c49d81d9c9 Mon Sep 17 00:00:00 2001 From: Sam Creasey Date: Tue, 3 Jul 2001 02:56:39 +0000 Subject: Added an MailAccountEditorNews, for NNTP configuratuion. Based on 2001-07-02 Sam Creasey * mail-account-editor-news.c: Added an MailAccountEditorNews, for NNTP configuratuion. Based on MailAccountEditor, but stripped. * Makefile.am: added mail-account-editor-news.c and mail-account-editor-news.h to SOURCES if ENABLE_NNTP is defined. * mail-accounts.c (load_news): Moved this function, and fixed some slight brokenness. (news_edit): Added functional code using MailAccountEditorNews (news_add): Added functional code using news_edit after allocation. * mail-config.glade: news_editor_window widget added. Used by MailAccountEditorNews. * mail-display.c (save_data_cb): Store the pathname used when saving messages so that the next save box will default to the previous path. * message-browser.c (message_browser_new): add signal handler for size_allocate on the message browser. Thus new windows are size as they were last allocated. (message_browser_size_allocate_cb): handler to store allocations. * message-list.c (message_list_setup_etree): connect to the info_changed signals for the state of the message_list->tree. Save the folder state to disk, so that when additional message_lists are created, they are consistant. e.g. the next buttons do the same thing in the browser, and in the message viewer after changing sorting options. * subscribe-dialog.c (build_tree): freeze sc->folder model while building the tree. Not doing so takes a very long time over 40000 newsgroups. svn path=/trunk/; revision=10719 --- mail/message-browser.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mail/message-browser.c') diff --git a/mail/message-browser.c b/mail/message-browser.c index 39ff1249cc..741c663cd8 100644 --- a/mail/message-browser.c +++ b/mail/message-browser.c @@ -138,6 +138,14 @@ message_browser_folder_loaded (FolderBrowser *fb, const char *uri, MessageBrowse message_browser_message_list_built, mb); } +static void +message_browser_size_allocate_cb (GtkWidget *widget, + GtkAllocation *allocation) +{ + last_allocation = *allocation; + +} + /* Construction */ static void @@ -225,6 +233,9 @@ message_browser_new (const GNOME_Evolution_Shell shell, const char *uri, const c gtk_widget_reparent (GTK_WIDGET (fb->mail_display), vbox); gtk_widget_show (GTK_WIDGET (fb->mail_display)); gtk_widget_show (vbox); + + gtk_signal_connect(GTK_OBJECT(new), "size_allocate", + GTK_SIGNAL_FUNC(message_browser_size_allocate_cb), NULL); bonobo_window_set_contents (BONOBO_WINDOW (new), vbox); gtk_widget_grab_focus (GTK_WIDGET (MAIL_DISPLAY (fb->mail_display)->html)); -- cgit v1.2.3