GNOME Bugzilla – Bug 580525
Patch to add CreateNamedNoteWithGuid to dbus RemoteControl
Last modified: 2009-11-15 23:46:43 UTC
I've written a patch to make it so you can create a new note, while specifying the name and guid the note will have.
Created attachment 133461 [details] [review] patch mentioned in bug The CreateNamedNoteWithGuid method will return "" if there is another note that has the same title or guid.
Created attachment 133466 [details] [review] Better patch for CreateNamedNoteWithUri I was looking at the tomboy source more. It looks like the dbus methods all prefer to use URIs rather than Guids or Uuids. So this is a new patch to use Uris rather than Guids. Sorry about patch duping. This one is better.
*** Bug 591906 has been marked as a duplicate of this bug. ***
Created attachment 147826 [details] [review] for new trunk, less white space, and another try-catch.
Review of attachment 147826 [details] [review]: One minor change, then this is good to go. ::: Tomboy/RemoteControl.cs @@ +126,3 @@ + Note note; + { + public string CreateNamedNoteWithUri (string linked_title, string uri) I'd like to see a String.IsNullOrEmpty check on guid before proceeding to the next step.
Created attachment 147827 [details] [review] String.IsNullOrEmpty check on guid
Thanks for your patience, pushed to master.
Excellent. Thankyou, Thankyou, Thankyou!