[epiphany] Update for removal of GTK_STYLE_CLASS_ENTRY



commit f74683aace8b113ff19d63d00d09e00d9da541ea
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Mon Oct 26 21:24:44 2015 -0500

    Update for removal of GTK_STYLE_CLASS_ENTRY
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757164

 configure.ac                             |    2 +-
 embed/web-extension/ephy-web-extension.c |    2 +-
 src/ephy-completion-model.c              |    4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index f729f07..8d599ec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -73,7 +73,7 @@ AX_REQUIRE_DEFINED([YELP_HELP_INIT])
 YELP_HELP_INIT
 
 GLIB_REQUIRED=2.44.0
-GTK_REQUIRED=3.16.0
+GTK_REQUIRED=3.19.1
 LIBXML_REQUIRED=2.6.12
 LIBXSLT_REQUIRED=1.1.7
 WEBKIT_GTK_REQUIRED=2.11.1
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index f1dc57a..e63416d 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -503,7 +503,7 @@ get_entry_style_context (void)
 
   path = gtk_widget_path_new ();
   gtk_widget_path_append_type (path, GTK_TYPE_ENTRY);
-  gtk_widget_path_iter_add_class (path, 0, GTK_STYLE_CLASS_ENTRY);
+  gtk_widget_path_iter_set_object_name (path, 0, "entry");
 
   global_entry_context = gtk_style_context_new ();
   gtk_style_context_set_path (global_entry_context, path);
diff --git a/src/ephy-completion-model.c b/src/ephy-completion-model.c
index 1deeaba..41f3541 100644
--- a/src/ephy-completion-model.c
+++ b/src/ephy-completion-model.c
@@ -310,6 +310,7 @@ set_row_in_model (EphyCompletionModel *model, int position, PotentialRow *row, c
                                        NULL, icon_loaded_cb, data);
 }
 
+/* FIXME: This should be in the view, not the model. */
 static gchar *
 get_text_column_subtitle_color (void)
 {
@@ -319,13 +320,12 @@ get_text_column_subtitle_color (void)
 
   path = gtk_widget_path_new ();
   gtk_widget_path_prepend_type (path, GTK_TYPE_ENTRY);
-  gtk_widget_path_iter_add_class (path, 0, GTK_STYLE_CLASS_ENTRY);
+  gtk_widget_path_iter_set_object_name (path, 0, "entry");
 
   style_context = gtk_style_context_new ();
   gtk_style_context_set_path (style_context, path);
   gtk_widget_path_free (path);
 
-  gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_ENTRY);
   gtk_style_context_set_state (style_context, GTK_STATE_FLAG_INSENSITIVE);
   gtk_style_context_get_color (style_context, GTK_STATE_FLAG_INSENSITIVE, &rgba);
   g_object_unref (style_context);


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