Add SparkleAbout to .csproj
This commit is contained in:
parent
a13d6a996c
commit
5d8717d354
|
@ -15,11 +15,6 @@
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// 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;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
@ -27,6 +22,12 @@ using System.IO;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|
||||||
|
using GitSharp;
|
||||||
|
using GitSharp.Commands;
|
||||||
|
using GitSharp.Core.Transport;
|
||||||
|
using Meebey.SmartIrc4net;
|
||||||
|
using Mono.Unix;
|
||||||
|
|
||||||
namespace SparkleLib {
|
namespace SparkleLib {
|
||||||
|
|
||||||
public class SparkleRepo : Repository {
|
public class SparkleRepo : Repository {
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<integer value="29"/>
|
<integer value="57"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
|
@ -962,6 +962,14 @@
|
||||||
</object>
|
</object>
|
||||||
<int key="connectionID">534</int>
|
<int key="connectionID">534</int>
|
||||||
</object>
|
</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>
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||||
<object class="NSArray" key="orderedObjects">
|
<object class="NSArray" key="orderedObjects">
|
||||||
|
@ -1768,7 +1776,7 @@
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<nil key="sourceID"/>
|
<nil key="sourceID"/>
|
||||||
<int key="maxID">534</int>
|
<int key="maxID">538</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||||
|
|
|
@ -17,13 +17,13 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
using MonoMac.Foundation;
|
using MonoMac.Foundation;
|
||||||
using MonoMac.AppKit;
|
using MonoMac.AppKit;
|
||||||
using MonoMac.ObjCRuntime;
|
using MonoMac.ObjCRuntime;
|
||||||
using MonoMac.WebKit;
|
using MonoMac.WebKit;
|
||||||
|
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
public class SparkleLog : NSWindow {
|
public class SparkleLog : NSWindow {
|
||||||
|
|
|
@ -101,6 +101,7 @@
|
||||||
<Compile Include="..\SparkleShare.cs">
|
<Compile Include="..\SparkleShare.cs">
|
||||||
<Link>SparkleShare.cs</Link>
|
<Link>SparkleShare.cs</Link>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="SparkleAbout.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Page Include="MainMenu.xib" />
|
<Page Include="MainMenu.xib" />
|
||||||
|
|
|
@ -20,6 +20,7 @@ using System.Collections.Generic;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|
||||||
using MonoMac.Foundation;
|
using MonoMac.Foundation;
|
||||||
using MonoMac.AppKit;
|
using MonoMac.AppKit;
|
||||||
using MonoMac.ObjCRuntime;
|
using MonoMac.ObjCRuntime;
|
||||||
|
@ -29,14 +30,6 @@ namespace SparkleShare {
|
||||||
|
|
||||||
public partial class AppDelegate : NSApplicationDelegate {
|
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 int NewEvents;
|
||||||
public static SparkleIntro Intro;
|
public static SparkleIntro Intro;
|
||||||
public static NSFont Font;
|
public static NSFont Font;
|
||||||
|
public SparkleAbout About;
|
||||||
|
|
||||||
public SparkleUI ()
|
public SparkleUI ()
|
||||||
{
|
{
|
||||||
|
@ -71,6 +64,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
NewEvents = 0;
|
NewEvents = 0;
|
||||||
|
|
||||||
|
|
||||||
SparkleShare.Controller.NotificationRaised += delegate {
|
SparkleShare.Controller.NotificationRaised += delegate {
|
||||||
|
|
||||||
InvokeOnMainThread (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