There is no need to check for differences in pinyin mode before and after commit_string() or editor.clear()
There is no need to check for differences in pinyin mode before and after commit_string() or editor.clear()

commit_string() calls editor.clear() and clear() used to switch
off pinyin mode. But we stopped doing that, see:

    commit 059061e3e76761dca6853610580c9c2549918fbb
    Author: Mike FABIAN <mfabian@redhat.com>
    Date:   Tue Apr 8 16:34:58 2014 +0200

	Don’t switch off pinyin mode in clear()

	clear() is called in do_focus_out().  And do_focus_out() is called
	after clicking into the gnome menu to switch to pinyin mode.  This
	makes it almost impossible to enable pinyin mode and keep it when
	pinyin mode is switched off in clear().

Therefore, there is no need to check whether the pinyin mode has
changed after commit_string() or editor.clear() anymore.

kaio/ibus-table,kaio/ibus-table,mike-fabian/ibus-table,mike-fabian/ibus-table