mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 12:53:43 +02:00
When a foo.dge file is loaded, the image file foo.png will be automatically assigned.
This commit is contained in:
parent
ddb5171750
commit
08468776f4
@ -245,6 +245,7 @@ bool Menu::addLink(string path, string file, string section) {
|
|||||||
INFO("Manual: '%s'\n", manual.c_str());
|
INFO("Manual: '%s'\n", manual.c_str());
|
||||||
|
|
||||||
string shorttitle=title, description="", exec=path+file, icon="";
|
string shorttitle=title, description="", exec=path+file, icon="";
|
||||||
|
if (fileExists(exename+".png")) icon = exename+".png";
|
||||||
|
|
||||||
//Reduce title lenght to fit the link width
|
//Reduce title lenght to fit the link width
|
||||||
if (gmenu2x->font->getTextWidth(shorttitle)>gmenu2x->skinConfInt["linkWidth"]) {
|
if (gmenu2x->font->getTextWidth(shorttitle)>gmenu2x->skinConfInt["linkWidth"]) {
|
||||||
|
Loading…
Reference in New Issue
Block a user