clutter: Add clutter_text_has_preedit()

This function returns TRUE if there is any preedit going on. This method
will be useful in gnome-shell where similar checks are performed on
StIMText actors.
This commit is contained in:
Carlos Garnacho
2017-12-21 18:15:07 +01:00
parent 952c1fefa2
commit ac8ee9a08c
2 changed files with 11 additions and 0 deletions

View File

@ -313,6 +313,9 @@ ClutterInputContentHintFlags clutter_text_get_input_hints (ClutterText *self);
CLUTTER_AVAILABLE_IN_MUTTER
ClutterInputContentPurpose clutter_text_get_input_purpose (ClutterText *self);
CLUTTER_AVAILABLE_IN_MUTTER
gboolean clutter_text_has_preedit (ClutterText *self);
G_END_DECLS
#endif /* __CLUTTER_TEXT_H__ */