summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-01 13:53:58 -0300
committerWerner Almesberger <werner@almesberger.net>2016-09-01 13:53:58 -0300
commitc760a729473743e6c2b14c417c6e72d9c3616167 (patch)
treeeb384efc345d07de916137823b0f12e3e8aeb0a4 /gui/sheet.c
parentea2f833cfd21cc83d1d72a007f91bdd95d1c6ae4 (diff)
downloadeeshow-c760a729473743e6c2b14c417c6e72d9c3616167.tar.gz
eeshow-c760a729473743e6c2b14c417c6e72d9c3616167.tar.bz2
eeshow-c760a729473743e6c2b14c417c6e72d9c3616167.zip
gui/sheet.c (hover_sheet): show file name in sheet details
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index 2c2624f..d7e6fe6 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -319,8 +319,10 @@ static bool hover_sheet(void *user, bool on, int dx, int dy)
if (s == sheet)
this = n;
}
- overlay_text(sheet->over, "<b>%s</b>\n<big>%d / %d</big>",
- title, this, n);
+ overlay_text(sheet->over, "<b>%s</b>\n<big>%d / %d</big>%s%s",
+ title, this, n,
+ sheet->sch->file ? "\n" : "",
+ sheet->sch->file ? sheet->sch->file : "");
} else {
overlay_text(sheet->over, "<b>%s</b>", title);
}