From 7fa7518bd69dab32b11b7fa53b8b4055873cc5bb Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Mon, 9 Jul 2001 15:20:54 +0000 Subject: Return a gboolean saying whether or not the shortcut changed. Use strcmp * e-shortcuts.c (shortcut_item_update): Return a gboolean saying whether or not the shortcut changed. Use strcmp rather than pointer comparisons to determine this. (update_shortcut_and_emit_signal): propagate the gboolean from shortcut_item_update (and only emit the signal if it's TRUE). (update_shortcuts_by_path): Only call make_dirty if something changed. (storage_set_new_folder_callback, storage_set_updated_folder_callback): Don't call make_dirty: update_shortcuts_by_path will have called it if necessary. * e-shell-view.c (updated_folder_cb): Don't call update_for_current_uri if the folder that was updated isn't the one being displayed. svn path=/trunk/; revision=10912 --- shell/e-shell-view.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/e-shell-view.c') diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c index 03906a20d3..c8385ebbc4 100644 --- a/shell/e-shell-view.c +++ b/shell/e-shell-view.c @@ -1122,6 +1122,7 @@ updated_folder_cb (EStorageSet *storage_set, { EShellView *shell_view; EShellViewPrivate *priv; + const char *view_path; shell_view = E_SHELL_VIEW (data); priv = shell_view->priv; @@ -1134,6 +1135,10 @@ updated_folder_cb (EStorageSet *storage_set, g_free (uri); #endif + view_path = get_storage_set_path_from_uri (priv->uri); + if (strcmp (path, view_path) != 0) + return; + /* Update the folder title bar and the window title bar */ update_for_current_uri (shell_view); } -- cgit v1.2.3