[epiphany/alatiera/ele-stylesheet] hardcode elementary icons if on pantheon
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/alatiera/ele-stylesheet] hardcode elementary icons if on pantheon
- Date: Thu, 12 Nov 2020 16:13:55 +0000 (UTC)
commit 5b4f0ed1cceb47ee70bf5f56cacdf0b8d44284b7
Author: Jordan Petridis <jpetridis gnome org>
Date: Thu Nov 12 16:13:19 2020 +0200
hardcode elementary icons if on pantheon
This makes it easier to test the Flatpak of ephy,
under gnome and ensures we use the icons from
the flatpak sandbox.
org.gnome.Epiphany.json | 1 +
src/ephy-window.c | 8 ++++++++
2 files changed, 9 insertions(+)
---
diff --git a/org.gnome.Epiphany.json b/org.gnome.Epiphany.json
index a6f8f7ae7..b1900d08d 100644
--- a/org.gnome.Epiphany.json
+++ b/org.gnome.Epiphany.json
@@ -89,6 +89,7 @@
{
"type" : "git",
"url" : "https://gitlab.gnome.org/GNOME/epiphany.git",
+ "branch": "alatiera/ele-stylesheet",
"disable-shallow-clone" : true
}
]
diff --git a/src/ephy-window.c b/src/ephy-window.c
index b661d99d1..713540bfe 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3991,6 +3991,14 @@ static void
ephy_window_init (EphyWindow *window)
{
LOG ("EphyWindow initialising %p", window);
+
+ if (is_desktop_pantheon ()) {
+ GtkSettings *settings = gtk_settings_get_default ();
+ g_object_set (settings,
+ "gtk-icon-theme-name", "elementary",
+ "gtk-cursor-theme-name", "elementary",
+ NULL);
+ }
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]