linux statusicon: Implement pause states and change icons
This commit is contained in:
parent
5f543b227e
commit
291d53f4d7
|
@ -148,14 +148,18 @@ namespace SparkleShare {
|
||||||
MenuItem resume_item;
|
MenuItem resume_item;
|
||||||
|
|
||||||
if (project.UnsyncedChangesInfo.Count > 0) {
|
if (project.UnsyncedChangesInfo.Count > 0) {
|
||||||
string icons_path = new string [] {SparkleUI.AssetsPath, "icons", "hicolor", "12x12", "status"}.Combine ();
|
string icons_path = new string [] {
|
||||||
|
SparkleUI.AssetsPath, "icons", "hicolor", "12x12", "status"}.Combine ();
|
||||||
|
|
||||||
foreach (KeyValuePair<string, string> pair in project.UnsyncedChangesInfo)
|
foreach (KeyValuePair<string, string> pair in project.UnsyncedChangesInfo) {
|
||||||
(item.Submenu as Menu).Add (new MenuItem (pair.Key) {
|
string icon_path = new string [] {
|
||||||
// Image = new Image () {
|
icons_path, pair.Value.Replace ("-12", "")}.Combine ();
|
||||||
// File = new string [] {icons_path, pair.Value.Replace ("-12", "")}.Combine () },
|
|
||||||
|
(item.Submenu as Menu).Add (new SparkleMenuItem (pair.Key) {
|
||||||
|
Image = new Image (icon_path),
|
||||||
Sensitive = false
|
Sensitive = false
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty (project.MoreUnsyncedChanges)) {
|
if (!string.IsNullOrEmpty (project.MoreUnsyncedChanges)) {
|
||||||
(item.Submenu as Menu).Add (new MenuItem (project.MoreUnsyncedChanges) {
|
(item.Submenu as Menu).Add (new MenuItem (project.MoreUnsyncedChanges) {
|
||||||
|
|
Loading…
Reference in a new issue