Speficify Gtk.Action explicitly to avoid conflct with System.Action
This commit is contained in:
parent
0332d500c1
commit
b6f18bccc6
|
@ -82,7 +82,7 @@ namespace SparkleShare {
|
||||||
Menu.Add (StatusMenuItem);
|
Menu.Add (StatusMenuItem);
|
||||||
Menu.Add (new SeparatorMenuItem ());
|
Menu.Add (new SeparatorMenuItem ());
|
||||||
|
|
||||||
Action FolderAction = new Action ("", "SparkleShare");
|
Gtk.Action FolderAction = new Gtk.Action ("", "SparkleShare");
|
||||||
FolderAction.IconName = "folder-sparkleshare";
|
FolderAction.IconName = "folder-sparkleshare";
|
||||||
FolderAction.IsImportant = true;
|
FolderAction.IsImportant = true;
|
||||||
FolderAction.Activated += delegate {
|
FolderAction.Activated += delegate {
|
||||||
|
@ -100,12 +100,12 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
Menu.Add (FolderAction.CreateMenuItem ());
|
Menu.Add (FolderAction.CreateMenuItem ());
|
||||||
|
|
||||||
Action [] FolderItems =
|
Gtk.Action [] FolderItems =
|
||||||
new Action [SparkleShare.Repositories.Length];
|
new Gtk.Action [SparkleShare.Repositories.Length];
|
||||||
|
|
||||||
int i = 0;
|
int i = 0;
|
||||||
foreach (SparkleRepo SparkleRepo in SparkleShare.Repositories) {
|
foreach (SparkleRepo SparkleRepo in SparkleShare.Repositories) {
|
||||||
FolderItems [i] = new Action ("", SparkleRepo.Name);
|
FolderItems [i] = new Gtk.Action ("", SparkleRepo.Name);
|
||||||
FolderItems [i].IconName = "folder";
|
FolderItems [i].IconName = "folder";
|
||||||
FolderItems [i].IsImportant = true;
|
FolderItems [i].IsImportant = true;
|
||||||
FolderItems [i].Activated += CreateWindowDelegate (SparkleRepo);
|
FolderItems [i].Activated += CreateWindowDelegate (SparkleRepo);
|
||||||
|
|
Loading…
Reference in a new issue