Use correct GIMP and Photoshop icons for Windows
Icon names in Windows are typically the executable path followed by the string ",0".
This commit is contained in:
parent
c625975453
commit
02e3e01294
@ -912,7 +912,7 @@ void Options::readFromFile(Glib::ustring fname)
|
|||||||
if (editorToSendTo == 1) {
|
if (editorToSendTo == 1) {
|
||||||
externalEditorIndex = externalEditors.size();
|
externalEditorIndex = externalEditors.size();
|
||||||
}
|
}
|
||||||
externalEditors.push_back(ExternalEditor("GIMP", "\"" + executable + "\"", "gimp"));
|
externalEditors.push_back(ExternalEditor("GIMP", "\"" + executable + "\"", executable + ",0"));
|
||||||
} else {
|
} else {
|
||||||
for (auto ver = 12; ver >= 0; --ver) {
|
for (auto ver = 12; ver >= 0; --ver) {
|
||||||
executable = Glib::build_filename(gimpDir, "bin", Glib::ustring::compose(Glib::ustring("gimp-2.%1.exe"), ver));
|
executable = Glib::build_filename(gimpDir, "bin", Glib::ustring::compose(Glib::ustring("gimp-2.%1.exe"), ver));
|
||||||
@ -920,7 +920,7 @@ void Options::readFromFile(Glib::ustring fname)
|
|||||||
if (editorToSendTo == 1) {
|
if (editorToSendTo == 1) {
|
||||||
externalEditorIndex = externalEditors.size();
|
externalEditorIndex = externalEditors.size();
|
||||||
}
|
}
|
||||||
externalEditors.push_back(ExternalEditor("GIMP", "\"" + executable + "\"", "gimp"));
|
externalEditors.push_back(ExternalEditor("GIMP", "\"" + executable + "\"", executable + ",0"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -935,7 +935,7 @@ void Options::readFromFile(Glib::ustring fname)
|
|||||||
if (editorToSendTo == 2) {
|
if (editorToSendTo == 2) {
|
||||||
externalEditorIndex = externalEditors.size();
|
externalEditorIndex = externalEditors.size();
|
||||||
}
|
}
|
||||||
externalEditors.push_back(ExternalEditor("Photoshop", "\"" + executable + "\"", ""));
|
externalEditors.push_back(ExternalEditor("Photoshop", "\"" + executable + "\"", executable + ",0"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (keyFile.has_key("External Editor", "CustomEditor")) {
|
if (keyFile.has_key("External Editor", "CustomEditor")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user