mirror of
https://gitlab.gnome.org/GNOME/evince
synced 2024-07-07 19:39:49 +00:00
libmisc: Update style context classes
* Replace deprecated defines by their actual text in preparation for Gtk4.
This commit is contained in:
parent
5df2cafe10
commit
39ef6c18fc
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user