summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-12-08 02:08:42 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-12-08 02:08:42 (GMT)
commitc8564a0bff33e3087dc75d2aec611eeff094bd2e (patch)
tree0afb821726058a1edcb6bc043c37b1aa63fd18da
parent1a57c9b5adb7a26caeecac92109a1bdb40466bd4 (diff)
downloadeeshow-c8564a0bff33e3087dc75d2aec611eeff094bd2e.zip
eeshow-c8564a0bff33e3087dc75d2aec611eeff094bd2e.tar.gz
eeshow-c8564a0bff33e3087dc75d2aec611eeff094bd2e.tar.bz2
file/git-hist.c: only use bg alpha in Pango markup if libpango >= 1.38
-rw-r--r--file/git-hist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/file/git-hist.c b/file/git-hist.c
index 7c2efbd..7e8fa18 100644
--- a/file/git-hist.c
+++ b/file/git-hist.c
@@ -340,7 +340,13 @@ const char *vcs_git_summary(const struct vcs_hist *h)
}
-#define BRANCH_BG "background=\"#00e000\" background_alpha=\"50%%\""
+/* Pango supports alpha values in background color only since 1.38 */
+
+#if PANGO_VERSION_MAJOR >= 1 || PANGO_VERSION_MINOR >= 38
+#define BRANCH_BG "background=\"#00e00080\""
+#else
+#define BRANCH_BG "background=\"#00e000\""
+#endif
char *vcs_git_summary_for_pango(const struct vcs_hist *h,