Commit ac8ee9a0 authored by Carlos Garnacho's avatar Carlos Garnacho

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.
parent 952c1fef
......@@ -6531,3 +6531,11 @@ clutter_text_get_input_purpose (ClutterText *self)
return self->priv->input_purpose;
clutter_text_has_preedit (ClutterText *self)
g_return_val_if_fail (CLUTTER_IS_TEXT (self), FALSE);
return self->priv->preedit_set;
......@@ -313,6 +313,9 @@ ClutterInputContentHintFlags clutter_text_get_input_hints (ClutterText *self);
ClutterInputContentPurpose clutter_text_get_input_purpose (ClutterText *self);
gboolean clutter_text_has_preedit (ClutterText *self);
#endif /* __CLUTTER_TEXT_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment