[epiphany/alatiera/ele-stylesheet: 2/2] hardcode elementary icons if on pantheon
- From: Jordan Petridis <jpetridis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/alatiera/ele-stylesheet: 2/2] hardcode elementary icons if on pantheon
- Date: Thu, 26 Nov 2020 00:35:11 +0000 (UTC)
commit 245fb29385dd5cb28f2ef491adff30533e3af14e
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.
src/ephy-shell.c | 9 +++++++++
1 file changed, 9 insertions(+)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]