aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLee Willis <lwillis@plus.net>2003-05-10 06:29:13 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-10 06:29:13 +0800
commitc44d5ed7b58fe5d8bb4aca988ede55938bb30d67 (patch)
treecb72898c4793f50e24b99350a7c73703f6213696
parente316717e71d7961f0713e49963063065afc6cdf4 (diff)
downloadgsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar.gz
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar.bz2
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar.lz
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar.xz
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.tar.zst
gsoc2013-epiphany-c44d5ed7b58fe5d8bb4aca988ede55938bb30d67.zip
Don't show broken sub-menus for topics that have no children in the
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
-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;