clutter: Let ClutterInputMethods pass the anchor position for preedit text

This is an API break, since users (i.e. GNOME Shell) provide the input method
implementation.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2517>
This commit is contained in:
Carlos Garnacho 2022-07-18 15:07:49 +02:00 committed by Marge Bot
parent ffac294520
commit f685567afe
2 changed files with 3 additions and 1 deletions

View File

@ -359,12 +359,13 @@ void
clutter_input_method_set_preedit_text (ClutterInputMethod *im,
const gchar *preedit,
unsigned int cursor,
unsigned int anchor,
ClutterPreeditResetMode mode)
{
g_return_if_fail (CLUTTER_IS_INPUT_METHOD (im));
clutter_input_method_put_im_event (im, CLUTTER_IM_PREEDIT, preedit,
cursor, cursor, 0, mode);
cursor, anchor, 0, mode);
}
void

View File

@ -77,6 +77,7 @@ CLUTTER_EXPORT
void clutter_input_method_set_preedit_text (ClutterInputMethod *im,
const gchar *preedit,
unsigned int cursor,
unsigned int anchor,
ClutterPreeditResetMode mode);
CLUTTER_EXPORT