aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-03-05 05:25:36 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-03-05 05:25:36 +0800
commit3703e58fa89f7644f50426288c4fc8f9325773ce (patch)
tree8985f4cf1240bd4f104268f301d8fd0d6d730c8a
parent6c95c6da0e9d40216e05109b5f4acb92c5ab5256 (diff)
downloadgsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.gz
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.bz2
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.lz
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.xz
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.tar.zst
gsoc2013-evolution-3703e58fa89f7644f50426288c4fc8f9325773ce.zip
only set current folder when the folder_path is different from the current
2003-03-04 Mike Kestner <mkestner@ximian.com> * e-shell-view.c (update_for_current_uri): only set current folder when the folder_path is different from the current folder. svn path=/trunk/; revision=20152
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-shell-view.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index f75bee9a96..fcb145e8b2 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-04 Mike Kestner <mkestner@ximian.com>
+
+ * e-shell-view.c (update_for_current_uri): only set current
+ folder when the folder_path is different from the current folder.
+
2003-03-04 Ettore Perazzoli <ettore@ximian.com>
* e-folder-dnd-bridge.c (find_matching_target_for_drag_context):
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 2583feca65..105430290a 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1962,6 +1962,7 @@ update_for_current_uri (EShellView *shell_view)
EShellViewPrivate *priv;
EFolder *folder;
const char *path;
+ const char *curr_path;
const char *type;
const char *folder_name;
char *title;
@@ -2015,7 +2016,8 @@ update_for_current_uri (EShellView *shell_view)
g_signal_handlers_block_by_func (priv->storage_set_view,
G_CALLBACK (folder_selected_cb), shell_view);
- if (path != NULL)
+ curr_path = e_storage_set_view_get_current_folder (priv->storage_set_view);
+ if (path != NULL && (curr_path == NULL || strcmp(path, curr_path)))
e_storage_set_view_set_current_folder (E_STORAGE_SET_VIEW (priv->storage_set_view), path);
g_signal_handlers_unblock_by_func (priv->storage_set_view,