linux: effort to fix build
This commit is contained in:
parent
6596c2a65f
commit
16ab051df4
|
@ -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 ();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 ()
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue