Fix icon lookup errors

This commit is contained in:
Hylke Bons 2010-07-27 12:00:01 +01:00
parent 2cf5d9f8e6
commit d38268f534
3 changed files with 5 additions and 2 deletions

View file

@ -98,10 +98,12 @@ namespace SparkleShare {
// Looks up an icon from the system's theme
public static Gdk.Pixbuf GetIcon (string Name, int Size)
{
IconTheme IconTheme = new IconTheme ();
IconTheme.AppendSearchPath (SparklePaths.SparkleIconPath);
IconTheme.AppendSearchPath (SparklePaths.SparkleLocalIconPath);
return IconTheme.LoadIcon (Name, Size, IconLookupFlags.GenericFallback);
}

View file

@ -37,8 +37,8 @@ namespace SparkleShare {
public static string SparkleLocalIconPath = SparkleHelpers.CombineMore (HomePath, ".icons", "sparkleshare");
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.PREFIX,
"sparkleshare", "icons", "hicolor");
public static string SparkleIconPath = SparkleHelpers.CombineMore (Defines.PREFIX, "share", "sparkleshare",
"icons");
}

View file

@ -265,6 +265,7 @@ namespace SparkleShare {
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Fetching changes...");
Process.StartInfo.Arguments = "fetch -v";
Process.WaitForExit ();
Process.Start ();