linux: effort to fix build

This commit is contained in:
Hylke Bons 2012-08-07 12:47:13 +02:00
parent 6596c2a65f
commit 16ab051df4
4 changed files with 5 additions and 9 deletions

View file

@ -61,10 +61,10 @@ namespace SparkleShare {
"X-GNOME-Autostart-enabled=true\n" +
"Categories=Network");
SparkleHelpers.DebugInfo ("Controller", "Added SparkleShare to login items");
SparkleLogger.LogInfo ("Controller", "Added SparkleShare to login items");
} catch (Exception e) {
SparkleHelpers.DebugInfo ("Controller", "Failed adding SparkleShare to login items: " + e.Message);
SparkleLogger.LogInfo ("Controller", "Failed adding SparkleShare to login items: " + e.Message);
}
}
}
@ -122,7 +122,7 @@ namespace SparkleShare {
{
if (!Directory.Exists (SparkleConfig.DefaultConfig.FoldersPath)) {
Directory.CreateDirectory (SparkleConfig.DefaultConfig.FoldersPath);
SparkleHelpers.DebugInfo ("Controller", "Created '" + SparkleConfig.DefaultConfig.FoldersPath + "'");
SparkleLogger.LogInfo ("Controller", "Created '" + SparkleConfig.DefaultConfig.FoldersPath + "'");
string gvfs_command_path = new string [] { Path.VolumeSeparatorChar.ToString (),
"usr", "bin", "gvfs-set-attribute" }.Combine ();

View file

@ -239,7 +239,7 @@ namespace SparkleShare {
public void UpdateContent (string html)
{
Thread thread = new Thread (new ThreadStart (delegate {
Thread thread = new Thread (() => {
if (html == null)
html = Controller.HTML;

View file

@ -30,7 +30,7 @@ namespace SparkleShare {
public SparkleSetup Setup;
public SparkleAbout About;
public static string AssetsPath = Defines.INSTALL_DIR;
public string AssetsPath = Defines.INSTALL_DIR;
public SparkleUI ()

View file

@ -27,12 +27,8 @@ namespace SparkleShare {
public static Gdk.Pixbuf GetIcon (string name, int size)
{
IconTheme icon_theme = new IconTheme ();
icon_theme.AppendSearchPath (Path.Combine (Program.UI.AssetsPath, "icons"));
icon_theme.AppendSearchPath (
Path.Combine (Path.GetDirectoryName (SparkleConfig.DefaultConfig.FullPath), "icons"));
try {
return icon_theme.LoadIcon (name, size, IconLookupFlags.GenericFallback);