about: remove references to SparkleLib

This commit is contained in:
Hylke Bons 2011-06-08 22:37:29 +01:00
parent 1319a566f9
commit 169b5dfd7a
5 changed files with 16 additions and 33 deletions

View file

@ -55,6 +55,13 @@ namespace SparkleLib {
}
public static string Version {
get {
return Defines.VERSION;
}
}
// Strange magic needed by Platform ()
[DllImport ("libc")]
static extern int uname (IntPtr buf);

View file

@ -1,29 +0,0 @@
// SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hylkebons@gmail.com>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
using System;
using System.IO;
using System.Collections.Generic;
using System.Xml;
using Mono.Unix;
namespace SparkleLib {
}

View file

@ -23,7 +23,6 @@ using MonoMac.Foundation;
using MonoMac.AppKit;
using MonoMac.ObjCRuntime;
using MonoMac.WebKit;
using SparkleLib;
namespace SparkleShare {
@ -101,7 +100,7 @@ namespace SparkleShare {
};
VersionTextField = new NSTextField () {
StringValue = Defines.VERSION,
StringValue = SparkleShare.Controller.Version,
Frame = new RectangleF (22, Frame.Height - 94, 318, 22),
BackgroundColor = NSColor.White,
Bordered = false,

View file

@ -21,7 +21,6 @@ using System.IO;
using System.Net;
using Gtk;
using SparkleLib;
using Mono.Unix;
namespace SparkleShare {
@ -76,7 +75,7 @@ namespace SparkleShare {
box.ModifyBg (StateType.Normal, new TreeView ().Style.Base (StateType.Normal));
Label header = new Label () {
Markup = "<span font_size='xx-large'>SparkleShare</span>\n<span fgcolor='" + secondary_text_color + "'><small>" + Defines.VERSION + "</small></span>",
Markup = "<span font_size='xx-large'>SparkleShare</span>\n<span fgcolor='" + secondary_text_color + "'><small>" + SparkleShare.SparkleController.Version + "</small></span>",
Xalign = 0,
Xpad = 18,
Ypad = 18

View file

@ -985,6 +985,13 @@ namespace SparkleShare {
}
public string Version {
get {
return SparkleBackend.Version;
}
}
public void CheckForNewVersion ()
{
WebClient web_client = new WebClient ();