use icon for sparkleshare folder icon in menu

This commit is contained in:
Hylke Bons 2010-05-31 18:22:36 +02:00
parent 32dd91e4fa
commit 7367aa8c73

View file

@ -53,8 +53,10 @@ namespace SparkleShare {
Menu.Add (StatusItem); Menu.Add (StatusItem);
Menu.Add (new SeparatorMenuItem ()); Menu.Add (new SeparatorMenuItem ());
MenuItem OpenFolderItem = new MenuItem (_("SparkleShare Folder")); Action FolderAction = new Action("", "SparkleShare Folder");
OpenFolderItem.Activated += delegate { FolderAction.IconName = "folder-sparkleshare";
FolderAction.IsImportant = true;
FolderAction.Activated += delegate {
Process Process = new Process (); Process Process = new Process ();
switch (SparklePlatform.Name) { switch (SparklePlatform.Name) {
case "GNOME": case "GNOME":
@ -67,7 +69,7 @@ namespace SparkleShare {
Process.StartInfo.Arguments = SparklePaths.SparklePath; Process.StartInfo.Arguments = SparklePaths.SparklePath;
Process.Start(); Process.Start();
}; };
Menu.Add (OpenFolderItem); Menu.Add (FolderAction.CreateMenuItem ());
Action [] FolderItems = Action [] FolderItems =
new Action [SparkleShare.Repositories.Length]; new Action [SparkleShare.Repositories.Length];