mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 14:14:10 +00: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,
|
clutter_input_method_set_preedit_text (ClutterInputMethod *im,
|
||||||
const gchar *preedit,
|
const gchar *preedit,
|
||||||
unsigned int cursor,
|
unsigned int cursor,
|
||||||
|
unsigned int anchor,
|
||||||
ClutterPreeditResetMode mode)
|
ClutterPreeditResetMode mode)
|
||||||
{
|
{
|
||||||
g_return_if_fail (CLUTTER_IS_INPUT_METHOD (im));
|
g_return_if_fail (CLUTTER_IS_INPUT_METHOD (im));
|
||||||
|
|
||||||
clutter_input_method_put_im_event (im, CLUTTER_IM_PREEDIT, preedit,
|
clutter_input_method_put_im_event (im, CLUTTER_IM_PREEDIT, preedit,
|
||||||
cursor, cursor, 0, mode);
|
cursor, anchor, 0, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -77,6 +77,7 @@ CLUTTER_EXPORT
|
|||||||
void clutter_input_method_set_preedit_text (ClutterInputMethod *im,
|
void clutter_input_method_set_preedit_text (ClutterInputMethod *im,
|
||||||
const gchar *preedit,
|
const gchar *preedit,
|
||||||
unsigned int cursor,
|
unsigned int cursor,
|
||||||
|
unsigned int anchor,
|
||||||
ClutterPreeditResetMode mode);
|
ClutterPreeditResetMode mode);
|
||||||
|
|
||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user