summaryrefslogtreecommitdiff
path: root/gui/sheet.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-30 12:37:24 -0300
committerWerner Almesberger <werner@almesberger.net>2016-10-30 14:12:33 -0300
commit96ef3e03ac812f3c0fbc863b89e860cd336a9293 (patch)
tree6a90267ae2d0d1ddd663efee66351b56fd1c77be /gui/sheet.c
parenta84bff7c2e35e2ed86a44218076b6d1bc9007e32 (diff)
downloadeeshow-96ef3e03ac812f3c0fbc863b89e860cd336a9293.tar.gz
eeshow-96ef3e03ac812f3c0fbc863b89e860cd336a9293.tar.bz2
eeshow-96ef3e03ac812f3c0fbc863b89e860cd336a9293.zip
gui/: "v" opens a viewer window for commit messages (WIP)
Diffstat (limited to 'gui/sheet.c')
-rw-r--r--gui/sheet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/sheet.c b/gui/sheet.c
index ec83a7a..98e22be 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -155,9 +155,11 @@ static bool show_history_details(void *user, bool on, int dx, int dy)
if (on) {
s = vcs_git_long_for_pango(h->vcs_hist, fmt_pango);
overlay_text_raw(h->over, s);
+ commit_hover(gui, h->vcs_hist);
free(s);
} else {
overlay_text(h->over, "%.40s", vcs_git_summary(h->vcs_hist));
+ commit_hover(gui, NULL);
}
redraw(gui);
return 1;
@@ -662,6 +664,10 @@ static void sheet_key(void *user, int x, int y, int keyval)
redraw(gui);
break;
+ case GDK_KEY_v:
+ view_full_commit(gui);
+ break;
+
case GDK_KEY_q:
gtk_main_quit();
}