summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-11 19:59:44 +0000
committerSzymon Kłos <szymon.klos@collabora.com>2021-05-25 12:12:25 +0200
commit5fb5090883a7265a6b8939781c9cfee9100b3276 (patch)
treef3fcfafa417015a1af2237049623794eb0ca3855 /.git-hooks
parent38c511a368a1b6b1cc3a01d0baa63c6c044734db (diff)
replace stock button images
Change-Id: I9be83856c0dd15552a042f009464c279bf239848 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109199 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to '.git-hooks')
-rwxr-xr-x.git-hooks/pre-commit8
1 files changed, 8 insertions, 0 deletions
diff --git a/.git-hooks/pre-commit b/.git-hooks/pre-commit
index fd0cfeea2e62..bc9b723d039d 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -101,6 +101,14 @@ sub check_whitespaces($)
{
bad_line("use tooltip_text instead of tooltip_markup", $_, "ui");
}
+ if (/<property name="stock[-_]id"/ )
+ {
+ bad_line("use an icon-name listed at https://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html", $_, "ui");
+ }
+ if (/<property name="stock"/ )
+ {
+ bad_line("use an icon-name listed at https://developer.gnome.org/gtk3/stable/gtk3-Stock-Items.html", $_, "ui");
+ }
if ((/translatable="yes"/) and not(/context=/))
{
bad_line("translatable .ui file line without context", $_, "ui");