diff options
author | Peter Harvey <peter.a.harvey@gmail.com> | 2006-01-18 06:56:59 +0800 |
---|---|---|
committer | Peter Anthony Harvey <paharvey@src.gnome.org> | 2006-01-18 06:56:59 +0800 |
commit | bd5398df64b4c048ec68bd896865f464fa4119af (patch) | |
tree | 50180a62b247948542cfc9cd0707246350332bd5 /src/bookmarks | |
parent | 8858f924413a5a84159813a219b9d906d81cc0bc (diff) | |
download | gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar.gz gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar.bz2 gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar.lz gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar.xz gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.tar.zst gsoc2013-epiphany-bd5398df64b4c048ec68bd896865f464fa4119af.zip |
src/bookmarks/ephy-bookmarks-menu.c
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.
Diffstat (limited to 'src/bookmarks')
-rw-r--r-- | src/bookmarks/ephy-bookmarks-menu.c | 11 |
1 files changed, 7 insertions, 4 deletions
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); + } } } |