Make noto-emoticons the default theme

This commit is contained in:
Philipp Hörist 2017-07-02 19:42:42 +02:00
parent 89e4a006be
commit 635b05c1ca
3 changed files with 8 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class Config:
'speller_language': [ opt_str, '', _('Language used by speller')], 'speller_language': [ opt_str, '', _('Language used by speller')],
'print_time': [ opt_str, 'always', _('\'always\' - print time for every message.\n\'sometimes\' - print time every print_ichat_every_foo_minutes minute.\n\'never\' - never print time.')], 'print_time': [ opt_str, 'always', _('\'always\' - print time for every message.\n\'sometimes\' - print time every print_ichat_every_foo_minutes minute.\n\'never\' - never print time.')],
'print_time_fuzzy': [ opt_int, 0, _('Print time in chats using Fuzzy Clock. Value of fuzziness from 1 to 4, or 0 to disable fuzzyclock. 1 is the most precise clock, 4 the least precise one. This is used only if print_time is \'sometimes\'.') ], 'print_time_fuzzy': [ opt_int, 0, _('Print time in chats using Fuzzy Clock. Value of fuzziness from 1 to 4, or 0 to disable fuzzyclock. 1 is the most precise clock, 4 the least precise one. This is used only if print_time is \'sometimes\'.') ],
'emoticons_theme': [opt_str, 'static', '', True ], 'emoticons_theme': [opt_str, 'noto-emoticons', '', True ],
'ascii_formatting': [ opt_bool, True, 'ascii_formatting': [ opt_bool, True,
_('Treat * / _ pairs as possible formatting characters.'), True], _('Treat * / _ pairs as possible formatting characters.'), True],
'show_ascii_formatting_chars': [ opt_bool, True, _('If True, do not ' 'show_ascii_formatting_chars': [ opt_bool, True, _('If True, do not '

View File

@ -30,7 +30,7 @@ import os.path
docdir = '../' docdir = '../'
basedir = '../' basedir = '../'
localedir = '../po' localedir = '../po'
version = '0.16.10.3' version = '0.16.10.4'
try: try:
node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True, node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,

View File

@ -236,6 +236,8 @@ class OptionsParser:
self.update_config_to_016102() self.update_config_to_016102()
if old < [0, 16, 10, 3] and new >= [0, 16, 10, 3]: if old < [0, 16, 10, 3] and new >= [0, 16, 10, 3]:
self.update_config_to_016103() self.update_config_to_016103()
if old < [0, 16, 10, 4] and new >= [0, 16, 10, 4]:
self.update_config_to_016104()
gajim.logger.init_vars() gajim.logger.init_vars()
gajim.logger.attach_cache_database() gajim.logger.attach_cache_database()
@ -999,3 +1001,7 @@ class OptionsParser:
pass pass
con.close() con.close()
gajim.config.set('version', '0.16.10.3') gajim.config.set('version', '0.16.10.3')
def update_config_to_016104(self):
gajim.config.set('emoticons_theme', 'noto-emoticons')
gajim.config.set('version', '0.16.10.4')