aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 97cf88af30..7fc10fb761 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -808,8 +808,8 @@ switch_on_folder_tree_click (EShellView *shell_view,
/* Callbacks. */
-/* Callback when a new folder is added. removed when we clear the
- delayed_selection */
+/* Callback when a new folder is added. Removed when we clear the
+ delayed_selection. */
static void
new_folder_cb (EStorageSet *storage_set,
const char *path,
@@ -822,6 +822,8 @@ new_folder_cb (EStorageSet *storage_set,
shell_view = E_SHELL_VIEW (data);
priv = shell_view->priv;
+ g_print ("%s %s -- delayed_selection %s\n", __FUNCTION__, path, priv->delayed_selection);
+
delayed_path = strchr (priv->delayed_selection, ':');
if (delayed_path) {
delayed_path ++;
@@ -1315,10 +1317,6 @@ destroy (GtkObject *object)
storage set used for the delayed selection mechanism. */
cleanup_delayed_selection (shell_view);
- /* This is necessary to remove the signal handler for folder_new on the
- storage set used for the delayed selection mechanism. */
- cleanup_delayed_selection (shell_view);
-
gtk_object_unref (GTK_OBJECT (priv->tooltips));
if (priv->history != NULL)
@@ -2188,6 +2186,8 @@ create_new_view_for_uri (EShellView *shell_view,
priv = shell_view->priv;
+ g_print ("%s %s\n", __FUNCTION__, uri);
+
view = get_view_for_uri (shell_view, uri, view_info);
if (view == NULL)
return FALSE;
@@ -2203,6 +2203,8 @@ create_new_view_for_uri (EShellView *shell_view,
g_assert (page_num != -1);
set_current_notebook_page (shell_view, page_num);
+ g_print ("%s set notebook page %d\n", __FUNCTION__, page_num);
+
g_hash_table_insert (priv->uri_to_view, view->uri, view);
return TRUE;