[epiphany/gnome-3-24-loki: 7/16] Set old-style GtkEntry style class, retro!
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/gnome-3-24-loki: 7/16] Set old-style GtkEntry style class, retro!
- Date: Fri, 29 Sep 2017 16:28:12 +0000 (UTC)
commit b0cece7108903490d2ee85ed6ced792dcfce1c1d
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Sep 21 18:21:23 2017 -0500
Set old-style GtkEntry style class, retro!
embed/web-extension/ephy-web-extension.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/embed/web-extension/ephy-web-extension.c b/embed/web-extension/ephy-web-extension.c
index 655a71f..91e8f6f 100644
--- a/embed/web-extension/ephy-web-extension.c
+++ b/embed/web-extension/ephy-web-extension.c
@@ -654,7 +654,11 @@ get_entry_style_context (void)
path = gtk_widget_path_new ();
gtk_widget_path_append_type (path, GTK_TYPE_ENTRY);
+#if GTK_CHECK_VERSION(3, 20, 0)
gtk_widget_path_iter_set_object_name (path, 0, "entry");
+#else
+ gtk_widget_path_iter_add_class (path, 0, GTK_STYLE_CLASS_ENTRY);
+#endif
global_entry_context = gtk_style_context_new ();
gtk_style_context_set_path (global_entry_context, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]