[tomboy] Add Synchronize Notes menu item to applet context menu (#597569)
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tomboy] Add Synchronize Notes menu item to applet context menu (#597569)
- Date: Mon, 16 Nov 2009 23:22:27 +0000 (UTC)
commit e835afa46882d740d1711c8f7a43efe0957ace28
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Mon Nov 16 15:07:51 2009 -0800
Add Synchronize Notes menu item to applet context menu (#597569)
Patches welcome to make this insensitive when sync is not configured.
Tomboy/Applet.cs | 6 ++++++
data/GNOME_TomboyApplet.xml | 3 +++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/Applet.cs b/Tomboy/Applet.cs
index b60e813..05c1973 100644
--- a/Tomboy/Applet.cs
+++ b/Tomboy/Applet.cs
@@ -59,6 +59,7 @@ namespace Tomboy
if (menu_verbs == null) {
menu_verbs = new BonoboUIVerb [] {
+ new BonoboUIVerb ("Sync", SyncVerb),
new BonoboUIVerb ("Props", ShowPreferencesVerb),
new BonoboUIVerb ("Help", ShowHelpVerb),
new BonoboUIVerb ("About", ShowAboutVerb)
@@ -86,6 +87,11 @@ namespace Tomboy
}
}
+ void SyncVerb ()
+ {
+ Tomboy.ActionManager ["NoteSynchronizationAction"].Activate ();
+ }
+
void ShowPreferencesVerb ()
{
Tomboy.ActionManager ["ShowPreferencesAction"].Activate ();
diff --git a/data/GNOME_TomboyApplet.xml b/data/GNOME_TomboyApplet.xml
index 072be72..146d569 100644
--- a/data/GNOME_TomboyApplet.xml
+++ b/data/GNOME_TomboyApplet.xml
@@ -1,4 +1,7 @@
<popup name="button3">
+ <menuitem name="Sync" verb="Sync" _label="S_ynchronize Notes"
+ pixtype="stock" pixname="gtk-convert"/>
+ <separator/>
<menuitem name="Props" verb="Props" _label="_Preferences"
pixtype="stock" pixname="gtk-preferences"/>
<menuitem name="Help" verb="Help" _label="_Help"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]