summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-27 22:12:41 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-27 22:12:41 -0300
commitde2a27cf394d781f77d31a56dd5e7b9e1dc53b34 (patch)
tree11e237b683e58ac2e87973ca3da2ee6654b9b98d /gui
parentee34dad7776dd3fb3f658c78a331514eb5aa4f62 (diff)
downloadeeshow-de2a27cf394d781f77d31a56dd5e7b9e1dc53b34.tar.gz
eeshow-de2a27cf394d781f77d31a56dd5e7b9e1dc53b34.tar.bz2
eeshow-de2a27cf394d781f77d31a56dd5e7b9e1dc53b34.zip
gui/history.c (hover_history): use vcs_git_summary_for_pango
... instead of vcs_git_summary.
Diffstat (limited to 'gui')
-rw-r--r--gui/history.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/gui/history.c b/gui/history.c
index 218c346..0a98d18 100644
--- a/gui/history.c
+++ b/gui/history.c
@@ -116,14 +116,12 @@ static bool hover_history(void *user, bool on, int dx, int dy)
if (dy)
overlay_size(h->over, gtk_widget_get_pango_context(gui->da),
NULL, &before);
- if (on) {
+ if (on)
s = vcs_git_long_for_pango(h->vcs_hist, fmt_pango);
- overlay_text_raw(h->over, s);
- free(s);
- } else {
- overlay_text(h->over, "<small>%s</small>",
- vcs_git_summary(h->vcs_hist));
- }
+ else
+ s = vcs_git_summary_for_pango(h->vcs_hist, fmt_pango);
+ overlay_text_raw(h->over, s);
+ free(s);
set_history_style(h, on);
if (dy)
overlay_size(h->over, gtk_widget_get_pango_context(gui->da),