Merge branch 'config_nightly' of https://github.com/markusstoll/SparkleShare into config_nightly

* 'config_nightly' of https://github.com/markusstoll/SparkleShare:
  Fix usage of NSImage - object cannot be reused after setting Size NSImage does the caching for us anyway
  Fix Project settings for Release
This commit is contained in:
Markus Stoll 2014-11-25 00:33:17 +01:00
commit 65c69a1510
2 changed files with 5 additions and 4 deletions

View file

@ -29,7 +29,7 @@
<EnableCodeSigning>False</EnableCodeSigning>
<CreatePackage>False</CreatePackage>
<EnablePackageSigning>False</EnablePackageSigning>
<IncludeMonoRuntime>false</IncludeMonoRuntime>
<IncludeMonoRuntime>True</IncludeMonoRuntime>
<ConsolePause>False</ConsolePause>
<CodeSigningKey>Mac Developer</CodeSigningKey>
<PackageSigningKey>3rd Party Mac Developer Installer</PackageSigningKey>

View file

@ -47,7 +47,7 @@ namespace SparkleShare {
private NSImage folder_image = NSImage.ImageNamed ("NSFolder");
private NSImage caution_image = NSImage.ImageNamed ("NSCaution");
private NSImage sparkleshare_image = NSImage.ImageNamed ("sparkleshare-folder");
private string sparkleshare_image_name = "sparkleshare-folder.icns";
public SparkleStatusIcon ()
@ -57,7 +57,8 @@ namespace SparkleShare {
this.status_item.Image.Template = true;
if (Environment.OSVersion.Version.Major >= 14)
this.sparkleshare_image = NSImage.ImageNamed ("sparkleshare-folder-yosemite");
this.sparkleshare_image_name = "sparkleshare-folder-yosemite.icns";
CreateMenu ();
@ -113,7 +114,7 @@ namespace SparkleShare {
Enabled = true
};
this.folder_item.Image = this.sparkleshare_image;
this.folder_item.Image = NSImage.ImageNamed(this.sparkleshare_image_name);
this.folder_item.Image.Size = new SizeF (16, 16);
this.add_item = new NSMenuItem () {