diff options
| author | Matthias Clasen <mclasen@redhat.com> | 2019-03-14 20:03:34 -0400 |
|---|---|---|
| committer | Matthias Clasen <mclasen@redhat.com> | 2019-03-14 20:03:34 -0400 |
| commit | d3cecd65a5da94711315269415ef24f3896ce622 (patch) | |
| tree | f56530b7ded22cbe4d35c9bd766bb2543afdde69 /gtk/gtkpasswordentry.c | |
| parent | 470720e11af977597f8c1237f530888dc52d1e78 (diff) | |
| download | gtk+-d3cecd65a5da94711315269415ef24f3896ce622.tar.gz | |
password entry: Make the Caps Lock icon less prominent
Set a style class, and theme the Caps Lock icon to
be less promient, so it does not appear clickable.
Diffstat (limited to 'gtk/gtkpasswordentry.c')
| -rw-r--r-- | gtk/gtkpasswordentry.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index b096b3d578..08467ad509 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -118,6 +118,7 @@ gtk_password_entry_init (GtkPasswordEntry *entry) priv->icon = gtk_image_new_from_icon_name ("caps-lock-symbolic"); gtk_widget_set_tooltip_text (priv->icon, _("Caps Lock is on")); + gtk_style_context_add_class (gtk_widget_get_style_context (priv->icon), "caps-lock-indicator"); gtk_widget_set_cursor (priv->icon, gtk_widget_get_cursor (priv->entry)); gtk_container_add (GTK_CONTAINER (priv->box), priv->icon); |
