tmpcommit

This commit is contained in:
Hylke Bons 2010-09-11 17:03:28 +01:00
parent 81d1b9c699
commit 84b069419f
3 changed files with 51 additions and 7 deletions

View file

@ -0,0 +1,31 @@
// SparkleShare, an instant update workflow to Git.
// 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 Meebey.SmartIrc4net;
using System;
using System.Collections.Generic;
using System.Text;
namespace SparkleLib {
public class SparkleListener
{
}
}

View file

@ -74,8 +74,8 @@ namespace SparkleLib {
public SparkleRepo (string path)
{
if (!Directory.Exists (path))
Directory.CreateDirectory (path);
SparkleListener listener = new SparkleListener ();
LocalPath = path;
Name = Path.GetFileName (LocalPath);

View file

@ -416,8 +416,14 @@ namespace SparkleShare {
Repositories.Add (repo);
if (StatusIcon != null)
Application.Invoke (delegate { StatusIcon.CreateMenu (); });
if (StatusIcon != null) {
Application.Invoke (delegate {
StatusIcon.CreateMenu ();
StatusIcon.ShowState ();
});
}
}
@ -441,8 +447,14 @@ namespace SparkleShare {
}
if (StatusIcon != null)
Application.Invoke (delegate { StatusIcon.CreateMenu (); });
if (StatusIcon != null) {
Application.Invoke (delegate {
StatusIcon.CreateMenu ();
StatusIcon.ShowState ();
});
}
}
@ -457,7 +469,8 @@ namespace SparkleShare {
foreach (string folder_path in Directory.GetDirectories (SparklePaths.SparklePath))
AddRepository (folder_path);
StatusIcon.ShowState ();
if (StatusIcon != null)
StatusIcon.ShowState ();
}