diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-18 14:03:57 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-10-18 14:03:57 +0200 |
commit | bc1f16f857ca694b666a343bb3f734f1962c6400 (patch) | |
tree | 505c844c00e32b4fb2834e230a3dae41fd1a150f /contrib/ayatana-indicator-keyboard-icon-generator.py | |
parent | 108d1fa9bd789ebaea5700c30b0cc1b8c180bb22 (diff) | |
parent | 392b4061226c658a68bbabbec40f6e626d0db1fe (diff) | |
download | ayatana-indicator-keyboard-bc1f16f857ca694b666a343bb3f734f1962c6400.tar.gz ayatana-indicator-keyboard-bc1f16f857ca694b666a343bb3f734f1962c6400.tar.bz2 ayatana-indicator-keyboard-bc1f16f857ca694b666a343bb3f734f1962c6400.zip |
Merge branch 'tari01-pr/add-new-language-variants'
Attributes GH PR #19: https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/pull/19
Diffstat (limited to 'contrib/ayatana-indicator-keyboard-icon-generator.py')
-rwxr-xr-x | contrib/ayatana-indicator-keyboard-icon-generator.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/ayatana-indicator-keyboard-icon-generator.py b/contrib/ayatana-indicator-keyboard-icon-generator.py index 0316d7f4..586c8229 100755 --- a/contrib/ayatana-indicator-keyboard-icon-generator.py +++ b/contrib/ayatana-indicator-keyboard-icon-generator.py @@ -168,7 +168,9 @@ m_lLanguages = [ 'Wo', #Wolof 'Ya', #Yakut 'Yo', #Yoruba -'00' #Unknown +'emoji', #Emoji +'custom', #Custom +'00' #Unknown ] def printHelp(): @@ -253,6 +255,14 @@ if __name__ == '__main__': sLanguage = '?' + elif sLanguage == 'emoji': + + sLanguage = '😐' + + elif sLanguage == 'custom': + + sLanguage = '#' + pLayout.set_text(sLanguage, -1) nLayoutWidth, nLayoutHeight = pLayout.get_size() nBaseline = pLayout.get_baseline() |