From 9e094516bcaa1fb669c3f867605ea3671f9f0d81 Mon Sep 17 00:00:00 2001 From: Philipp Gildein Date: Fri, 11 Jun 2010 19:23:25 +0200 Subject: [PATCH] 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. --- SparkleShare/SparkleBubble.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleShare/SparkleBubble.cs b/SparkleShare/SparkleBubble.cs index b7189ad2..5064f261 100644 --- a/SparkleShare/SparkleBubble.cs +++ b/SparkleShare/SparkleBubble.cs @@ -29,6 +29,12 @@ namespace SparkleShare { 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); + } + } + } }