[bubble] Comment out some lines to build on Mac

This commit is contained in:
Hylke Bons 2010-11-20 23:26:24 +00:00
parent 351cf041fc
commit 260f93ecc1

View file

@ -15,34 +15,37 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
using Gtk; using Gtk;
using Notifications;
using SparkleShare; using SparkleShare;
namespace 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) public SparkleBubble (string title, string subtext)
{ {
IconName = "folder-sparkleshare"; IconName = "folder-sparkleshare";
Timeout = 4500; Timeout = 4500;
Urgency = Urgency.Low; // Urgency = Urgency.Low;
AttachToStatusIcon (SparkleUI.StatusIcon); // AttachToStatusIcon (SparkleUI.StatusIcon);
} }
// Checks whether the system allows adding buttons to a notification, // Checks whether the system allows adding buttons to a notification,
// prevents error messages in Ubuntu. // 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) // if (System.Array.IndexOf (Notifications.Global.Capabilities, "actions") > -1)
base.AddAction (action, label, handler); // base.AddAction (action, label, handler);
} // }
} }