diff --git a/rtgui/thumbbrowserentrybase.cc b/rtgui/thumbbrowserentrybase.cc index 7ad008ebd..b64d7b38c 100644 --- a/rtgui/thumbbrowserentrybase.cc +++ b/rtgui/thumbbrowserentrybase.cc @@ -1,7 +1,6 @@ /* * This file is part of RawTherapee. * - * Copyright (c) 2004-2010 Gabor Horvath * * RawTherapee is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -416,9 +415,20 @@ bool ThumbBrowserEntryBase::releaseNotify (int button, int type, int bstate, int return buttonSet ? buttonSet->releaseNotify (x, y) : false; } -Glib::ustring ThumbBrowserEntryBase::getToolTip (int x, int y) { - return buttonSet ? buttonSet->getToolTip (x, y) : ""; +Glib::ustring ThumbBrowserEntryBase::getToolTip (int x, int y) { + Glib::ustring tooltip = ""; + + if (buttonSet) tooltip = buttonSet->getToolTip (x, y); + + // if the fileinfo is not shown anyway, make a tooltip with the info + if (!options.showFileNames && inside(x,y) && tooltip.empty()) { + tooltip = dispname; + if (options.fbShowDateTime && datetimeline!="") tooltip += Glib::ustring("\n") + datetimeline; + if (options.fbShowBasicExif && exifline!="") tooltip += Glib::ustring("\n") + exifline; + } + + return tooltip; }