From 02a9eb68308537fe712e757017ae4bb372863a8c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 27 Aug 2008 19:56:31 +0000 Subject: Miscellaneous tweaks. Nothing major. svn path=/branches/kill-bonobo/; revision=36138 --- shell/e-shell-window-private.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'shell/e-shell-window-private.c') 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); -- cgit