aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks/ephy-topic-factory-action.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bookmarks/ephy-topic-factory-action.c')
-rw-r--r--src/bookmarks/ephy-topic-factory-action.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/bookmarks/ephy-topic-factory-action.c b/src/bookmarks/ephy-topic-factory-action.c
index 44e9e0dd9..cb202c65c 100644
--- a/src/bookmarks/ephy-topic-factory-action.c
+++ b/src/bookmarks/ephy-topic-factory-action.c
@@ -27,6 +27,7 @@
#include "ephy-topic-factory-action.h"
#include "ephy-topic-action.h"
+#include "ephy-bookmarks-ui.h"
#include "ephy-shell.h"
#include "ephy-stock-icons.h"
#include "egg-editable-toolbar.h"
@@ -141,8 +142,9 @@ build_menu (GtkWidget *placeholder, EggToolbarsModel *model)
EphyBookmarks *eb;
EphyNode *node;
GPtrArray *children, *topics;
-
- const char *name, *action;
+
+ const char *name;
+ char action[EPHY_TOPIC_ACTION_NAME_BUFFER_SIZE];
gint i, priority = -1, ptmp, flags;
/* Get a sorted list of topics. */
@@ -158,8 +160,9 @@ build_menu (GtkWidget *placeholder, EggToolbarsModel *model)
for (i = 0; i < topics->len; i++)
{
node = g_ptr_array_index (topics, i);
-
- action = ephy_topic_action_name (node);
+
+ EPHY_TOPIC_ACTION_NAME_PRINTF (action, node);
+
flags = egg_toolbars_model_get_name_flags (model, action);
if (flags & EGG_TB_MODEL_NAME_USED)
continue;