aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 3e5b9038f9..f69606ab18 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -102,10 +102,10 @@ view_destroy_cb (GtkObject *object,
g_assert (E_IS_SHELL_VIEW (object));
shell = E_SHELL (data);
- shell->priv->views = g_list_remove (shell->priv->views, shell);
+ shell->priv->views = g_list_remove (shell->priv->views, object);
if (shell->priv->views == NULL)
- gtk_signal_emit (GTK_OBJECT (object), signals[NO_VIEWS_LEFT]);
+ gtk_signal_emit (GTK_OBJECT (shell), signals[NO_VIEWS_LEFT]);
}