[evince/wip/gpoo/gtk4-preparation: 1/2] libmisc: Update style context classes




commit 39ef6c18fc4bcecae3c0753e14e97d5acbf2e110
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Oct 11 19:04:53 2021 -0300

    libmisc: Update style context classes
    
    * Replace deprecated defines by their actual text in preparation
      for Gtk4.

 libmisc/ev-page-action-widget.c | 4 ++--
 libmisc/ev-search-box.c         | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libmisc/ev-page-action-widget.c b/libmisc/ev-page-action-widget.c
index 5274cb73..3d41019d 100644
--- a/libmisc/ev-page-action-widget.c
+++ b/libmisc/ev-page-action-widget.c
@@ -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,
diff --git a/libmisc/ev-search-box.c b/libmisc/ev-search-box.c
index 31f79fcb..f64e8f2f 100644
--- a/libmisc/ev-search-box.c
+++ b/libmisc/ev-search-box.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]