[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 17:00:07 +0000 (UTC)
commit 2f8762401de06d469553c0054b1ea0bb9fa778da
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..6b78bb1eb 100644
--- a/src/ephy-shell.c
+++ b/src/ephy-shell.c
@@ -502,6 +502,15 @@ ephy_shell_startup (GApplication *application)
app_entries, G_N_ELEMENTS (app_entries),
application);
+ /* 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);
+ }
+
if (mode != EPHY_EMBED_SHELL_MODE_INCOGNITO &&
mode != EPHY_EMBED_SHELL_MODE_AUTOMATION) {
g_action_map_add_action_entries (G_ACTION_MAP (application),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]