[bubble] Comment out some lines to build on Mac
This commit is contained in:
parent
c798c59ab7
commit
f5db61808c
|
@ -15,34 +15,37 @@
|
|||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
using Gtk;
|
||||
using Notifications;
|
||||
using SparkleShare;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
public class SparkleBubble : Notification {
|
||||
public class SparkleBubble {
|
||||
|
||||
public int Timeout;
|
||||
public string IconName;
|
||||
public Gdk.Pixbuf Icon;
|
||||
|
||||
public SparkleBubble (string title, string subtext)
|
||||
{
|
||||
|
||||
IconName = "folder-sparkleshare";
|
||||
Timeout = 4500;
|
||||
Urgency = Urgency.Low;
|
||||
// Urgency = Urgency.Low;
|
||||
|
||||
AttachToStatusIcon (SparkleUI.StatusIcon);
|
||||
// AttachToStatusIcon (SparkleUI.StatusIcon);
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Checks whether the system allows adding buttons to a notification,
|
||||
// prevents error messages in Ubuntu.
|
||||
new public void AddAction (string action, string label, ActionHandler handler)
|
||||
{
|
||||
// new public void AddAction (string action, string label, ActionHandler handler)
|
||||
// {
|
||||
|
||||
if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1)
|
||||
base.AddAction (action, label, handler);
|
||||
|
||||
}
|
||||
// if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1)
|
||||
// base.AddAction (action, label, handler);
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue