aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/e-shell-view.c23
2 files changed, 26 insertions, 6 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index ed1c23e5e5..9e26e53ec2 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,12 @@
+2001-08-24 Ettore Perazzoli <ettore@ximian.com>
+
+ [Fix #5978, "If a component dies, it's toolbar buttons remain".]
+
+ * e-shell-view.c (socket_destroy_cb): If the view belongs to a
+ toplevel storage node, get the right type information with
+ `e_storage_get_toplevel_node_uri()' instead of trying to get the
+ [non-existing] folder for it.
+
2001-08-24 Iain Holmes <iain@ximian.com>
* e-shell-startup-wizard.c (druid_event_notify_cb): Implement the other
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 9dd90b2125..d6d7539a58 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1634,6 +1634,8 @@ socket_destroy_cb (GtkWidget *socket_widget, gpointer data)
gboolean viewing_closed_uri;
char *copy_of_uri;
const char *current_uri;
+ const char *path;
+ const char *folder_type;
shell_view = E_SHELL_VIEW (data);
priv = shell_view->priv;
@@ -1655,8 +1657,20 @@ socket_destroy_cb (GtkWidget *socket_widget, gpointer data)
gtk_widget_destroy (control);
g_hash_table_remove (priv->uri_to_control, uri);
- folder = e_storage_set_get_folder (e_shell_get_storage_set (priv->shell),
- get_storage_set_path_from_uri (uri));
+ path = get_storage_set_path_from_uri (uri);
+ folder = e_storage_set_get_folder (e_shell_get_storage_set (priv->shell), path);
+
+ if (folder != NULL) {
+ folder_type = e_folder_get_type_string (folder);
+ } else {
+ EStorage *storage;
+
+ storage = e_storage_set_get_storage (e_shell_get_storage_set (priv->shell), path + 1);
+ if (storage == NULL)
+ folder_type = NULL;
+ else
+ folder_type = e_storage_get_toplevel_node_type (storage);
+ }
/* See if we were actively viewing the uri for the socket that's being closed */
current_uri = e_shell_view_get_current_uri (shell_view);
@@ -1672,10 +1686,7 @@ socket_destroy_cb (GtkWidget *socket_widget, gpointer data)
if (viewing_closed_uri)
e_shell_view_display_uri (shell_view, NULL);
- e_shell_component_maybe_crashed (priv->shell,
- uri,
- e_folder_get_type_string (folder),
- shell_view);
+ e_shell_component_maybe_crashed (priv->shell, uri, folder_type, shell_view);
/* We were actively viewing the component that just crashed, so flip to the Inbox */
if (viewing_closed_uri)
etions'>-0/+1 * Add xfce4-wm-themes 3.99.2,oliver2003-07-291-0/+1 * Add xfce4-panel-themes-3.99.2, Icon themes for the XFce 4 paneloliver2003-07-291-0/+1 * Add xfce4-iconbox 3.99.2, xFce 4 icon box, an alternative taskbar.oliver2003-07-291-0/+1 * Begin the de-orbit burn of the GNOME 1.4 desktop. This is phase I. Allmarcus2003-07-161-2/+0 * Add talkfilters.adamw2003-07-041-0/+1 * Pointless is a presentation tool primarily targeted at the un*xerwin2003-07-031-0/+1 * Add gkrellm-xkb, X keyboard layout indicator plugin for GKrellm.marcus2003-06-301-0/+1 * Add gkrellm-gamma, a GKrellm gamma correction plugin.marcus2003-06-301-0/+1 * A getopt(1) replacement that supports GNU-style long optionsosa2003-06-141-0/+1 * Repo-copyed to a more accurate category:pat2003-06-131-1/+0 * New port: c-hey instant messaging utilityosa2003-06-101-0/+1 * This is a pair of tools for creating and applying very compact patches toleeym2003-06-081-0/+1 * Move:adamw2003-06-041-0/+1 * Add utftools 1.6, an UTF-aware wc, fmt, expand, and unexpand.will2003-06-031-0/+1 * Add libutf 2.10, an UTF-8 character set support library, includingwill2003-06-031-0/+1 * Link to new location after repo copy movelioux2003-06-031-4/+4 * Add hotkeys 0.5.7.1, a program that allows usage of special keys onwill2003-06-031-0/+1 * add latex-mk 1.0ijliao2003-05-221-0/+1 * Remove p5-DataCash, it's no longer available.paul2003-05-201-1/+0 * Bring back from Attic: localized messages and documentation for kofficelioux2003-05-201-0/+1 * Remove duplicate entrylioux2003-05-201-1/+0 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: telbookfjoe2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: localized messages and documentation for KDE3lioux2003-05-201-0/+1 * New port: localized messages and documentation for kofficelioux2003-05-201-0/+1 * New port: katalogfjoe2003-05-161-0/+1 * New port: bookcasefjoe2003-05-141-0/+1 * Add less after the port was revivedkris2003-05-061-0/+1 * Remove cassowarykris2003-05-061-1/+0 * Add nut 8.3, nut is nutrition software to record what you eat.vanilla2003-05-041-0/+1 * Add phraze 0.1.naddy2003-04-281-0/+1 * New port: wmcalendar: a dockable calendar with interface to iCalendarfjoe2003-04-241-0/+1 * A filter to add jerkiness to text.alfred2003-04-231-0/+1 * New port: opencycfjoe2003-04-201-0/+1 * New port misc/p5-Net-vCardedwin2003-04-181-0/+1 * New port: asr-manpagesfjoe2003-04-161-0/+1 * Repo-move KDE I18N hebrew, hungarian, & vietnamese messages to theirwill2003-04-141-3/+0 * Add wmweather+ 2.4, think wmweather with forecasts, weathernork2003-04-121-0/+1 * add solfege 1.9.9ijliao2003-04-101-0/+1 * add chmlib 0.3.1ijliao2003-04-061-0/+1 * move p5-Business-OnlinePayment from misc to financeedwin2003-04-041-18/+0 * New port: misc/spamcalcedwin2003-04-011-0/+1 * Add mime-support 3.21.1, MIME Media Types list.petef2003-03-271-0/+1 * add dvorakng 0.5.0ijliao2003-03-261-0/+1 * The GNUstep example applications:dinoex2003-03-24