st/password-entry: Fix memory leak
The peek-password icon is currently created twice, whoops. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/910
This commit is contained in:
parent
f5f9bd2e5e
commit
c2609227ff
@ -164,12 +164,6 @@ st_password_entry_init (StPasswordEntry *entry)
|
|||||||
NULL);
|
NULL);
|
||||||
st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
|
st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
|
||||||
|
|
||||||
priv->peek_password_icon = g_object_new (ST_TYPE_ICON,
|
|
||||||
"style-class", "peek-password",
|
|
||||||
"icon-name", "eye-not-looking-symbolic",
|
|
||||||
NULL);
|
|
||||||
st_entry_set_secondary_icon (ST_ENTRY (entry), priv->peek_password_icon);
|
|
||||||
|
|
||||||
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
|
clutter_text = st_entry_get_clutter_text (ST_ENTRY (entry));
|
||||||
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BLACK_CIRCLE);
|
clutter_text_set_password_char (CLUTTER_TEXT (clutter_text), BLACK_CIRCLE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user