diff options
| author | Timm Bäder <mail@baedert.org> | 2020-01-29 12:11:39 +0100 |
|---|---|---|
| committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-07 13:16:32 -0500 |
| commit | b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7 (patch) | |
| tree | dca0c99c5a1d77e317a2dce4f42c851816ff6c63 /gtk/gtkpasswordentry.c | |
| parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
| download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz | |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtkpasswordentry.c')
| -rw-r--r-- | gtk/gtkpasswordentry.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkpasswordentry.c b/gtk/gtkpasswordentry.c index a2eeda7900..a3de52e488 100644 --- a/gtk/gtkpasswordentry.c +++ b/gtk/gtkpasswordentry.c @@ -149,11 +149,11 @@ 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_add_style_class (priv->icon, "caps-lock-indicator"); gtk_widget_set_cursor (priv->icon, gtk_widget_get_cursor (priv->entry)); gtk_widget_set_parent (priv->icon, GTK_WIDGET (entry)); - gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (entry)), I_("password")); + gtk_widget_add_style_class (GTK_WIDGET (entry), I_("password")); gtk_password_entry_set_extra_menu (entry, NULL); } |
