Add SparkleAbout to .csproj
This commit is contained in:
parent
a313c38ad8
commit
b4d2b47cb7
|
@ -15,11 +15,6 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
using GitSharp;
|
||||
using GitSharp.Commands;
|
||||
using GitSharp.Core.Transport;
|
||||
using Meebey.SmartIrc4net;
|
||||
using Mono.Unix;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
@ -27,6 +22,12 @@ using System.IO;
|
|||
using System.Text.RegularExpressions;
|
||||
using System.Timers;
|
||||
|
||||
using GitSharp;
|
||||
using GitSharp.Commands;
|
||||
using GitSharp.Core.Transport;
|
||||
using Meebey.SmartIrc4net;
|
||||
using Mono.Unix;
|
||||
|
||||
namespace SparkleLib {
|
||||
|
||||
public class SparkleRepo : Repository {
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
</object>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="29"/>
|
||||
<integer value="57"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
|
@ -962,6 +962,14 @@
|
|||
</object>
|
||||
<int key="connectionID">534</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBOutletConnection" key="connection">
|
||||
<string key="label">delegate</string>
|
||||
<reference key="source" ref="1050"/>
|
||||
<reference key="destination" ref="238522557"/>
|
||||
</object>
|
||||
<int key="connectionID">538</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
|
@ -1768,7 +1776,7 @@
|
|||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">534</int>
|
||||
<int key="maxID">538</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
|
|
|
@ -17,13 +17,13 @@
|
|||
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.ObjCRuntime;
|
||||
using MonoMac.WebKit;
|
||||
|
||||
using System.IO;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
public class SparkleLog : NSWindow {
|
||||
|
|
|
@ -101,6 +101,7 @@
|
|||
<Compile Include="..\SparkleShare.cs">
|
||||
<Link>SparkleShare.cs</Link>
|
||||
</Compile>
|
||||
<Compile Include="SparkleAbout.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Page Include="MainMenu.xib" />
|
||||
|
|
|
@ -20,6 +20,7 @@ using System.Collections.Generic;
|
|||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Timers;
|
||||
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.ObjCRuntime;
|
||||
|
@ -29,14 +30,6 @@ namespace SparkleShare {
|
|||
|
||||
public partial class AppDelegate : NSApplicationDelegate {
|
||||
|
||||
public override void WillBecomeActive (NSNotification notification)
|
||||
{
|
||||
|
||||
SparkleUI.NewEvents = 0;
|
||||
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -48,7 +41,7 @@ namespace SparkleShare {
|
|||
public static int NewEvents;
|
||||
public static SparkleIntro Intro;
|
||||
public static NSFont Font;
|
||||
|
||||
public SparkleAbout About;
|
||||
|
||||
public SparkleUI ()
|
||||
{
|
||||
|
@ -71,6 +64,7 @@ namespace SparkleShare {
|
|||
|
||||
NewEvents = 0;
|
||||
|
||||
|
||||
SparkleShare.Controller.NotificationRaised += delegate {
|
||||
|
||||
InvokeOnMainThread (delegate {
|
||||
|
@ -143,6 +137,23 @@ namespace SparkleShare {
|
|||
|
||||
}
|
||||
|
||||
|
||||
public override void WillBecomeActive (NSNotification notification)
|
||||
{
|
||||
|
||||
NewEvents = 0;
|
||||
NSApplication.SharedApplication.DockTile.BadgeLabel = null;
|
||||
|
||||
}
|
||||
|
||||
public override void OrderFrontStandardAboutPanel (NSObject sender)
|
||||
{
|
||||
|
||||
// FIXME: Doesn't work
|
||||
About = new SparkleAbout ();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue