aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-06-01 08:56:00 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-06-01 08:56:00 +0800
commita718dec073135b0dac15e0f36e9a7ac6b9b9ddfa (patch)
tree6372937cce97db28833b55e6ff2a9287a4ad9482 /shell/e-shell-view.c
parent19150e7c7b614544188f93dbffd748a2846d2a1b (diff)
downloadgsoc2013-evolution-a718dec073135b0dac15e0f36e9a7ac6b9b9ddfa.tar.gz
gsoc2013-evolution-a718dec073135b0dac15e0f36e9a7ac6b9b9ddfa.tar.zst
gsoc2013-evolution-a718dec073135b0dac15e0f36e9a7ac6b9b9ddfa.zip
Implemented right-click menus for the shell's shortcut bar (the user
can remove shortcuts now) and added status bar to the shell view. Also, added an API call to EShortcutBar to get the view type for a specified group. svn path=/trunk/; revision=3318
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 0157b72b0b..a003f10c8f 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -63,6 +63,7 @@ struct _EShellViewPrivate {
char *uri;
/* The widgetry. */
+ GtkWidget *appbar;
GtkWidget *hpaned;
GtkWidget *view_vbox;
GtkWidget *view_title_bar;
@@ -227,6 +228,11 @@ setup_widgets (EShellView *shell_view)
priv = shell_view->priv;
+ /* The application bar. */
+
+ priv->appbar = gnome_appbar_new (FALSE, TRUE, GNOME_PREFERENCES_NEVER);
+ gnome_app_set_statusbar (GNOME_APP (shell_view), priv->appbar);
+
/* The shortcut bar. */
priv->shortcut_bar = e_shortcuts_new_view (e_shell_get_shortcuts (priv->shell));
@@ -304,6 +310,7 @@ setup_bonobo_ui_handler (EShellView *shell_view)
bonobo_ui_handler_set_app (uih, GNOME_APP (shell_view));
bonobo_ui_handler_create_menubar (uih);
+ bonobo_ui_handler_set_statusbar (uih, priv->appbar);
priv->uih = uih;
}
@@ -386,6 +393,7 @@ init (EShellView *shell_view)
priv->uih = NULL;
priv->uri = NULL;
+ priv->appbar = NULL;
priv->hpaned = NULL;
priv->view_hpaned = NULL;
priv->contents = NULL;
@@ -417,15 +425,15 @@ e_shell_view_construct (EShellView *shell_view,
g_return_if_fail (shell != NULL);
g_return_if_fail (E_IS_SHELL (shell));
- gnome_app_construct (GNOME_APP (shell_view), "evolution", "Evolution");
-
priv = shell_view->priv;
+ gnome_app_construct (GNOME_APP (shell_view), "evolution", "Evolution");
+
gtk_object_ref (GTK_OBJECT (shell));
priv->shell = shell;
- setup_bonobo_ui_handler (shell_view);
setup_widgets (shell_view);
+ setup_bonobo_ui_handler (shell_view);
e_shell_view_menu_setup (shell_view);
}
@@ -944,5 +952,14 @@ e_shell_view_get_bonobo_ui_handler (EShellView *shell_view)
return shell_view->priv->uih;
}
+GtkWidget *
+e_shell_view_get_appbar (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->appbar;
+}
+
E_MAKE_TYPE (e_shell_view, "EShellView", EShellView, class_init, init, PARENT_TYPE)