Always show filename in the thumb tooltip, #4672
Always show the filename in the thumbnail tooltip since the filename displayed under/over a thumbnail could be truncated. If "Show Exif info" is disabled, also show Exif info in the tooltip.
This commit is contained in:
parent
523fe40662
commit
9c73e60969
@ -742,10 +742,12 @@ Glib::ustring ThumbBrowserEntryBase::getToolTip (int x, int y)
|
|||||||
tooltip = buttonSet->getToolTip (x, y);
|
tooltip = buttonSet->getToolTip (x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
// if the fileinfo is not shown anyway, make a tooltip with the info
|
// Always show the filename in the tooltip since the filename in the thumbnail could be truncated.
|
||||||
if (withFilename < WFNAME_FULL && inside(x, y) && tooltip.empty()) {
|
// If "Show Exif info" is disabled, also show Exif info in the tooltip.
|
||||||
|
if (inside(x, y) && tooltip.empty()) {
|
||||||
tooltip = dispname;
|
tooltip = dispname;
|
||||||
|
|
||||||
|
if (withFilename < WFNAME_FULL) {
|
||||||
if (options.fbShowDateTime && datetimeline != "") {
|
if (options.fbShowDateTime && datetimeline != "") {
|
||||||
tooltip += Glib::ustring("\n") + datetimeline;
|
tooltip += Glib::ustring("\n") + datetimeline;
|
||||||
}
|
}
|
||||||
@ -754,6 +756,7 @@ Glib::ustring ThumbBrowserEntryBase::getToolTip (int x, int y)
|
|||||||
tooltip += Glib::ustring("\n") + exifline;
|
tooltip += Glib::ustring("\n") + exifline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return tooltip;
|
return tooltip;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user