summaryrefslogtreecommitdiff
path: root/.git-hooks
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-11 19:59:44 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-15 17:37:36 +0100
commit5df3c10070057c0846f195065d3716520e091421 (patch)
treee2cfd7c7547b8547988deef021b7948864cdabae /.git-hooks
parente72a6a73cbcb91d6125170efd422fe0b8760e377 (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 1a8e2b12bd44..1f2e9307de01 100755
--- a/.git-hooks/pre-commit
+++ b/.git-hooks/pre-commit
@@ -117,6 +117,14 @@ sub check_whitespaces($)
{
bad_line("use translation context 'stock' and the English string as button label instead", $_, "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");