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-26 02:39:35 +0200
commit8b89fada8e408f45c0ddd108d99bb06728813bf1 (patch)
tree2ae220c4ec33215bf7ab78af364c9d461eb3d05d
parent08af386743fefbadac7bd60d7cfa2f39eca06a6f (diff)
downloadepiphany-8b89fada8e408f45c0ddd108d99bb06728813bf1.tar.gz
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.
-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..15236cadd 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);