cleanup unused code

This commit is contained in:
Hylke Bons 2011-07-15 02:10:36 +01:00
parent c2a9692247
commit 6e7c2db4ba
6 changed files with 8 additions and 39 deletions

View file

@ -20,7 +20,6 @@ SOURCES = \
SparkleEntry.cs \
SparkleEventLog.cs \
SparkleEventLogController.cs \
SparkleInvitation.cs \
SparkleLinController.cs \
SparkleSetup.cs \
SparkleSetupController.cs \

View file

@ -68,8 +68,8 @@ namespace SparkleShare {
Controller.NewVersionEvent += delegate (string new_version) {
Application.Invoke (delegate {
this.updates.Markup = String.Format ("<span font_size='small' fgcolor='#f57900'>{0}: {1}</span>",
_("A newer version is available!"), new_version);
this.updates.Markup = String.Format ("<span font_size='small' fgcolor='#f57900'>{0}</span>",
String.Format (_("A newer version ({0}) is available!"), new_version));
this.updates.ShowAll ();
});
};

View file

@ -17,6 +17,7 @@
using Gtk;
// TODO: Remove with Gtk3
namespace SparkleShare {
public class SparkleEntry : Entry {
@ -33,7 +34,6 @@ namespace SparkleShare {
ClipboardPasted += delegate { OnEntered (); };
FocusOutEvent += delegate {
if (Text.Equals ("") || Text == null)
ExampleTextActive = true;

View file

@ -1,5 +0,0 @@

View file

@ -59,15 +59,10 @@
</MonoDevelop>
</ProjectExtensions>
<ItemGroup>
<Compile Include="SparkleAbout.cs" />
<Compile Include="SparkleAboutController.cs" />
<Compile Include="SparkleBubbles.cs" />
<Compile Include="SparkleBubblesController.cs" />
<Compile Include="SparkleController.cs" />
<Compile Include="SparkleEntry.cs" />
<Compile Include="SparkleEventLog.cs" />
<Compile Include="SparkleEventLogController.cs" />
<Compile Include="SparkleInvitation.cs" />
<Compile Include="SparkleLinController.cs" />
<Compile Include="SparkleSetup.cs" />
<Compile Include="SparkleSetupController.cs" />
@ -78,5 +73,9 @@
<Compile Include="SparkleStatusIconController.cs" />
<Compile Include="SparkleUI.cs" />
<Compile Include="SparkleUIHelpers.cs" />
<Compile Include="SparkleEventLogController.cs" />
<Compile Include="SparkleEventLog.cs" />
<Compile Include="SparkleAboutController.cs" />
<Compile Include="SparkleAbout.cs" />
</ItemGroup>
</Project>

View file

@ -66,7 +66,6 @@ namespace SparkleShare {
};
// Show a bubble when there are new changes
SparkleShare.Controller.NotificationRaised += delegate (string user_name, string user_email,
string message, string repository_path) {
@ -98,30 +97,7 @@ namespace SparkleShare {
// TODO new SparkleBubble (title, subtext).Show ();
});
};
SparkleShare.Controller.AvatarFetched += delegate {
Application.Invoke (delegate {
if (EventLog != null)
EventLog.UpdateEvents ();
});
};
SparkleShare.Controller.OnIdle += delegate {
Application.Invoke (delegate {
if (EventLog != null)
EventLog.UpdateEvents ();
});
};
SparkleShare.Controller.FolderListChanged += delegate {
Application.Invoke (delegate {
if (EventLog != null) {
EventLog.UpdateChooser ();
EventLog.UpdateEvents ();
}
});
};
}
}
// Runs the application
public void Run ()