From aeed0a83af34928dafb9885a0b91bedeb7829797 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 1 Sep 2018 14:34:24 +0200 Subject: [PATCH] src/driver/fb_generic.cpp: add possibility to use images with full name Keep parameter file_type empty to use filenames with file name extension. Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e3c6a54a815587a0adfc5d84760d616d7a6c2626 Author: Thilo Graf Date: 2018-09-01 (Sat, 01 Sep 2018) --- src/driver/fb_generic.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index 667d67143..26a6bf06e 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -696,8 +696,9 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath) std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_type) { - std::string path, filetype; - filetype = "." + file_type; + std::string path, filetype = ""; + if (!file_type.empty()) + filetype = "." + file_type; std::string dir[] = { THEMESDIR_VAR "/" + g_settings.theme_name + "/icons", THEMESDIR "/" + g_settings.theme_name + "/icons",