summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jpetridis@gnome.org>2020-11-12 16:13:19 +0200
committerJordan Petridis <jpetridis@gnome.org>2020-11-13 16:10:32 +0200
commit22c340d0e61e01c431fe4cbe4916a446eea08342 (patch)
tree7ef1e5233c853e1b8fd5df6b589155c36de0ca24
parent5e2d2c47a0bb2bed20bb4a7ebfe2020160fdc600 (diff)
downloadepiphany-alatiera/ele-stylesheet.tar.gz
hardcode elementary icons if on pantheonalatiera/ele-stylesheet
This makes it easier to test the Flatpak of ephy, under gnome and ensures we use the icons from the flatpak sandbox.
-rw-r--r--src/ephy-shell.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c
index 2ee5684f4..ee00aab8d 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -494,6 +494,15 @@ ephy_shell_startup (GApplication *application)
hdy_init ();
+ /* if we are under pantheon set the icon-theme and cursor theme accordingly */
+ 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);
+ }
+
/* We're not remoting; start our services */
mode = ephy_embed_shell_get_mode (embed_shell);