summaryrefslogtreecommitdiff
path: root/plugins/gtkui/actions.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-26 12:11:55 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-10-26 12:11:55 +0200
commitd3d9fa626c2e673927af76442616d225b1f991ff (patch)
tree856fe689b8b0329a9183537354e88a88b2858558 /plugins/gtkui/actions.c
parent6067b82b21449ee420a5b9c01e627eed52d15899 (diff)
gtkui: fixed custom menu item backwards compat with 1.4 api
Diffstat (limited to 'plugins/gtkui/actions.c')
-rw-r--r--plugins/gtkui/actions.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/gtkui/actions.c b/plugins/gtkui/actions.c
index 72ec3dc8..969e489e 100644
--- a/plugins/gtkui/actions.c
+++ b/plugins/gtkui/actions.c
@@ -86,7 +86,10 @@ add_mainmenu_actions (void)
for (action = actions; action; action = action->next)
{
char *tmp = NULL;
- if (!(action->flags & DB_ACTION_COMMON) || !(action->flags & DB_ACTION_ADD_MENU))
+
+ int has_addmenu = (action->flags & DB_ACTION_COMMON) && ((action->flags & DB_ACTION_ADD_MENU) | (action->flags & DB_ACTION_USING_API_14));
+
+ if (!has_addmenu)
continue;
// 1st check if we have slashes