From 77128b8396e973606bb87b9795d28252f7892fc5 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Wed, 12 Aug 2020 11:14:30 +0200 Subject: git pre-commit hook: check min gtk3 version See tdf#135442 for motivation Change-Id: I6db67b7a39edeb6dd9d9d82fbaa9cb93362e09e4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100588 Reviewed-by: Heiko Tietze Reviewed-by: Miklos Vajna Tested-by: Jenkins --- .git-hooks/pre-commit | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.git-hooks') diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit index c7d51a1bcb2e..cddc8d330b77 100755 --- a/.git-hooks/pre-commit +++ b/.git-hooks/pre-commit @@ -97,6 +97,10 @@ sub check_whitespaces($) { bad_line("translatable .ui file line without context", $_, "ui"); } + if ((/requires/) and (/lib="gtk+/) and not (/version="3.18/)) + { + bad_line("min supported version of gtk3 is 3.18", $_, "ui"); + } if ((/