mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
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:
parent
ffac294520
commit
f685567afe
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user