summaryrefslogtreecommitdiff
path: root/plugins/shellexec
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-24 20:15:30 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-24 20:15:30 +0200
commit7eeeacd7041caf80713e78e1b3c8f6c7a6035185 (patch)
tree402fb8303686b2a53260dce48d05c568a6ffc9ee /plugins/shellexec
parent6498b5187f44a48571aac268c9c377b7c3e6af7b (diff)
shellexecui: added support for 'common' flag to GUI config, added some tooltips
shellexed: save/load 'common' flag gtkui: fixed duplication when adding new custom popup menus
Diffstat (limited to 'plugins/shellexec')
-rw-r--r--plugins/shellexec/shellexec.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/shellexec/shellexec.c b/plugins/shellexec/shellexec.c
index fcc61aa8..58b21262 100644
--- a/plugins/shellexec/shellexec.c
+++ b/plugins/shellexec/shellexec.c
@@ -39,6 +39,7 @@
local - command allowed for local files
remote - command allowed for non-local files
playlist - command allowed for playlist tabs
+ common - command appears in main menu bar
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
@@ -159,6 +160,9 @@ shx_save_actions(Shx_action_t *action_list)
if(action->parent.flags & DB_ACTION_ALLOW_MULTIPLE_TRACKS) {
strcat(conf_line, "multiple,");
}
+ if(action->parent.flags & DB_ACTION_COMMON) {
+ strcat(conf_line, "common,");
+ }
deadbeef->conf_set_str(conf_key, conf_line);
action = (Shx_action_t*)action->parent.next;
i++;
@@ -235,6 +239,9 @@ shx_get_actions (DB_plugin_action_callback_t callback)
if (strstr (flags, "playlist"))
action->parent.flags |= DB_ACTION_PLAYLIST;
+ if (strstr (flags, "common"))
+ action->parent.flags |= DB_ACTION_COMMON;
+
if (prev)
prev->parent.next = (DB_plugin_action_t *)action;
prev = action;