[libhandy/libhandy-1-6] style-manager: Reset the theme if we're not overriding it



commit c480021739c7db7702bafdf8734fc64790746a71
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sat Mar 19 01:08:49 2022 +0400

    style-manager: Reset the theme if we're not overriding it
    
    Can't believe I missed this. Unbreak switching away from HC.
    
    
    (cherry picked from commit a578492e21d343481d4d1aeb0b6f3fbd57c8b217)

 src/hdy-style-manager.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/hdy-style-manager.c b/src/hdy-style-manager.c
index c4865638..e53dde7d 100644
--- a/src/hdy-style-manager.c
+++ b/src/hdy-style-manager.c
@@ -331,6 +331,8 @@ update_stylesheet (HdyStyleManager *self)
       g_object_set (gtk_settings, "gtk-theme-name", "Adwaita", NULL);
     else if (override_theme)
       g_object_set (gtk_settings, "gtk-theme-name", theme_name, NULL);
+    else
+      gtk_settings_reset_property (gtk_settings, "gtk-theme-name");
   }
 
   g_signal_handlers_unblock_by_func (gtk_settings,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]