Backed out changeset: 159f9e7014f8

This commit is contained in:
Oliver Duis
2012-05-06 23:04:47 +02:00
parent 1483ecb47c
commit 05226a2875
125 changed files with 747 additions and 750 deletions

View File

@@ -189,7 +189,7 @@ void ThumbBrowserEntryBase::updateBackBuffer () {
// draw date/time label
int tpos = fnlabh;
if (options.fbShowDateTime && !datetimeline.empty()) {
if (options.fbShowDateTime && datetimeline!="") {
fn = w->create_pango_layout (datetimeline);
fn->set_width (textw*Pango::SCALE);
fn->set_ellipsize (Pango::ELLIPSIZE_MIDDLE);
@@ -197,7 +197,7 @@ void ThumbBrowserEntryBase::updateBackBuffer () {
tpos += dtlabh;
}
// draw basic exif info
if (options.fbShowBasicExif && !exifline.empty()) {
if (options.fbShowBasicExif && exifline!="") {
fn = w->create_pango_layout (exifline);
fn->set_width (textw*Pango::SCALE);
fn->set_ellipsize (Pango::ELLIPSIZE_MIDDLE);
@@ -397,12 +397,12 @@ void ThumbBrowserEntryBase::setOffset (int x, int y) {
buttonSet->move (ofsX+startx+sideMargin, ofsY+starty+upperMargin);
}
bool ThumbBrowserEntryBase::inside (int x, int y) const {
bool ThumbBrowserEntryBase::inside (int x, int y) {
return x>ofsX+startx && x<ofsX+startx+exp_width && y>ofsY+starty && y<ofsY+starty+exp_height;
}
bool ThumbBrowserEntryBase::insideWindow (int x, int y, int w, int h) const {
bool ThumbBrowserEntryBase::insideWindow (int x, int y, int w, int h) {
return !(ofsX+startx>x+w || ofsX+startx+exp_width<x || ofsY+starty>y+h || ofsY+starty+exp_height<y);
}
@@ -430,8 +430,8 @@ Glib::ustring ThumbBrowserEntryBase::getToolTip (int x, int 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.empty()) tooltip += Glib::ustring("\n") + datetimeline;
if (options.fbShowBasicExif && !exifline.empty()) tooltip += Glib::ustring("\n") + exifline;
if (options.fbShowDateTime && datetimeline!="") tooltip += Glib::ustring("\n") + datetimeline;
if (options.fbShowBasicExif && exifline!="") tooltip += Glib::ustring("\n") + exifline;
}
return tooltip;