diff --git a/.gitignore b/.gitignore index 1fee9b75..d35ad61e 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ missing build/m4/shave/shave build/m4/*.m4 build/m4/shave/shave-libtool +Sparkles/InstallationInfo.Directory.cs SparkleShare/Linux/sparkleshare SparkleShare/Mac/git* gnome-doc-utils.make diff --git a/SparkleShare/Mac/Controller.cs b/SparkleShare/Mac/Controller.cs index ccf7140b..772c8838 100644 --- a/SparkleShare/Mac/Controller.cs +++ b/SparkleShare/Mac/Controller.cs @@ -138,7 +138,7 @@ namespace SparkleShare { public override void SetFolderIcon () { - /* if (Environment.OSVersion.Version.Major >= 14) { + if (Environment.OSVersion.Version.Major >= 14) { NSWorkspace.SharedWorkspace.SetIconforFile ( NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"), SparkleShare.Controller.FoldersPath, 0); @@ -147,7 +147,7 @@ namespace SparkleShare { NSWorkspace.SharedWorkspace.SetIconforFile ( NSImage.ImageNamed ("sparkleshare-folder.icns"), SparkleShare.Controller.FoldersPath, 0); - }*/ + } } diff --git a/SparkleShare/Mac/SparkleShare.Mac.csproj b/SparkleShare/Mac/SparkleShare.Mac.csproj index 43229c83..f2183960 100644 --- a/SparkleShare/Mac/SparkleShare.Mac.csproj +++ b/SparkleShare/Mac/SparkleShare.Mac.csproj @@ -148,18 +148,9 @@ HTML\event-log.html - - Resources\sparkleshare-folder.icns - - - Resources\sparkleshare-app.icns - HTML\jquery.js - - Resources\sparkleshare-folder-yosemite.icns - @@ -264,6 +255,15 @@ Resources\text-balloon%402x.png + + Resources\sparkleshare-app.icns + + + Resources\sparkleshare-folder.icns + + + Resources\sparkleshare-folder-yosemite.icns + diff --git a/SparkleShare/Mac/UserInterface/About.cs b/SparkleShare/Mac/UserInterface/About.cs index 72abfd73..36fe100d 100644 --- a/SparkleShare/Mac/UserInterface/About.cs +++ b/SparkleShare/Mac/UserInterface/About.cs @@ -144,10 +144,6 @@ namespace SparkleShare { { NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); MakeKeyAndOrderFront (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - base.OrderFrontRegardless (); } @@ -155,10 +151,6 @@ namespace SparkleShare { public override void PerformClose (NSObject sender) { base.OrderOut (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - return; } diff --git a/SparkleShare/Mac/UserInterface/EventLog.cs b/SparkleShare/Mac/UserInterface/EventLog.cs index e5d3d61e..ca028386 100644 --- a/SparkleShare/Mac/UserInterface/EventLog.cs +++ b/SparkleShare/Mac/UserInterface/EventLog.cs @@ -329,7 +329,7 @@ namespace SparkleShare { { string pixmaps_path = "file://" + NSBundle.MainBundle.ResourcePath; - html = html.Replace ("", "Helvetica Neue"); + html = html.Replace ("", UserInterface.FontName); html = html.Replace ("", "13.6px"); html = html.Replace ("", "13.4px"); html = html.Replace ("", "#bbb"); @@ -368,10 +368,6 @@ namespace SparkleShare { { NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); MakeKeyAndOrderFront (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - base.OrderFrontRegardless (); } @@ -379,10 +375,6 @@ namespace SparkleShare { public override void PerformClose (NSObject sender) { base.OrderOut (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - return; } } diff --git a/SparkleShare/Mac/UserInterface/Note.cs b/SparkleShare/Mac/UserInterface/Note.cs index 15db8b1e..a32f4865 100644 --- a/SparkleShare/Mac/UserInterface/Note.cs +++ b/SparkleShare/Mac/UserInterface/Note.cs @@ -197,10 +197,6 @@ namespace SparkleShare { { NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); MakeKeyAndOrderFront (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - base.OrderFrontRegardless (); } @@ -208,20 +204,17 @@ namespace SparkleShare { public override void PerformClose (NSObject sender) { base.OrderOut (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - return; } + public override bool AcceptsFirstResponder () { return true; } - private class SparkleNoteDelegate : NSWindowDelegate { + class SparkleNoteDelegate : NSWindowDelegate { public override bool WindowShouldClose (NSObject sender) { diff --git a/SparkleShare/Mac/UserInterface/SetupWindow.cs b/SparkleShare/Mac/UserInterface/SetupWindow.cs index 2d472eb8..cbc40b2e 100644 --- a/SparkleShare/Mac/UserInterface/SetupWindow.cs +++ b/SparkleShare/Mac/UserInterface/SetupWindow.cs @@ -70,9 +70,6 @@ namespace SparkleShare { }; this.header_text_field.Cell.LineBreakMode = NSLineBreakMode.TruncatingTail; - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); } @@ -128,10 +125,6 @@ namespace SparkleShare { NSApplication.SharedApplication.AddWindowsItem (this, "SparkleShare Setup", false); NSApplication.SharedApplication.ActivateIgnoringOtherApps (true); MakeKeyAndOrderFront (this); - - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - OrderFrontRegardless (); } @@ -141,9 +134,6 @@ namespace SparkleShare { OrderOut (this); NSApplication.SharedApplication.RemoveWindowsItem (this); - if (SparkleShare.UI != null) - SparkleShare.UI.UpdateDockIconVisibility (); - return; }