diff options
author | William Wilgus <wilgus.william@gmail.com> | 2020-07-31 22:45:10 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2020-08-17 10:15:14 -0400 |
commit | 35502834423049b319fde41ff305b48de67d2d51 (patch) | |
tree | 00d638d9348cd38f15cf6d341e700bc36153b3f8 /apps/menus | |
parent | d553bb1149800daf16dcb92bc0608fe6248e1dab (diff) |
Add open_plugin to core
open_plugin allows arbitrary plugins to be called
in hotkey and start screen
replaces PictureFlow Integration
shortcuts menu plays plugins now too
rather than store paths and parameters in the settings
that reside in memory instead entries in a file are searched by hash.
after all, the plugin has to be loaded from disk anyways
----------------------------------------------------------------------------
shortcut_viewer.rock-- can now call plugins rather than taking you to them
in the browser
-----------------------------------------------------------------------------
Added a new option to menus:
F_CB_ON_SELECT_ONLY
instead of option callback every time a item is accessed
F_CB_ON_SELECT_ONLY fires callback only when item is selected
-----------------------------------------------------------------------------
Added manual entries
-----------------------------------------------------------------------------
Change-Id: I078b57b1d2b4dd633c89212c1082fcbc1b516e6a
Diffstat (limited to 'apps/menus')
-rw-r--r-- | apps/menus/settings_menu.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/menus/settings_menu.c b/apps/menus/settings_menu.c index 431600bbe1..9275ff10d6 100644 --- a/apps/menus/settings_menu.c +++ b/apps/menus/settings_menu.c @@ -28,6 +28,7 @@ #include "action.h" #include "settings.h" #include "menu.h" +#include "open_plugin.h" #include "keyboard.h" #include "sound_menu.h" #include "exported_menus.h" @@ -711,6 +712,18 @@ MAKE_MENU(voice_settings_menu, ID2P(LANG_VOICE), 0, Icon_Voice, /* VOICE MENU */ /***********************************/ +/* WPS_CONTEXT_PLUGIN */ +/***********************************/ +static void wps_plugin_cb(void) +{ + open_plugin_browse(ID2P(LANG_OPEN_PLUGIN_SET_WPS_CONTEXT_PLUGIN)); +} +MENUITEM_FUNCTION(wps_set_context_plugin, 0, + ID2P(LANG_OPEN_PLUGIN_SET_WPS_CONTEXT_PLUGIN), + wps_plugin_cb, NULL, NULL, Icon_Plugin); + +/* WPS_CONTEXT_PLUGIN */ +/***********************************/ /***********************************/ /* HOTKEY MENU */ @@ -745,6 +758,7 @@ MAKE_MENU(settings_menu_item, ID2P(LANG_GENERAL_SETTINGS), 0, &autoresume_menu, #endif &browse_langs, &voice_settings_menu, + &wps_set_context_plugin, #ifdef HAVE_HOTKEY &hotkey_menu, #endif |