From c57cf08f745de5ee67175e9b50564514305b923d Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 11 Oct 2013 22:36:57 +0200 Subject: [PATCH] statusicon: Don't offer toggle notifications item on GNOME --- SparkleShare/Linux/SparkleStatusIcon.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SparkleShare/Linux/SparkleStatusIcon.cs b/SparkleShare/Linux/SparkleStatusIcon.cs index 01564a98..073bf22a 100644 --- a/SparkleShare/Linux/SparkleStatusIcon.cs +++ b/SparkleShare/Linux/SparkleStatusIcon.cs @@ -152,6 +152,8 @@ namespace SparkleShare { this.recent_events_item.Sensitive = Controller.RecentEventsItemEnabled; this.quit_item = new MenuItem ("Quit") { Sensitive = Controller.QuitItemEnabled }; MenuItem add_item = new MenuItem ("Add Hosted Project…"); + + #if HAVE_APP_INDICATOR MenuItem notify_item; if (Program.Controller.NotificationsEnabled) @@ -169,6 +171,7 @@ namespace SparkleShare { (notify_item.Child as Label).Text = "Turn Notifications On"; }); }; + #endif MenuItem link_code_item = new MenuItem ("Client ID"); @@ -196,8 +199,10 @@ namespace SparkleShare { folder_item.Submenu = new Menu (); (folder_item.Submenu as Menu).Add (this.recent_events_item); (folder_item.Submenu as Menu).Add (add_item); + #if HAVE_APP_INDICATOR (folder_item.Submenu as Menu).Add (new SeparatorMenuItem ()); (folder_item.Submenu as Menu).Add (notify_item); + #endif (folder_item.Submenu as Menu).Add (new SeparatorMenuItem ()); (folder_item.Submenu as Menu).Add (link_code_item); (folder_item.Submenu as Menu).Add (new SeparatorMenuItem ());