aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-window-private.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@src.gnome.org>2008-08-28 03:56:31 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2008-08-28 03:56:31 +0800
commit02a9eb68308537fe712e757017ae4bb372863a8c (patch)
tree3ce66b037ed46eadbc44c0d176b3db70df7656ce /shell/e-shell-window-private.c
parent244ab98402af2d384fe63c46fd15541f1c9f79bf (diff)
downloadgsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar.gz
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar.bz2
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar.lz
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar.xz
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.tar.zst
gsoc2013-evolution-02a9eb68308537fe712e757017ae4bb372863a8c.zip
Miscellaneous tweaks. Nothing major.
svn path=/branches/kill-bonobo/; revision=36138
Diffstat (limited to 'shell/e-shell-window-private.c')
-rw-r--r--shell/e-shell-window-private.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/shell/e-shell-window-private.c b/shell/e-shell-window-private.c
index 1365238b60..efa6c594d2 100644
--- a/shell/e-shell-window-private.c
+++ b/shell/e-shell-window-private.c
@@ -247,6 +247,20 @@ e_shell_window_private_init (EShellWindow *shell_window)
priv->main_toolbar = g_object_ref (widget);
gtk_widget_show (widget);
+ /* XXX Having this separator in the UI definition doesn't work
+ * because GtkUIManager is unaware of the "New" button, so
+ * it makes the separator invisible. One possibility is to
+ * define a GtkAction subclass for which create_tool_item()
+ * returns an EMenuToolButton. Then both this separator
+ * and the "New" button could be added to the UI definition.
+ * Tempting, but the "New" button and its dynamically
+ * generated menu is already a complex beast, and I'm not
+ * convinced having it proxy some new type of GtkAction
+ * is worth the extra effort. */
+ item = gtk_separator_tool_item_new ();
+ gtk_toolbar_insert (GTK_TOOLBAR (widget), item, 0);
+ gtk_widget_show (GTK_WIDGET (item));
+
item = e_menu_tool_button_new (_("New"));
gtk_tool_item_set_is_important (GTK_TOOL_ITEM (item), TRUE);
gtk_toolbar_insert (GTK_TOOLBAR (widget), item, 0);