[sysprof] theme-manager: ensure that icons are loaded



commit 563a5e3e65c10eb7324d711e02a14cd0d8eb973a
Author: Christian Hergert <chergert redhat com>
Date:   Wed Nov 23 19:19:43 2016 -0800

    theme-manager: ensure that icons are loaded
    
    This uses the theme manager to ensure that we add the icon path for
    consumers of the library.

 lib/sp-theme-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-theme-manager.c b/lib/sp-theme-manager.c
index 74e84b4..5cf2108 100644
--- a/lib/sp-theme-manager.c
+++ b/lib/sp-theme-manager.c
@@ -176,6 +176,8 @@ static void
 sp_theme_manager_init (SpThemeManager *self)
 {
   self->theme_resources = g_hash_table_new_full (g_str_hash, g_str_equal, NULL, theme_resource_free);
+
+  gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (), "/org/gnome/sysprof/icons");
 }
 
 /**


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