def set_show_status_info_in_auxiliary_text(self, mode, update_dconf=True):
'''Sets the “Show status info in auxiliary text” mode
:param mode: Whether to show status information in the
auxiliary text.
Currently the status information which can be
displayed there is whether emoji mode and
off-the-record mode are on or off
and which input method is currently used for
the preëdit text.
:type mode: boolean
:param update_dconf: Whether to write the change to dconf.
Set this to False if this method is
called because the dconf key changed
to avoid endless loops when the dconf
key is changed twice in a short time.
:type update_dconf: boolean
'''
if DEBUG_LEVEL > 1:
sys.stderr.write(
"set_show_status_info_in_auxiliary_text"
+ "(%s, update_dconf = %s)\n"
%(mode, update_dconf))
if mode == self._show_status_info_in_auxiliary_text:
return
self._show_status_info_in_auxiliary_text = mode
self.reset()
if update_dconf:
self._config.set_value(
self._config_section,
'showstatusinfoinaux',
GLib.Variant.new_boolean(mode))
评论列表
文章目录