[gnome-software] icons: Use the currently selected icon theme for stock icons
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] icons: Use the currently selected icon theme for stock icons
- Date: Fri, 25 Jan 2019 15:50:44 +0000 (UTC)
commit 2e721fc48980bf5480aaadf4f1ae3c607880969d
Author: Robert Ancell <robert ancell canonical com>
Date: Thu Jan 17 16:47:13 2019 +1300
icons: Use the currently selected icon theme for stock icons
Previously only the GNOME default icon theme was used.
plugins/core/gs-plugin-icons.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/plugins/core/gs-plugin-icons.c b/plugins/core/gs-plugin-icons.c
index 164492f8..ddfb981b 100644
--- a/plugins/core/gs-plugin-icons.c
+++ b/plugins/core/gs-plugin-icons.c
@@ -45,6 +45,7 @@ gs_plugin_initialize (GsPlugin *plugin)
{
GsPluginData *priv = gs_plugin_alloc_data (plugin, sizeof(GsPluginData));
priv->icon_theme = gtk_icon_theme_new ();
+ gtk_icon_theme_set_screen (priv->icon_theme, gdk_screen_get_default ());
priv->icon_theme_paths = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
g_mutex_init (&priv->icon_theme_lock);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]