DescriptionNotify engines of the content-type of input context
Add a new D-Bus method SetContentType to InputContext and Engine, to
notify engines of the content-type (primary purpose and hints) of
input context. This is useful to implement intelligent features in
engines, such as automatic input-mode switch and text prediction.
The "purpose" and "hints" arguments are compatible with
GtkInputPurpose and GtkInputHints:
https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputPurpose
https://developer.gnome.org/gtk3/unstable/GtkEntry.html#GtkInputHints
and the API is similar to the content_type event in the Wayland Input
Method Framework:
http://cgit.freedesktop.org/wayland/weston/tree/protocol/input-method.xml#n202
BUG=
Committed: 3b3a7ce
Patch Set 1 #Patch Set 2 : monitor property notification #
Total comments: 2
Patch Set 3 : use DBus properties #Patch Set 4 : fix GVariant ref leak #Patch Set 5 : simplify set-property dispatch in bus/inputcontext.c #Patch Set 6 : don't touch ibusservice.c #
Total comments: 12
Patch Set 7 : wrap too long lines and add example to docs #
Total comments: 12
Patch Set 8 : wrap too long comment lines #Patch Set 9 : forgot to emit "set-content-type" signal in IBusEngine #
MessagesTotal messages: 9
|