cally/text: Fix emission of text_caret_moved signal

CallyText was still listening to changes to the deprecated
`ClutterText:position` property to emit the signal, but the
property was removed in commit 3184986897.

Switch to the proper `cursor-position` property to fix the
issue.

Close: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7442
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3621>
This commit is contained in:
Florian Müllner 2024-02-27 16:04:38 +01:00
parent c4767b6c01
commit 100dc6d2b1

View File

@ -1682,7 +1682,7 @@ cally_text_notify_clutter (GObject *obj,
atk_obj = clutter_actor_get_accessible (CLUTTER_ACTOR (obj));
cally_text = CALLY_TEXT (atk_obj);
if (g_strcmp0 (pspec->name, "position") == 0)
if (g_strcmp0 (pspec->name, "cursor-position") == 0)
{
/* the selection can change also for the cursor position */
if (_check_for_selection_change (cally_text, clutter_text))