[epiphany/alatiera/ele-stylesheet] hardcode elementary icons if on pantheon




commit b4df38855a357ebcfe04d7dd1d5d26e0f49c5f8b
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-window.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
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]