aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-05-07 14:47:44 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-05-07 14:47:44 +0800
commit83a766e5af1226d93d67476ea73bce921c681f0e (patch)
treea5d72ae4264bdc87a3b24aa50d98cc02ff62e1fd /shell/e-shell-view.c
parentcf022042c82501ba50622b144829a4ce9e301ecb (diff)
downloadgsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.gz
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.tar.zst
gsoc2013-evolution-83a766e5af1226d93d67476ea73bce921c681f0e.zip
Machinery for quitting and handling the relationship between a shell
and its views. svn path=/trunk/; revision=2862
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 9651cce08c..8d83a9fca4 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -262,7 +262,9 @@ e_shell_view_construct (EShellView *shell_view,
priv = shell_view->priv;
+ gtk_object_ref (GTK_OBJECT (shell));
priv->shell = shell;
+
priv->uri = g_strdup (uri);
setup_widgets (shell_view);
@@ -524,4 +526,14 @@ e_shell_view_display_uri (EShellView *shell_view,
}
+EShell *
+e_shell_view_get_shell (EShellView *shell_view)
+{
+ g_return_val_if_fail (shell_view != NULL, NULL);
+ g_return_val_if_fail (E_IS_SHELL_VIEW (shell_view), NULL);
+
+ return shell_view->priv->shell;
+}
+
+
E_MAKE_TYPE (e_shell_view, "EShellView", EShellView, class_init, init, PARENT_TYPE)