[tomboy] When creating and modifying notes from dbus, ensure notes are saved
- From: Sanford Armstrong <sharm src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tomboy] When creating and modifying notes from dbus, ensure notes are saved
- Date: Mon, 16 Nov 2009 06:24:37 +0000 (UTC)
commit c041835a0dfa04d9d82b1be9f72157803043dc25
Author: Sandy Armstrong <sanfordarmstrong gmail com>
Date: Sun Nov 15 22:24:23 2009 -0800
When creating and modifying notes from dbus, ensure notes are saved
Tomboy/RemoteControl.cs | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/Tomboy/RemoteControl.cs b/Tomboy/RemoteControl.cs
index 13c9048..f135a58 100644
--- a/Tomboy/RemoteControl.cs
+++ b/Tomboy/RemoteControl.cs
@@ -98,6 +98,7 @@ namespace Tomboy
{
try {
Note note = note_manager.Create ();
+ note.QueueSave (ChangeType.ContentChanged);
return note.Uri;
} catch {
return string.Empty;
@@ -114,6 +115,7 @@ namespace Tomboy
try {
note = note_manager.Create (linked_title);
+ note.QueueSave (ChangeType.ContentChanged);
return note.Uri;
} catch {
return string.Empty;
@@ -143,6 +145,7 @@ namespace Tomboy
try {
note = note_manager.CreateWithGuid (linked_title, guid);
+ note.QueueSave (ChangeType.ContentChanged);
return note.Uri;
} catch {
return string.Empty;
@@ -298,6 +301,7 @@ namespace Tomboy
return false;
Tag tag = TagManager.GetOrCreateTag (tag_name);
note.AddTag (tag);
+ note.QueueSave (ChangeType.OtherDataChanged);
return true;
}
@@ -309,6 +313,7 @@ namespace Tomboy
Tag tag = TagManager.GetTag (tag_name);
if (tag != null)
note.RemoveTag (tag);
+ note.QueueSave (ChangeType.OtherDataChanged);
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]