cleanup unused code
This commit is contained in:
parent
52edee5585
commit
c8c8514d83
|
@ -20,7 +20,6 @@ SOURCES = \
|
|||
SparkleEntry.cs \
|
||||
SparkleEventLog.cs \
|
||||
SparkleEventLogController.cs \
|
||||
SparkleInvitation.cs \
|
||||
SparkleLinController.cs \
|
||||
SparkleSetup.cs \
|
||||
SparkleSetupController.cs \
|
||||
|
|
|
@ -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 ();
|
||||
});
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
|
@ -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>
|
||||
|
|
|
@ -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,29 +97,6 @@ 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
|
||||
|
|
Loading…
Reference in a new issue