diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-menu.c | 11 |
2 files changed, 14 insertions, 4 deletions
@@ -1,5 +1,12 @@ 2006-01-18 Peter Harvey <peter.a.harvey@gmail.com> + * src/bookmarks/ephy-bookmarks-menu.c + + Do not add OpenTabs action if too-few items in the menu. + Bug #327390. + +2006-01-18 Peter Harvey <peter.a.harvey@gmail.com> + * src/bookmarks/ephy-bookmark-properties.c Removed inappropriate bold and mnemonic. diff --git a/src/bookmarks/ephy-bookmarks-menu.c b/src/bookmarks/ephy-bookmarks-menu.c index 71f7ba3b4..bf1673925 100644 --- a/src/bookmarks/ephy-bookmarks-menu.c +++ b/src/bookmarks/ephy-bookmarks-menu.c @@ -257,9 +257,12 @@ ephy_bookmarks_menu_build (GString *string, EphyNode *parent) append_menu (string, topics, children, flags); g_ptr_array_free (topics, TRUE); - name = ephy_open_tabs_action_name (node); - g_string_append_printf - (string, "<separator/><menuitem action=\"%s\" name=\"OpenTabs\"/>", name); - g_free (name); + if (children->len > 1) + { + name = ephy_open_tabs_action_name (node); + g_string_append_printf + (string, "<separator/><menuitem action=\"%s\" name=\"OpenTabs\"/>", name); + g_free (name); + } } } |