diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-06 22:41:22 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2013-11-06 22:41:22 +0100 |
commit | 4d1f330c0b4d15c834befa17d33558fb773d0259 (patch) | |
tree | e54fb59bba3faf2a58d5ce7e798e3cf2e3c823f2 /plugins/gtkui | |
parent | 07a356a4c0e256f6da4be205a41e690193e174b8 (diff) |
fixed missing API 1.2 constant; fixed is_local_file implementation
Diffstat (limited to 'plugins/gtkui')
-rw-r--r-- | plugins/gtkui/plcommon.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/gtkui/plcommon.c b/plugins/gtkui/plcommon.c index b2d75035..2e72155c 100644 --- a/plugins/gtkui/plcommon.c +++ b/plugins/gtkui/plcommon.c @@ -624,7 +624,7 @@ list_context_menu (DdbListview *listview, DdbListviewIter it, int idx) { int count = 0; for (action = actions; action; action = action->next) { - if ((action->flags & DB_ACTION_COMMON) || !(action->flags & DB_ACTION_ADD_MENU) || !(action->flags & (DB_ACTION_MULTIPLE_TRACKS | DB_ACTION_SINGLE_TRACK))) + if ((action->flags & DB_ACTION_COMMON) || !((action->callback2 && (action->flags & DB_ACTION_ADD_MENU)) || action->callback) || !(action->flags & (DB_ACTION_MULTIPLE_TRACKS | DB_ACTION_SINGLE_TRACK))) continue; // create submenus (separated with '/') @@ -701,8 +701,7 @@ list_context_menu (DdbListview *listview, DdbListviewIter it, int idx) { G_CALLBACK (actionitem_activate), action); if ((selected_count > 1 && !(action->flags & DB_ACTION_MULTIPLE_TRACKS)) || - (action->flags & DB_ACTION_DISABLED)) - { + (action->flags & DB_ACTION_DISABLED)) { gtk_widget_set_sensitive (GTK_WIDGET (actionitem), FALSE); } } |