diff options
author | Alexander Mikhaylenko <alexm@gnome.org> | 2021-11-30 02:56:48 +0500 |
---|---|---|
committer | Alexander Mikhaylenko <alexm@gnome.org> | 2021-12-01 00:43:47 +0500 |
commit | e28ad77d89907ec0e8ecc5fcc78930c47b51bfb5 (patch) | |
tree | 15f0ced8d638389d594061b9cf560478dab220aa /embed | |
parent | 06b13e40f5754b522e4bc2306e91aa471daf42fd (diff) | |
download | epiphany-e28ad77d89907ec0e8ecc5fcc78930c47b51bfb5.tar.gz |
Stop referencing style class constants
They are gone in GTK4.
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1035>
Diffstat (limited to 'embed')
-rw-r--r-- | embed/contrib/gd-tagged-entry.c | 2 | ||||
-rw-r--r-- | embed/ephy-embed.c | 3 | ||||
-rw-r--r-- | embed/ephy-find-toolbar.c | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/embed/contrib/gd-tagged-entry.c b/embed/contrib/gd-tagged-entry.c index 5db139e8c..1c00740d6 100644 --- a/embed/contrib/gd-tagged-entry.c +++ b/embed/contrib/gd-tagged-entry.c @@ -491,7 +491,7 @@ gd_tagged_entry_tag_draw (GdTaggedEntryTag *tag, if (!entry->priv->button_visible || !tag->priv->has_close_button) goto done; - gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON); + gtk_style_context_add_class (context, "button"); state = gd_tagged_entry_tag_get_button_state (tag, entry); gtk_style_context_set_state (context, state); diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index b6c61d205..334baf589 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -747,8 +747,7 @@ ephy_embed_constructed (GObject *object) if (embed->progress_bar_enabled) { embed->progress = gtk_progress_bar_new (); - gtk_style_context_add_class (gtk_widget_get_style_context (embed->progress), - GTK_STYLE_CLASS_OSD); + gtk_style_context_add_class (gtk_widget_get_style_context (embed->progress), "osd"); gtk_widget_set_halign (embed->progress, GTK_ALIGN_FILL); gtk_widget_set_valign (embed->progress, GTK_ALIGN_START); gtk_overlay_add_overlay (GTK_OVERLAY (embed->overlay), embed->progress); diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c index f03aea04e..45a71b8e0 100644 --- a/embed/ephy-find-toolbar.c +++ b/embed/ephy-find-toolbar.c @@ -383,8 +383,7 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar) gtk_container_add (GTK_CONTAINER (toolbar->search_bar), clamp); box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0); - gtk_style_context_add_class (gtk_widget_get_style_context (box), - GTK_STYLE_CLASS_LINKED); + gtk_style_context_add_class (gtk_widget_get_style_context (box), "linked"); gtk_container_add (GTK_CONTAINER (clamp), box); toolbar->entry = gd_tagged_entry_new (); |