use icon for sparkleshare folder icon in menu
This commit is contained in:
parent
a0f89110b2
commit
90eda6daf6
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue