linux: Fix icon lookup
This commit is contained in:
parent
a270fa1976
commit
b67eca371e
|
@ -27,6 +27,10 @@ namespace SparkleShare {
|
||||||
public static Gdk.Pixbuf GetIcon (string name, int size)
|
public static Gdk.Pixbuf GetIcon (string name, int size)
|
||||||
{
|
{
|
||||||
IconTheme icon_theme = new IconTheme ();
|
IconTheme icon_theme = new IconTheme ();
|
||||||
|
|
||||||
|
foreach (string search_path in IconTheme.Default.SearchPath)
|
||||||
|
icon_theme.AppendSearchPath (search_path);
|
||||||
|
|
||||||
icon_theme.AppendSearchPath (Path.Combine (SparkleUI.AssetsPath, "icons"));
|
icon_theme.AppendSearchPath (Path.Combine (SparkleUI.AssetsPath, "icons"));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue