diff --git a/data/icons/Makefile.am b/data/icons/Makefile.am index b865f5c4b..43eceae09 100644 --- a/data/icons/Makefile.am +++ b/data/icons/Makefile.am @@ -110,6 +110,7 @@ install_DATA += \ hint_osd.png \ hint_personalize.png \ hint_picview.png \ + hint_plugin.png \ hint_protection.png \ hint_radiomode.png \ hint_reboot.png \ diff --git a/data/icons/hint_plugin.png b/data/icons/hint_plugin.png new file mode 100644 index 000000000..4e53b6426 Binary files /dev/null and b/data/icons/hint_plugin.png differ diff --git a/src/gui/plugins.cpp b/src/gui/plugins.cpp index 7373851bd..aa827c351 100644 --- a/src/gui/plugins.cpp +++ b/src/gui/plugins.cpp @@ -210,7 +210,11 @@ bool CPlugins::parseCfg(plugin *plugin_data) plugin_data->hide = false; plugin_data->type = CPlugins::P_TYPE_DISABLED; plugin_data->integration = CPlugins::I_TYPE_DISABLED; - plugin_data->hinticon = plugin_data->filename + "_hint"; + plugin_data->hinticon = NEUTRINO_ICON_HINT_PLUGIN; + + std::string _hintIcon = plugin_data->plugindir + "/" + plugin_data->filename + "_hint.png"; + if (access(_hintIcon.c_str(), F_OK) == 0) + plugin_data->hinticon = _hintIcon; for (int i = 0; i < linecount; i++) { @@ -294,7 +298,7 @@ bool CPlugins::parseCfg(plugin *plugin_data) inFile.close(); - std::string _hintIcon = plugin_data->plugindir + "/" + plugin_data->hinticon + ".png"; + _hintIcon = plugin_data->plugindir + "/" + plugin_data->hinticon + ".png"; if (access(_hintIcon.c_str(), F_OK) == 0) plugin_data->hinticon = _hintIcon; diff --git a/src/gui/widget/icons.h b/src/gui/widget/icons.h index 6a9be6880..1c671fc53 100644 --- a/src/gui/widget/icons.h +++ b/src/gui/widget/icons.h @@ -253,6 +253,9 @@ #define NEUTRINO_ICON_HINT_RESTORE "hint_restore" #define NEUTRINO_ICON_HINT_FACTORY "hint_factory" +/* plugins */ +#define NEUTRINO_ICON_HINT_PLUGIN "hint_plugin" + /* opkg manager */ #define NEUTRINO_ICON_CHECKMARK "checkmark" #define NEUTRINO_ICON_WARNING "warning"