From fb06ffa383cd7f2398ff9332438d78a4921b5fc1 Mon Sep 17 00:00:00 2001 From: Jason Leach Date: Fri, 19 Jan 2001 07:36:55 +0000 Subject: (Bug #883: Shortcut bar does not update when a folders display name 2001-01-17 Jason Leach (Bug #883: Shortcut bar does not update when a folders display name changes) * e-local-storage.c (class_init): Define a new "folder_updated" signal here. (bonobo_interface_update_folder_cb): Emit the new folder_updated signal here. * e-shell-view.c (e_shell_view_construct): Connect the EShell::ELocalStorage folder_updated signal here. Also connect the updated_folder signal coming from EShell::EStorageSet to the new callback. * e-shell-view.c (folder_updated_cb): Callback that actually initiates the shell updating. * e-shortcuts.c (e_shortcuts_update_shortcut_by_uri): New function. Given a uri for a shortcut bar item, we'll update it. * e-shortcuts.c (e_shortcuts_remove_shortcut_by_uri): New function. Given a uri for a shortcut bar item, we'll remove it. * e-shortcuts.c (removed_folder_cb): Connect this callback that will remove a renamed vfolder from the shortcut bar. Temporary fix to the problem of renaming vfolders and having the shortcut bar think the old vfolder still exists. (Bug #1168: Shortcut bar and icon size persistence) * e-shell-view.c (save_shortcut_bar_icon_modes): New static function, save the icon modes (for all shortcut bar groups, even though we only have one group now). (load_shortcut_bar_icon_modes): New static function, load the saved shortcut bar group icon modes and apply them to our shortcut bar. svn path=/trunk/; revision=7639 --- shell/e-local-storage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shell/e-local-storage.h') diff --git a/shell/e-local-storage.h b/shell/e-local-storage.h index a7cb520ba1..8b1d6f2846 100644 --- a/shell/e-local-storage.h +++ b/shell/e-local-storage.h @@ -54,6 +54,8 @@ struct _ELocalStorage { struct _ELocalStorageClass { EStorageClass parent_class; + + void (* folder_updated) (ELocalStorage *local_storage, const char *path); }; -- cgit