1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-05 00:59:07 +00:00

libmisc: Update style context classes

* Replace deprecated defines by their actual text in preparation
  for Gtk4.
This commit is contained in:
Germán Poo-Caamaño 2021-10-11 19:04:53 -03:00
parent 5df2cafe10
commit 39ef6c18fc
2 changed files with 4 additions and 3 deletions

View File

@ -216,8 +216,8 @@ ev_page_action_widget_init (EvPageActionWidget *action_widget)
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
style_context = gtk_widget_get_style_context (hbox);
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_RAISED);
gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_LINKED);
gtk_style_context_add_class (style_context, "raised");
gtk_style_context_add_class (style_context, "linked");
action_widget->entry = gtk_entry_new ();
gtk_widget_add_events (action_widget->entry,

View File

@ -101,7 +101,8 @@ find_job_finished_cb (EvJobFind *job,
if (!ev_job_find_has_results (job)) {
EvSearchBoxPrivate *priv = GET_PRIVATE (box);
gtk_style_context_add_class (gtk_widget_get_style_context (priv->entry), GTK_STYLE_CLASS_ERROR);
gtk_style_context_add_class (gtk_widget_get_style_context (priv->entry),
"error");
gtk_entry_set_icon_from_icon_name (GTK_ENTRY (priv->entry),
GTK_ENTRY_ICON_PRIMARY,