From 08468776f467bec44a560418c41e920f3957c920 Mon Sep 17 00:00:00 2001 From: Ayla Date: Sat, 18 Sep 2010 21:28:54 +0200 Subject: [PATCH] When a foo.dge file is loaded, the image file foo.png will be automatically assigned. --- src/menu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/menu.cpp b/src/menu.cpp index 18f911b..0d0e47c 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -245,6 +245,7 @@ bool Menu::addLink(string path, string file, string section) { INFO("Manual: '%s'\n", manual.c_str()); string shorttitle=title, description="", exec=path+file, icon=""; + if (fileExists(exename+".png")) icon = exename+".png"; //Reduce title lenght to fit the link width if (gmenu2x->font->getTextWidth(shorttitle)>gmenu2x->skinConfInt["linkWidth"]) {