st/entry: Notify "text" prop on every change in the ClutterText
Notifying the "text" property inside `st_entry_set_text()` misses all the text changes done by ClutterText itself, including those that happen on key-presses. Fix that by notifying that property inside the "notify::text" handler connected to the ClutterText. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/951
This commit is contained in:
parent
397454d844
commit
c2956e8bd2
@ -542,6 +542,8 @@ clutter_text_changed_cb (GObject *object,
|
|||||||
|
|
||||||
/* Since the text changed, force a regen of the shadow texture */
|
/* Since the text changed, force a regen of the shadow texture */
|
||||||
cogl_clear_object (&priv->text_shadow_material);
|
cogl_clear_object (&priv->text_shadow_material);
|
||||||
|
|
||||||
|
g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_TEXT]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1054,7 +1056,8 @@ st_entry_set_text (StEntry *entry,
|
|||||||
|
|
||||||
clutter_text_set_text (CLUTTER_TEXT (priv->entry), text);
|
clutter_text_set_text (CLUTTER_TEXT (priv->entry), text);
|
||||||
|
|
||||||
g_object_notify_by_pspec (G_OBJECT (entry), props[PROP_TEXT]);
|
/* Note: PROP_TEXT will get notfied from our notify::text handler connected
|
||||||
|
* to priv->entry. */
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user