mac ui: Remove unused method
This commit is contained in:
parent
37769da70f
commit
1423c2d4ca
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -33,6 +33,7 @@ missing
|
||||||
build/m4/shave/shave
|
build/m4/shave/shave
|
||||||
build/m4/*.m4
|
build/m4/*.m4
|
||||||
build/m4/shave/shave-libtool
|
build/m4/shave/shave-libtool
|
||||||
|
Sparkles/InstallationInfo.Directory.cs
|
||||||
SparkleShare/Linux/sparkleshare
|
SparkleShare/Linux/sparkleshare
|
||||||
SparkleShare/Mac/git*
|
SparkleShare/Mac/git*
|
||||||
gnome-doc-utils.make
|
gnome-doc-utils.make
|
||||||
|
|
|
@ -138,7 +138,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public override void SetFolderIcon ()
|
public override void SetFolderIcon ()
|
||||||
{
|
{
|
||||||
/* if (Environment.OSVersion.Version.Major >= 14) {
|
if (Environment.OSVersion.Version.Major >= 14) {
|
||||||
NSWorkspace.SharedWorkspace.SetIconforFile (
|
NSWorkspace.SharedWorkspace.SetIconforFile (
|
||||||
NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"),
|
NSImage.ImageNamed ("sparkleshare-folder-yosemite.icns"),
|
||||||
SparkleShare.Controller.FoldersPath, 0);
|
SparkleShare.Controller.FoldersPath, 0);
|
||||||
|
@ -147,7 +147,7 @@ namespace SparkleShare {
|
||||||
NSWorkspace.SharedWorkspace.SetIconforFile (
|
NSWorkspace.SharedWorkspace.SetIconforFile (
|
||||||
NSImage.ImageNamed ("sparkleshare-folder.icns"),
|
NSImage.ImageNamed ("sparkleshare-folder.icns"),
|
||||||
SparkleShare.Controller.FoldersPath, 0);
|
SparkleShare.Controller.FoldersPath, 0);
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -148,18 +148,9 @@
|
||||||
<Content Include="..\Common\HTML\event-log.html">
|
<Content Include="..\Common\HTML\event-log.html">
|
||||||
<Link>HTML\event-log.html</Link>
|
<Link>HTML\event-log.html</Link>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Resources\sparkleshare-folder.icns">
|
|
||||||
<Link>Resources\sparkleshare-folder.icns</Link>
|
|
||||||
</Content>
|
|
||||||
<Content Include="Resources\sparkleshare-app.icns">
|
|
||||||
<Link>Resources\sparkleshare-app.icns</Link>
|
|
||||||
</Content>
|
|
||||||
<Content Include="..\Common\HTML\jquery.js">
|
<Content Include="..\Common\HTML\jquery.js">
|
||||||
<Link>HTML\jquery.js</Link>
|
<Link>HTML\jquery.js</Link>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Resources\sparkleshare-folder-yosemite.icns">
|
|
||||||
<Link>Resources\sparkleshare-folder-yosemite.icns</Link>
|
|
||||||
</Content>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Folder Include="Resources\" />
|
<Folder Include="Resources\" />
|
||||||
|
@ -264,6 +255,15 @@
|
||||||
<BundleResource Include="..\Common\Pixmaps\text-balloon%402x.png">
|
<BundleResource Include="..\Common\Pixmaps\text-balloon%402x.png">
|
||||||
<Link>Resources\text-balloon%402x.png</Link>
|
<Link>Resources\text-balloon%402x.png</Link>
|
||||||
</BundleResource>
|
</BundleResource>
|
||||||
|
<BundleResource Include="Resources\sparkleshare-app.icns">
|
||||||
|
<Link>Resources\sparkleshare-app.icns</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="Resources\sparkleshare-folder.icns">
|
||||||
|
<Link>Resources\sparkleshare-folder.icns</Link>
|
||||||
|
</BundleResource>
|
||||||
|
<BundleResource Include="Resources\sparkleshare-folder-yosemite.icns">
|
||||||
|
<Link>Resources\sparkleshare-folder-yosemite.icns</Link>
|
||||||
|
</BundleResource>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\..\Sparkles\Sparkles.csproj">
|
<ProjectReference Include="..\..\Sparkles\Sparkles.csproj">
|
||||||
|
|
|
@ -144,10 +144,6 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
||||||
MakeKeyAndOrderFront (this);
|
MakeKeyAndOrderFront (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
base.OrderFrontRegardless ();
|
base.OrderFrontRegardless ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -155,10 +151,6 @@ namespace SparkleShare {
|
||||||
public override void PerformClose (NSObject sender)
|
public override void PerformClose (NSObject sender)
|
||||||
{
|
{
|
||||||
base.OrderOut (this);
|
base.OrderOut (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -329,7 +329,7 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
string pixmaps_path = "file://" + NSBundle.MainBundle.ResourcePath;
|
string pixmaps_path = "file://" + NSBundle.MainBundle.ResourcePath;
|
||||||
|
|
||||||
html = html.Replace ("<!-- $body-font-family -->", "Helvetica Neue");
|
html = html.Replace ("<!-- $body-font-family -->", UserInterface.FontName);
|
||||||
html = html.Replace ("<!-- $day-entry-header-font-size -->", "13.6px");
|
html = html.Replace ("<!-- $day-entry-header-font-size -->", "13.6px");
|
||||||
html = html.Replace ("<!-- $body-font-size -->", "13.4px");
|
html = html.Replace ("<!-- $body-font-size -->", "13.4px");
|
||||||
html = html.Replace ("<!-- $secondary-font-color -->", "#bbb");
|
html = html.Replace ("<!-- $secondary-font-color -->", "#bbb");
|
||||||
|
@ -368,10 +368,6 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
||||||
MakeKeyAndOrderFront (this);
|
MakeKeyAndOrderFront (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
base.OrderFrontRegardless ();
|
base.OrderFrontRegardless ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -379,10 +375,6 @@ namespace SparkleShare {
|
||||||
public override void PerformClose (NSObject sender)
|
public override void PerformClose (NSObject sender)
|
||||||
{
|
{
|
||||||
base.OrderOut (this);
|
base.OrderOut (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -197,10 +197,6 @@ namespace SparkleShare {
|
||||||
{
|
{
|
||||||
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
||||||
MakeKeyAndOrderFront (this);
|
MakeKeyAndOrderFront (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
base.OrderFrontRegardless ();
|
base.OrderFrontRegardless ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -208,20 +204,17 @@ namespace SparkleShare {
|
||||||
public override void PerformClose (NSObject sender)
|
public override void PerformClose (NSObject sender)
|
||||||
{
|
{
|
||||||
base.OrderOut (this);
|
base.OrderOut (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override bool AcceptsFirstResponder ()
|
public override bool AcceptsFirstResponder ()
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private class SparkleNoteDelegate : NSWindowDelegate {
|
class SparkleNoteDelegate : NSWindowDelegate {
|
||||||
|
|
||||||
public override bool WindowShouldClose (NSObject sender)
|
public override bool WindowShouldClose (NSObject sender)
|
||||||
{
|
{
|
||||||
|
|
|
@ -70,9 +70,6 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.header_text_field.Cell.LineBreakMode = NSLineBreakMode.TruncatingTail;
|
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.AddWindowsItem (this, "SparkleShare Setup", false);
|
||||||
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
NSApplication.SharedApplication.ActivateIgnoringOtherApps (true);
|
||||||
MakeKeyAndOrderFront (this);
|
MakeKeyAndOrderFront (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
OrderFrontRegardless ();
|
OrderFrontRegardless ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,9 +134,6 @@ namespace SparkleShare {
|
||||||
OrderOut (this);
|
OrderOut (this);
|
||||||
NSApplication.SharedApplication.RemoveWindowsItem (this);
|
NSApplication.SharedApplication.RemoveWindowsItem (this);
|
||||||
|
|
||||||
if (SparkleShare.UI != null)
|
|
||||||
SparkleShare.UI.UpdateDockIconVisibility ();
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue