statusicon: revert to toggline notifications menu item for linux
This commit is contained in:
parent
b0f94c2f2b
commit
f206f44ba3
|
@ -218,12 +218,23 @@ namespace SparkleShare {
|
|||
this.menu.Add (this.recent_events_item);
|
||||
this.menu.Add (new SeparatorMenuItem ());
|
||||
|
||||
CheckMenuItem notify_item = new CheckMenuItem (_("Notifications")) {
|
||||
Active = (Controller.Folders.Length > 0 && Program.Controller.NotificationsEnabled)
|
||||
};
|
||||
|
||||
|
||||
MenuItem notify_item;
|
||||
|
||||
if (Program.Controller.NotificationsEnabled)
|
||||
notify_item = new MenuItem (_("Turn Notifications Off"));
|
||||
else
|
||||
notify_item = new MenuItem (_("Turn Notifications On"));
|
||||
|
||||
notify_item.Activated += delegate {
|
||||
Program.Controller.ToggleNotifications ();
|
||||
Application.Invoke (delegate {
|
||||
Program.Controller.ToggleNotifications ();
|
||||
|
||||
if (Program.Controller.NotificationsEnabled)
|
||||
(notify_item.Child as Label).Text = _("Turn Notifications Off");
|
||||
else
|
||||
(notify_item.Child as Label).Text = _("Turn Notifications On");
|
||||
});
|
||||
};
|
||||
|
||||
this.menu.Add (notify_item);
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
dnl Process this file with autoconf to produce a configure script.
|
||||
m4_define([sparkleshare_version],
|
||||
[0.8.4])
|
||||
[0.9.0])
|
||||
|
||||
m4_define([sparkleshare_asm_version],
|
||||
[0.8.4])
|
||||
[0.9.0])
|
||||
|
||||
AC_PREREQ([2.54])
|
||||
AC_INIT([SparkleShare], sparkleshare_version)
|
||||
|
|
|
@ -3,15 +3,17 @@ dist_plugins_in_files = \
|
|||
github.xml.in \
|
||||
gitorious.xml.in \
|
||||
gnome.xml.in \
|
||||
ssnet.xml.in \
|
||||
own-server.xml.in
|
||||
|
||||
dist_plugins_DATA = \
|
||||
$(dist_plugins_in_files:.xml.in=.xml) \
|
||||
github.png \
|
||||
gitorious.png \
|
||||
bitbucket.png \
|
||||
gnome.png \
|
||||
own-server.png
|
||||
gitorious.png \
|
||||
bitbucket.png \
|
||||
gnome.png \
|
||||
ssnet.png \
|
||||
own-server.png
|
||||
|
||||
@INTLTOOL_XML_RULE@
|
||||
|
||||
|
|
Loading…
Reference in a new issue