Only add actions if the notification system permits it
Fixes ugly dialogs in Ubuntu > 9.04. Changing the instructions in the bubbles would help the usability on such systems though.
This commit is contained in:
parent
6dcfd959c5
commit
b5c3a9aa82
|
@ -29,6 +29,12 @@ namespace SparkleShare {
|
||||||
AttachToStatusIcon (SparkleUI.NotificationIcon);
|
AttachToStatusIcon (SparkleUI.NotificationIcon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
new public void AddAction (string action, string label, ActionHandler handler) {
|
||||||
|
if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1) {
|
||||||
|
base.AddAction(action, label, handler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue