From 37b668380ee0859a014e3069cf5396b80dfbde28 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 3 Sep 2002 15:25:13 +0000 Subject: (show_import_wizard): Make the WM close button in the dialog hide instead of destroying, using gnome_dialog_close_hides(). [#15572] svn path=/trunk/; revision=17945 --- shell/e-shell-view.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'shell/e-shell-view.c') 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; -- cgit v1.2.3