aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--src/bookmarks/ephy-topic-action.c12
2 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 686bb3af5..482495bc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2003-05-07 Lee Willis <lwillis@plus.net>
+
+ * src/bookmarks/ephy-topic-action.c:
+
+ Don't show broken sub-menus for topics that
+ have no children in the bookmark toolbar.
+ Follow IE behaviour and show an insensitive
+ "Empty" entry
+
2003-05-09 David Adam Bordoley <bordoley@msu.edu>
* src/ephy-history-window.c:
diff --git a/src/bookmarks/ephy-topic-action.c b/src/bookmarks/ephy-topic-action.c
index 769403a1b..7e3408336 100644
--- a/src/bookmarks/ephy-topic-action.c
+++ b/src/bookmarks/ephy-topic-action.c
@@ -157,6 +157,18 @@ build_bookmarks_menu (EphyTopicAction *action, EphyNode *node)
(EPHY_EMBED_SHELL (ephy_shell));
children = ephy_node_get_children (node);
+
+ // Show an insensitive "Empty" sub-menu if the topic has no children
+ if (children->len < 1)
+ {
+
+ item = gtk_menu_item_new_with_label (_("Empty"));
+ gtk_widget_set_sensitive (item, FALSE);
+ gtk_widget_show (item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
+
+ }
+
for (i = 0; i < children->len; i++)
{
EphyNode *kid;