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/gtksearchbar.c | |
parent | b1d64a6b3a6d16904104772e3a86294897acf41b (diff) | |
download | gtk+-b7ee2cbc289b4ab8a950cd77bdcd69a6f13932a7.tar.gz |
Start using GtkWidget's new style class API
Diffstat (limited to 'gtk/gtksearchbar.c')
-rw-r--r-- | gtk/gtksearchbar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtksearchbar.c b/gtk/gtksearchbar.c index 484e97342c..1338b3e625 100644 --- a/gtk/gtksearchbar.c +++ b/gtk/gtksearchbar.c @@ -351,7 +351,7 @@ gtk_search_bar_init (GtkSearchBar *bar) gtk_widget_set_hexpand (priv->box_center, TRUE); priv->close_button = gtk_button_new_from_icon_name ("window-close-symbolic"); - gtk_style_context_add_class (gtk_widget_get_style_context (priv->close_button), "close"); + gtk_widget_add_style_class (priv->close_button, "close"); gtk_center_box_set_end_widget (GTK_CENTER_BOX (priv->box_center), priv->close_button); gtk_widget_hide (priv->close_button); |