summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-06 22:41:22 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-06 22:41:22 +0100
commit4d1f330c0b4d15c834befa17d33558fb773d0259 (patch)
treee54fb59bba3faf2a58d5ce7e798e3cf2e3c823f2 /plugins/gtkui
parent07a356a4c0e256f6da4be205a41e690193e174b8 (diff)
fixed missing API 1.2 constant; fixed is_local_file implementation
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/plcommon.c5
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);
}
}