aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-ui.c
Commit message (Collapse)AuthorAgeFilesLines
* Create a chaqrset picker submenu in the View menu.Jeffrey Stedfast2001-10-101-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-09 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_message): Create a chaqrset picker submenu in the View menu. * mail-format.c (mail_format_raw_message): Pass the mail-display to get_data_wrapper_text. (get_data_wrapper_text): Use the user's override charset if one is provided, otherwise user the user's default charset. (handle_text_plain): Pass along the mail-display to get_data_wrapper_text. (handle_application_pgp): Same. (handle_text_enriched): Here too. (mail_get_message_body): Pass NULL as the mail-display to get_data_wrapper_text since we don't have access to a mail-display. * mail-display.c (mail_display_set_charset): New function to set a charset on the maildisplay. Once set, the message is redisplayed using the new charset. (mail_display_destroy): Free the charset. * folder-browser.c (folder_browser_charset_changed): New callback for when a user overrides the message charset. svn path=/trunk/; revision=13530
* Update for folder_flags.Dan Winship2001-10-091-2/+1
| | | | | | | | | | | | | | | | * mail-local.c (mlf_set_folder, mlf_unset_folder): Update for folder_flags. * folder-browser-ui.c (folder_browser_ui_add_list): Check CAMEL_FOLDER_IS_TRASH flag rather than checking CAMEL_IS_VTRASH_FOLDER. * folder-browser.c (folder_browser_toggle_hide_deleted): Likewise * message-list.c (message_list_set_folder): Likewise. (message_list_set_hidedeleted): Remove redundant trash check. svn path=/trunk/; revision=13510
* Do a better job of setting up the name. Also de-sensitise when we can't42001-10-051-2/+18
| | | | | | | | | | 2001-10-04 <NotZed@Ximian.com> * folder-browser-ui.c (folder_browser_setup_property_menu): Do a better job of setting up the name. Also de-sensitise when we can't configure the folder. svn path=/trunk/; revision=13427
* wrap a bonobo_ui_component_freeze/thaw around all of the set_props so theyDan Winship2001-09-291-0/+4
| | | | | | | | * folder-browser-ui.c (fbui_sensitize_timeout): wrap a bonobo_ui_component_freeze/thaw around all of the set_props so they all update at once. svn path=/trunk/; revision=13245
* Call folder_browser_toggle_threads() here after setting the value. ThisJeffrey Stedfast2001-09-291-3/+5
| | | | | | | | | | | 2001-09-28 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_list): Call folder_browser_toggle_threads() here after setting the value. This should fix bug #6415 and if it doesn't, then this whole deal is just a lost cause. svn path=/trunk/; revision=13226
* Merged into folder_browser_new: nothing ever changes the URI of anDan Winship2001-09-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * folder-browser.c (folder_browser_set_uri): Merged into folder_browser_new: nothing ever changes the URI of an existing folder browser any more. (folder_browser_new): Make this take a uri argument and do the work folder_browser_set_uri used to do, except that we set fb->uri right away, so that if the folder browser's control is activated before got_folder() gets called, then folder_browser_ui_add_list() will have access to the correct uri for purposes of setting ViewThreaded, etc. Fixes #4913. (got_folder): Don't set fb->uri here since it will already have been set. Don't call message_list_set_threaded, since it should be a noop now (and if it's not, it would make the message list not match the menu item). * folder-browser-ui.c (folder_browser_ui_add_list): Remove some code that was failing to work around the problems above. * message-browser.c (message_browser_new): Pass uri to folder_browser_new, remove call to set_uri. * folder-browser-factory.c (folder_browser_factory_new_control): Likewise. Also fix a s/destroy/unref/ in an error cleanup. svn path=/trunk/; revision=12954
* in mail:Peter Williams2001-08-301-1/+1
| | | | | | | | | | | | | | | 2001-08-29 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: Fix the pixmap for /commands/MessageUndelete. in ui: 2001-08-29 Peter Williams <peterw@ximian.com> * evolution-mail-message.xml: Add a pixtype to /Commands/MessageUndelete so that people can see the icon. svn path=/trunk/; revision=12515
* Check for NULL uic here as well. (fbui_sensitize_items): Up the timeoutPeter Williams2001-08-221-2/+8
| | | | | | | | | | 2001-08-22 Peter Williams <peterw@ximian.com> * folder-browser-ui.c (fbui_sensitize_timeout): Check for NULL uic here as well. (fbui_sensitize_items): Up the timeout interval to 110 ms. svn path=/trunk/; revision=12380
* Rename to fbui_real_sensitize_items. Now we queue a change and set up aPeter Williams2001-08-221-11/+67
| | | | | | | | | | | | | | | | | | | | | | 2001-08-21 Peter Williams <peterw@ximian.com> * folder-browser-ui.c (fbui_sensitize_items): Rename to fbui_real_sensitize_items. Now we queue a change and set up a timeout, making sure weed out redundant changes, fixing flicker. (fbui_sensitize_timeout): New function. The timeout. (fbui_real_sensitize_items): Semi-new function. Rename of old fbui_sensitize_items. (folder_browser_ui_set_selection_state): Pass the FB instead of only the UIC to sensitize_items. (folder_browser_ui_message_loaded): Same. * folder-browser.c (folder_browser_destroy): Kill the new timeout if it is registered. * folder-browser.h: Add some members to FolderBrowser for keeping track of the queue of changes. svn path=/trunk/; revision=12343
* Move the ChangeFolderProperties into the ComponentPlaceholder. Add aEttore Perazzoli2001-08-211-1/+1
| | | | | | | | | | | | | | * evolution-mail-list.xml: Move the ChangeFolderProperties into the ComponentPlaceholder. Add a separator on the top. * evolution.xml: Remove the separator above the component placeholder here. * folder-browser-ui.c (folder_browser_setup_property_menu): Updated as ChangeFolderProperties is now in the ComponentPlaceholder. svn path=/trunk/; revision=12323
* use new small trash icon for Delete command.Damon Chaplin2001-08-201-1/+1
| | | | | | | | 2001-08-20 Damon Chaplin <damon@ximian.com> * folder-browser-ui.c: use new small trash icon for Delete command. svn path=/trunk/; revision=12283
* use new Cut/Copy/Paste icons.Damon Chaplin2001-08-201-0/+4
| | | | | | | | 2001-08-20 Damon Chaplin <damon@ximian.com> * folder-browser-ui.c: use new Cut/Copy/Paste icons. svn path=/trunk/; revision=12248
* Change pixtype of "MessageDelete" to "pixbuf".Ettore Perazzoli2001-08-191-0/+1
| | | | | | | | | | | * evolution-mail-message.xml: Change pixtype of "MessageDelete" to "pixbuf". * folder-browser-ui.c: Hook the new `delete-message.png' up. * Makefile.am (buttons_DATA): Added `delete-message.png'. svn path=/trunk/; revision=12204
* Sort the nodes here... (fe_sort_folder): ... using this function.Peter Williams2001-08-171-1/+1
| | | | | | | | | | | | 2001-08-16 Peter Williams <peterw@ximian.com> * subscribe-dialog.c (fe_got_children): Sort the nodes here... (fe_sort_folder): ... using this function. * folder-browser-ui.c (folder_browser_ui_message_loaded): Check for uic == NULL. I'm not sure how this could happen, but... svn path=/trunk/; revision=12130
* Disable "Search Message" when more or less than exactly one message isPeter Williams2001-08-171-1/+1
| | | | | | | | | 2001-08-16 Peter Williams <peterw@ximian.com> * folder-browser-ui.c (folder_browser_ui_set_selection_state): Disable "Search Message" when more or less than exactly one message is selected. svn path=/trunk/; revision=12112
* Fix bug #215... desensitize menu items based on the number of selectedPeter Williams2001-08-141-2/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-08-09 Peter Williams <peterw@ximian.com> Fix bug #215... desensitize menu items based on the number of selected messages (and whether there's a message in the pane) * folder-browser-ui.c (folder_browser_ui_add_message): Sensitize the menu items appropriately based on the old state. (fbui_sensitize_items): New function. Set the sensitivity of a list of commands. (folder_browser_ui_set_selection_state): New function. Move the FB to a new state of selected-ness, and sensitize menu items appropriately. (folder_browser_ui_message_loaded): New function. When notified that a message has been loaded, sensitize some menu items. * folder-browser-ui.h: Prototype new functions. * folder-browser.h: New enumeration, FolderBrowserSelectionState, that records the previous state of the selection (_NONE, _SINGLE, _MULTIPLE). * folder-browser.c (got_folder): If the component is set, set our selection state to _NONE, because that's the default state of the ETree. (on_selection_changed): When the number of selected messages is updated, notify the FBUI code of our new state. (folder_browser_gui_init): Hook up to the selection_changed signal and default to the _NONE selection state. (done_message_selected): Notify when a message is loaded. 2001-08-08 Peter Williams <peterw@ximian.com> * mail-folder-cache.c: Display how many messages are selected, too. (make_folder_status): If multiple messages are selected, add that to the string (the 0 and 1 cases are boring) (selection_changed): New function, update the selected count. (mail_folder_cache_note_fb): Connect to the selection_changed signal. svn path=/trunk/; revision=12012
* More updates to icons, this time the Save, Save As, and Search icons forJacob Leach2001-08-011-0/+2
| | | | | | a few places. svn path=/trunk/; revision=11544
* Don't need this anymore. (do_get_pass): Since we already have the entryJeffrey Stedfast2001-07-281-13/+8
| | | | | | | | | | 2001-07-27 Jeffrey Stedfast <fejj@ximian.com> * mail-mt.c (focus_on_entry): Don't need this anymore. (do_get_pass): Since we already have the entry widget, no need to do the nasty focus_on_entry hack. svn path=/trunk/; revision=11453
* [Bug #5225: No UI way to mark as unimportant]Jason Leach2001-07-241-1/+2
| | | | | | | | | | | | | | | | | 2001-07-23 Jason Leach <jleach@ximian.com> [Bug #5225: No UI way to mark as unimportant] * folder-browser.c (on_right_click): Do the necessary stuff to show or hide the correct "Mark Important" or "Mark as Unimportant" menu items depending on the status of messages that are selected. * folder-browser-ui.c: Add the MarkAsUnimportant verb here. * mail-callbacks.c (mark_as_unimportant): Simple function that's the callback for these new menu items. svn path=/trunk/; revision=11316
* Use our own display_style member instead of the global setting.Peter Williams2001-07-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-07-16 Peter Williams <peterw@ximian.com> * mail-display.c (mail_display_redisplay): Use our own display_style member instead of the global setting. (mail_display_init): Initialize display_style. * mail-display.h: Include "mail-config.h" and add a display_style member. * mail-format.c (write_headers): Look at the MailDisplay's display_style instead of using the full_headers data. * folder-browser.c (folder_browser_set_message_display_style): Set the MailDisplay's display style as well as the global display style. (my_folder_browser_init): Don't save preference changes by default. (This is only observered wrt. the message display style but should apply to other items.) * folder-browser-factory.c (folder_browser_factory_new_control): Set this FB to save the preferences set in it. * folder-browser-ui.c (folder_browser_ui_add_message): Read our display's state instead of the global setting. svn path=/trunk/; revision=11131
* set "pixname" value only if pixbuf was loaded successfully. OtherwiseGediminas Paulauskas2001-07-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-shell-component-utils.c (e_pixmaps_update): set "pixname" value only if pixbuf was loaded successfully. Otherwise component crashes if image is not found. Should be checked for sanity in bonobo_ui_component_set_prop IMHO. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * Makefile.am: install apply-filters-16.xpm 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * evolution-mail-message.xml: MessageApplyFilters now has an icon. 2001-07-04 Gediminas Paulauskas <menesis@delfi.lt> * folder-browser-ui.c (message_pixcache): set icon for ApplyFilters command. svn path=/trunk/; revision=10783
* Finish off #809 by committing the menu and right click thingies forJacob Leach2001-07-041-1/+1
| | | | | | marking as important. svn path=/trunk/; revision=10765
* Use Tuomas' next-message, previous-message and print icons in theEttore Perazzoli2001-07-011-0/+4
| | | | | | mailer. svn path=/trunk/; revision=10647
* Bump required gal version for new accessors in ETree.Peter Williams2001-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-06-27 Peter Williams <peterw@ximian.com> * configure.in (gal): Bump required gal version for new accessors in ETree. mail: 2001-06-27 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: Uncomment EditSelectThread. Yaay! * mail-callbacks.c (select_thread): New function. Self-explanatory name. Implementation is a little hairy. * mail-callbacks.h: Prototype it here. * mail-callbacks.c (invert_selection): Here too. (select_all): Here too. * subscribe-dialog.c (subscribe_select_all): Update to use new ETree accessors. (subscribe_invert_selection): Here too. calendar: 2001-06-27 Peter Williams <peterw@ximian.com> * conduits/*/Makefile.am (INCLUDES): More srcdir != builddir fixes. svn path=/trunk/; revision=10544
* Change to use more reality-based API below. Include folder-browser-ui.hPeter Williams2001-06-281-22/+18
| | | | | | | | | | | | | | | | | | | | | 2001-06-27 Peter Williams <peterw@ximian.com> * folder-browser-factory.c (control_deactivate): Change to use more reality-based API below. Include folder-browser-ui.h too. (control_activate): Remove now-unused 'int state'. * folder-browser-ui.h: Changed prototypes to match changes below. * folder-browser-ui.c (folder_browser_ui_rm_message): Commented out to reflect reality of how this stuff works (you can't actually remove the pieces). (folder_browser_ui_rm_global): Same. (folder_browser_ui_rm_list): Left because here we add the view menus. (folder_browser_ui_add_list): ... which were moved here. (folder_browser_ui_rm_all): New function, does the job of old ui_rm() svn path=/trunk/; revision=10531
* Mail:Peter Williams2001-06-271-0/+390
001-06-26 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: New file derived from folder-browser-factory.c. Contains the Bonobo UI code, split into three groups as described in ui/ChangeLog. Also contains the GalView stuff and the hookups into the Bonobo UI stuff. * folder-browser-factory.c: Move most of the UI stuff to folder-browser-ui.c. (control_activate): Add all three kinds of UI element to this folderbrowser. (control_deactivate): Remove all three kinds. * folder-browser-ui.h: New file. Prototypes functions to add UI elements to a FolderBrowser. * Makefile.am: Add folder-browser-ui.{c,h} * message-browser.c (PARENT_TYPE): Change to BONOBO_TYPE_WINDOW (message_browser_destroy): Chain to parent destroy function. (set_bonobo_ui): New function. Add the 'message' functions from the folder browser to our UI. (message_browser_close): BonoboVerbify this. * message-browser.h: Convert to BonoboWindow. UI: 6-26 Peter Williams <peterw@ximian.com> * evolution-mail-global.xml: * evolution-mail-list.xml: * evolution-mail-message.xml: New files. These are the result of splitting evolution-mail.xml into three pieces: one for the global mailer operations, one for the operations on a messagelist, and one for the operations on one or more messages. * evolution-mail-messagedisplay: New file. UI for the standalone message browser that you get when you double-click. Very skeleton. * evolution-mail.xml: Removed. * Makefile.am: Updated to install new files. svn path=/trunk/; revision=10514