aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree-model.c')
-rw-r--r--mail/em-folder-tree-model.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 4efa1ca7f9..0c1c689ecf 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -998,21 +998,18 @@ em_folder_tree_model_set_expanded (EMFolderTreeModel *model, const char *key, gb
*p = '\0';
if (!(node = find_xml_node (node, name))) {
- if (expanded) {
- /* node (or parent node) doesn't exist, need to add it */
- node = xmlNewChild (parent, NULL, "node", NULL);
- xmlSetProp (node, "name", name);
- xmlSetProp (node, "expand", "true");
- } else {
+ if (!expanded) {
/* node doesn't exist, so we don't need to set expanded to FALSE */
return;
}
- } else if (p == NULL && !expanded) {
- /* found the node we were looking for */
- xmlSetProp (node, "expand", "false");
- return;
+
+ /* node (or parent node) doesn't exist, need to add it */
+ node = xmlNewChild (parent, NULL, "node", NULL);
+ xmlSetProp (node, "name", name);
}
+ xmlSetProp (node, "expand", expanded || p ? "true" : "false");
+
name = p ? p + 1 : NULL;
} while (name);
}
* set the 24 hour format initiallyJP Rosevear2002-10-094-55/+15 * Don't maek "en" for translation. Fixes bug #31788.Jeffrey Stedfast2002-10-083-5/+10 * Update version number to 1.1.2.99.Ettore Perazzoli2002-10-082-2/+8 * Sync for 1.1.2.Ettore Perazzoli2002-10-0847-65689/+84821 * Fixes #31774Rodrigo Moya2002-10-082-2/+9 * cast the correct itemJP Rosevear2002-10-082-1/+6 * More fixups.Ettore Perazzoli2002-10-081-137/+148 * Add fixer's name to info.JP Rosevear2002-10-081-19/+19 * Remove a conflict tag.Mike Kestner2002-10-081-1/+0 * GAL news.Mike Kestner2002-10-081-0/+8 * Oops, remove redundancy.JP Rosevear2002-10-081-7/+0 * Update.JP Rosevear2002-10-081-0/+43 * Update.Ettore Perazzoli2002-10-081-52/+61 * updated news for mailerJeffrey Stedfast2002-10-081-0/+59 * Update.Ettore Perazzoli2002-10-081-2/+72 * Set content->rawtext to TRUE for text parts because the content is in itsJeffrey Stedfast2002-10-082-7/+33 * Fixes bug #31752Jeffrey Stedfast2002-10-083-12/+39 * Fix all mailing list regex patterns to allow any number of spaces *or*Jeffrey Stedfast2002-10-082-11/+17 * Change the selection mode to GTK_SELECTION_BROWSE so there is always aEttore Perazzoli2002-10-083-14/+18 * Fixes crash in #19159Rodrigo Moya2002-10-072-7/+23 * Fixes #15892Rodrigo Moya2002-10-0711-26/+222 * Updated Norwegian translation.Kjartan Maraas2002-10-052-854/+965 * new function, emit cancelled so the folder selector button will sensitizeChris Toshok2002-10-052-0/+20 * Don't default 'me' to the source account until after we've tried to detectJeffrey Stedfast2002-10-052-13/+45 * Don't create a new file if the file doesn't exist.Jeffrey Stedfast2002-10-052-2/+8 * Remove "..." from "Remove Other User's Folder" since it doesn't pop up aDan Winship2002-10-052-1/+6 * Use the content-object's rawtext flag to decide if it needs to be filteredJeffrey Stedfast2002-10-052-1/+8 * [ Fix #28392 ] #if 0 out the gal_view submenu, since it's not spec'ed toChris Toshok2002-10-052-0/+9 * Dont get the filter driver inside the change_lock. Its not necessary, andNot Zed2002-10-042-5/+16 * call drop_timeoutMike Kestner2002-10-041-2/+1 * Map us-ascii to windows-1252 also.Jeffrey Stedfast2002-10-042-1/+7 * removed unneeded g_assert which was preventing the alarm daemon to startRodrigo Moya2002-10-032-2/+6 * Fixes #30057Rodrigo Moya2002-10-039-42/+106 * Add missing ;.Michael Zucci2002-10-031-1/+1 * /home/notzed/gnome/head/evolution/camelNot Zed2002-10-035-22/+49 * oops, didn't want to change thatJohn Corwin2002-10-031-1/+1 * shouldn't need automake-1.4John Corwin2002-10-031-1/+1 * free adapter->priv.Chris Toshok2002-10-021-30/+29 * If the user hits cancel when signing/encrypting, don't continueJeffrey Stedfast2002-10-022-2/+8 * When signing/encrypting a part, if a USER_CANCEL occurs, re-use the partJeffrey Stedfast2002-10-022-2/+10 * (drag_data_get_cb): silence warning.Larry Ewing2002-10-022-1/+2 * add support for dragging the content type directly.Larry Ewing2002-10-022-3/+44 * Connect to the changed signal for the reply_to entry box. Fixes bugsJeffrey Stedfast2002-10-022-1/+6 * Only setup the languages if the language_seq is not CORBA_OBJECT_NIL.Jeffrey Stedfast2002-10-022-7/+13 * Use e_utf8_gtk_entry_set_text for the email address and reply-to fields.Jeffrey Stedfast2002-10-022-2/+6 * Handle a multipart/encrypted part. Fixes bug #31547.Jeffrey Stedfast2002-10-022-1/+14 * Use strtol when decoding the timezone (since it can be negative) and don'tJeffrey Stedfast2002-10-022-1/+10 * added isReadOnly method to Cal interface.Rodrigo Moya2002-10-028-1/+103 * Allocate the right number of bytes whenEttore Perazzoli2002-10-022-1/+7 * Shut up some compiler warnings.Jeffrey Stedfast2002-10-022-3/+5 * Use the camel_message_info_new/free functions rather than g_new0 andJeffrey Stedfast2002-10-023-113/+60 * [Fix #24732]Ettore Perazzoli2002-10-022-2/+13 * Fixes #15710Rodrigo Moya2002-10-013-1/+60 * Fixes #30290Rodrigo Moya2002-10-012-3/+9 * cursor activated on etable is required to know when the selection changesNot Zed2002-10-012-0/+16 * [ Fixes #31321 ] add VERSION:2.1 to exported vCards.Chris Toshok2002-10-012-0/+8 * Fixes bug #31456.Jeffrey Stedfast2002-10-013-43/+79 * [ Partial fix for #30657 ] remove Bigfoot, since ldap.bigfoot.com noChris Toshok2002-10-012-7/+6 * [ Fixes #31434 ] always retrieve the card from the db. use the summaryChris Toshok2002-10-012-0/+17 * Don't strip the namespace from the fi->full_name when hasing or creatingJeffrey Stedfast2002-10-013-15/+11 * load multi_day_split (calconduit_save_configuration): save itJP Rosevear2002-10-012-4/+95 * It's a grand old string-review! Nitpicky and minor changes; details in the ap...Aaron Weber2002-10-0122-18/+75 * [Add a small delay to the switching of pages in the multi-configEttore Perazzoli2002-10-012-10/+56 * Add FileRemoveOtherUsersFolderDan Winship2002-10-012-1/+10 * Calls e_shell_command_remove_shared_folder. (file_verbs): Set upDan Winship2002-10-0113-102/+433 * If we return from evolution_shell_client_user_select_folder to find thatDan Winship2002-10-012-0/+17 * Change the accelerator of ToolsSubscriptions to be "u".Ettore Perazzoli2002-09-303-2/+11 * update for Composer_setHeaders change.Dan Winship2002-09-302-2/+7 * let the caller set the "From" account too (by name or address).Dan Winship2002-09-303-4/+34 * Remove debug content_info_dump, could cause a crash, and not really neededNot Zed2002-09-303-4/+14 * translate prompt from utf8 to gtk widget. #31365.Not Zed2002-09-302-7/+10 * Don't reuse the part that we've signed and/or encrypted, create a new partJeffrey Stedfast2002-09-282-1/+10 * use the fg color array in style, not text color. Change requested by ChrisMike Kestner2002-09-281-2/+2 * [ fixes #27521 ] always unref the contact editor when we get theChris Toshok2002-09-282-3/+10 * Remove "/Toolbar/New" and "/Toolbar/NewTask" since they're not there anyDan Winship2002-09-282-2/+6 * Non-Connector part of #29334 (meeting created by a delegate in theDan Winship2002-09-2819-45/+274 * New function to decode the INTERNALDATE response from an IMAP server so weJeffrey Stedfast2002-09-285-22/+152 * set the timeout to 30 seconds. (query_ldap_root_dse): same, and alsoChris Toshok2002-09-282-23/+43 * #include <stdlib.h> for alloca (searcher_next_token): Changed slightly toJeffrey Stedfast2002-09-282-11/+26 * added standard header comment containing GPL license infoJeffrey Stedfast2002-09-281-4/+17 * added standard header comment containing GPL licenseJeffrey Stedfast2002-09-281-4/+18 * Ooops.Ettore Perazzoli2002-09-281-4/+3 * updatedRadek Doulik2002-09-281-4570/+8128 * Set a timeout to call mail_config_write() in 2 seconds. Otherwise changesDan Winship2002-09-282-0/+37 * New icon for "Post a Reply" from Jakub.Dan Winship2002-09-283-0/+5 * (create_page_container): Don't set upEttore Perazzoli2002-09-282-0/+7 * Use the summary's last uid as the one to fetch from, ignoring the cache.Not Zed2002-09-273-22/+43 * Change folder type to "contacts/ldap". (addressbook_storage_add_source):Dan Winship2002-09-272-3/+12 * (e_summary_mail_generate_html): Generate HTMLEttore Perazzoli2002-09-272-3/+7 * Add member physical_uri to ESummaryMailFolder.Ettore Perazzoli2002-09-273-32/+59 * (folder_list_from_vector): Do someEttore Perazzoli2002-09-272-3/+17 * Take out CNN and DebianPlanet, which doEttore Perazzoli2002-09-272-3/+6 * (load_folder): Always return TRUE, even in theEttore Perazzoli2002-09-272-1/+6 * new helper function, g_strdown with forced C locale (e_iconv_init): useRadek Doulik2002-09-271-4/+21 * only change the attendee value if it isn't emptyJP Rosevear2002-09-272-1/+7 * set history_id on GnomeFileEntry, to actually get the history.Rodrigo Moya2002-09-262-1/+6 * Should fix once for all #24210Rodrigo Moya2002-09-266-29/+80 * Treat spool as a local folder, so the ref checks work right.Not Zed2002-09-263-4/+6 * Implement FOLDER_CREATE flag. (scan_dir): Dont free name on exception, itsNot Zed2002-09-264-20/+101 * Store the folder flags in the store summary. (get_one_folder_offline): SetNot Zed2002-09-262-3/+27 * Handle EILSEQ by eating bytes in the input buffer until conversion isJeffrey Stedfast2002-09-262-88/+115 * Added a test suite for camel-mime-filter-charset and added a few test cases f...Jeffrey Stedfast2002-09-268-11/+1059 * Add a margin around the "flag for followup" table so it lines up withDan Winship2002-09-262-4/+15 * Use "mail/*" as the allowed folder type.Dan Winship2002-09-263-2/+9 * Use "mail/*" for the allowed_types for the posting folder selector.Dan Winship2002-09-262-1/+6 * add "mail/public". Leave "vtrash" as it is rather than renaming it toDan Winship2002-09-265-13/+47 * Add "calendar/public" and "tasks/public". (type_is_calendar,Dan Winship2002-09-265-38/+110 * Rename "ldap-contacts" to "contacts/ldap" and add "contacts/public".Dan Winship2002-09-265-4/+27 * If one of the allowed types is "type/*", allow anything starting withDan Winship2002-09-265-12/+55 * Make the Zoom accels the same as galeon so people will shut the fuck upJeffrey Stedfast2002-09-262-3/+9 * NULL-check si->folders before passing it into find_folder so we don'tJeffrey Stedfast2002-09-262-1/+7 * free adapter->priv.Chris Toshok2002-09-264-4/+30 * [Finish fixing #11645.]Ettore Perazzoli2002-09-266-46/+142 * if the item being sent is not a meeting, send it as a mixed item with aJP Rosevear2002-09-262-7/+105 * added a comment about the fix for #30918.Rodrigo Moya2002-09-262-0/+7 * Fixes #27961Rodrigo Moya2002-09-252-0/+12 * add the gtk2 keypad entries (resync with gdk).Larry Ewing2002-09-251-10/+34 * Updated Korean translation by Young-Ho Cha <ganadist@mizi.com>.Changwoo Ryu2002-09-252-1/+6 * Updated Korean translation.Changwoo Ryu2002-09-252-5136/+3215 * Updated Polish translation by GNOME PL Team <translators@gnome.pl>Chyla Zbigniew2002-09-252-12536/+10469 * Allow users to delete already deleted messages, fixes bug #30827.Jeffrey Stedfast2002-09-252-1/+6 * Only append the account name to the end of the From menu item if the emailDan Winship2002-09-252-4/+30 * Placate compiler.Ettore Perazzoli2002-09-255-1/+69 * Don't destroy the dialog. It does that itself whenever it emitsDan Winship2002-09-253-4/+12 * added gtkhtml to GNOME_FULL flagsRadek Doulik2002-09-251-1/+1 * add gtkhtml to addressbook flagsRadek Doulik2002-09-251-1/+1 * return a builtin timezone if we don't find the timezone in our component.Rodrigo Moya2002-09-252-7/+22 * Add PilotConduitSettings verb. [#14019]Ettore Perazzoli2002-09-242-18/+42 * Make the default vfolders only operate on local folders. OtherwiseDan Winship2002-09-242-4/+10 * make sure the start/end for no time palm events are DATE values, tidy codeJP Rosevear2002-09-242-13/+24 * convert to date values if the original start and end were both datesJP Rosevear2002-09-242-2/+12 * Don't mark empty string with _().Zbigniew Chyla2002-09-242-1/+6 * unref the query since now the query object on the server keeps a copy ofRodrigo Moya2002-09-242-1/+6 * unref the QueryListener object. (query_construct): create anRodrigo Moya2002-09-242-1/+24 * use the new e_tree_set_search_column function instead of my lameass sortMike Kestner2002-09-242-14/+6 * New api to set the search column on a tree without having to set a sortMike Kestner2002-09-242-0/+23 * Changed the Mailing-List rule to get the complete domain (* in wrongNot Zed2002-09-242-1/+4 * Clear search by setting text to "" and search to first search.Not Zed2002-09-243-12/+17 * Always do a search if the query changed. For #31060 & #29625.Not Zed2002-09-242-3/+5 * If we have no data written to a key, dont add it, or its partition header.Not Zed2002-09-246-24/+123 * pass name of the script as 1st parameterRadek Doulik2002-09-243-2/+10 * Pass ev, not &ev to CORBA_Object_duplicate since ev is already a pointer.Dan Winship2002-09-242-1/+6 * Fix non-ANSI switch statement.Dan Winship2002-09-245-3/+20 * (e_summary_weather_get_html): Don't add anyEttore Perazzoli2002-09-242-13/+7 * (e_shell_construct): Oops, no @shell argument toEttore Perazzoli2002-09-242-1/+6 * Use e_shell_request_close_view().Ettore Perazzoli2002-09-244-31/+74 * Use 0666 as the create mode so that the user's umask is used to it'sJeffrey Stedfast2002-09-242-1/+6 * If the original message is deleted, reset the deleted flag when we'reJeffrey Stedfast2002-09-242-3/+8 * add gtkhtml flags to shell as wellRadek Doulik2002-09-241-1/+1 * (get_type_from_parent_path):Ettore Perazzoli2002-09-242-3/+9 * Decode the INTERNALDATE if we've got one. (imap_update_summary): InsteadJeffrey Stedfast2002-09-242-5/+34 * use pkg-config for gtkhtmlRadek Doulik2002-09-242-14/+16 * Removed a #warning.Ettore Perazzoli2002-09-243-13/+12 * Added some missing names.Ettore Perazzoli2002-09-244-2/+17 * add these and install Mailer.idlDan Winship2002-09-242-0/+7 * fix kde applnk test to not test for things if disabledJP Rosevear2002-09-242-28/+78 * add libeutil to the linkJP Rosevear2002-09-243-0/+10 * add libeutil to the link and link with libcamel instead ofJP Rosevear2002-09-242-1/+7 * fix non-ANSI switch statement.Dan Winship2002-09-232-0/+6 * fix non-ANSI switch statements.Dan Winship2002-09-234-0/+16 * install an idle callback that will start the alarm daemon.Rodrigo Moya2002-09-232-4/+25 * Update URLs for mailing lists, Evolution application page, helpAaron Weber2002-09-233-83/+89 * remove timeout function always and re-add it if the query is in progress.Rodrigo Moya2002-09-232-14/+15 * move success notification code to its own code block, since it was beingRodrigo Moya2002-09-232-27/+41 * gtk_object_ref the component listener before emitting the "component_died"Rodrigo Moya2002-09-232-0/+10 * Fixes #28310Rodrigo Moya2002-09-231-0/+2 * only save the new notification time if it is bigger than the already savedRodrigo Moya2002-09-232-1/+13 * oops, add cached_folder_list to struct _ESelectNamesManager.Chris Toshok2002-09-232-0/+7 * [ Fixes #30481 ] initialize the select names dialog with the defaultChris Toshok2002-09-232-7/+29 * Fix non-ANSI switch statementDan Winship2002-09-232-0/+5 * add empty statement after label to make it ANSI.Dan Winship2002-09-232-0/+6 * fix non-ANSI switch statement.Dan Winship2002-09-235-0/+15 * Fix some non-ANSI switch statementsDan Winship2002-09-233-0/+9 * Fix some non-ANSI switch statements.Dan Winship2002-09-232-2/+7 * [ Fixes #28165, 29171 ] check to see if the value has really changed. theChris Toshok2002-09-232-25/+64 * updated po filePablo Saratxaga2002-09-232-2569/+2222 * Updated Norwegian nynorsk translationRoy-Magne Mo2002-09-222-750/+174 * [ Fixes #30483 ] argh, contains => beginswith.Chris Toshok2002-09-212-1/+7 * Big language name cleanupKjartan Maraas2002-09-211-53/+53 * Added a couple of missing .glade files. Updated Norwegian translation.Kjartan Maraas2002-09-213-790/+771 * Connect signal handlers to the GtkHTML preferences so that when theJeffrey Stedfast2002-09-212-7/+21 * Removed member sort_idle_id inEttore Perazzoli2002-09-212-80/+50 * fix problem where -lpisync was not linked in if you didn't specifyJP Rosevear2002-09-212-2/+7 * offline usage.Aaron Weber2002-09-213-19/+52 * check to see if the component is already on the server or notJP Rosevear2002-09-215-107/+49 * forgot to commit changelogAaron Weber2002-09-211-0/+5 * linked to wrong image.Aaron Weber2002-09-211-1/+1 * set the deleted attendees array to size 0 after we clean it upJP Rosevear2002-09-202-1/+9 * remove the query from the cache if it failed. (start_cached_query_cb):Rodrigo Moya2002-09-202-0/+23 * Make it validate. Same here.Kjartan Maraas2002-09-204-3/+8 * Make it validateKjartan Maraas2002-09-201-1/+1 * New regression test for word splitting/search input parsing code.Not Zed2002-09-206-29/+187 * Make locale_charset a char *, not const char *. Kills a warning in theDan Winship2002-09-202-2/+3 * allow to select last 2 menu itemsRadek Doulik2002-09-202-1/+6 * Unset the changed bit on the composer and also drop any undo operationsJeffrey Stedfast2002-09-202-0/+8 * [Fix #28495 with a lame hack that works around Bonobo sizingEttore Perazzoli2002-09-202-2/+47 * add item about permissions.Aaron Weber2002-09-204-397/+339 * (async_create_cb): Don't setEttore Perazzoli2002-09-202-3/+5 * added a list of EComponentListener's to control the lifetime of theRodrigo Moya2002-09-202-1/+45 * Set the selection model's selection_mode after setting the table model, orDan Winship2002-09-201-5/+2 * More fixes for #24210Rodrigo Moya2002-09-202-64/+248 * guard against NULL nodes.Mike Kestner2002-09-201-0/+1 * (evolution_storage_update_folder): Do notEttore Perazzoli2002-09-202-17/+11 * (resort): New. (sort_idle_callback): Use it. (insert_storages): UseEttore Perazzoli2002-09-202-8/+23 * bandaid for 30248.Mike Kestner2002-09-202-1/+5 * Fix for filter driver api change.Not Zed2002-09-192-1/+6 * Changed source account, use header-source rather than (= (get-source) ...)Not Zed2002-09-192-2/+7 * Take new session arg. Update callers. (symbols[]): changed get-source toNot Zed2002-09-195-39/+70 * Don't increment the response pointer when deciding what type of headerJeffrey Stedfast2002-09-192-4/+17 * bump the month_num by 1 because it indexs at 0JP Rosevear2002-09-192-2/+12 * fixed a merge conflictJeffrey Stedfast2002-09-191-1/+0 * Include MIME-VERSION and CONTENT-TYPE.Jeffrey Stedfast2002-09-192-1/+6 * If we get an ALERT, pass it to the user. An rfc2060 MUST, and bug #22496.Not Zed2002-09-192-0/+16 * Allow 'back' to run if we're on the finish page. For #29293.Not Zed2002-09-192-1/+8 * If going back from a page past our end (i.e. the final page), jump to theNot Zed2002-09-192-1/+7 * updated .cvsignoreJeffrey Stedfast2002-09-191-0/+1 * reverted wrapping patchRadek Doulik2002-09-194-83/+46 * Handle when the response is from a HEADER.FIELDS (if so, we don't want toJeffrey Stedfast2002-09-192-5/+26 * helper to map a camel excpeiton to a listener result.Not Zed2002-09-182-9/+36 * apply patch for 27447 from Matt Avery for a bug in the solaris iconvMike Kestner2002-09-181-2/+3 * Handle multipart/signed and multipart/encrypted parts in a more expectedJeffrey Stedfast2002-09-182-33/+51 * don't add the user creatable item for ldap-contact folders atm, since itChris Toshok2002-09-182-9/+7 * Add description for E_STORAGE_NOTONLINE.Ettore Perazzoli2002-09-185-0/+19 * Remove unused variable.Ettore Perazzoli2002-09-183-1/+17 * Use e_strftime_fix_am_pm here which fixes locale issues as well as workingJeffrey Stedfast2002-09-184-3/+9 * Add Israel. [Patch by Sam Popper <shmuelp@bigfoot.com>.]Ettore Perazzoli2002-09-18