[hamster-applet] for completeness added also means to update tags via dbus
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] for completeness added also means to update tags via dbus
- Date: Thu, 4 Feb 2010 15:12:40 +0000 (UTC)
commit 66e868b2305ba8b15cf185220fab12bb7579d943
Author: Toms Bauģis <toms baugis gmail com>
Date: Thu Feb 4 15:12:32 2010 +0000
for completeness added also means to update tags via dbus
src/hamster/hamsterdbus.py | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster/hamsterdbus.py b/src/hamster/hamsterdbus.py
index 8dfcbaf..8a6a355 100644
--- a/src/hamster/hamsterdbus.py
+++ b/src/hamster/hamsterdbus.py
@@ -155,6 +155,17 @@ class HamsterDbusController(dbus.service.Object):
tags.append(tag['name'] or '')
return tags
+ @dbus.service.method(HAMSTER_URI, in_signature='s')
+ def SetAutocompleteTags(self, tags):
+ """Update autocomplete tags with the given comma-delimited list.
+ If a tag is gone missing, it will be deleted if it has not been used.
+ If it has been used, it will be marked as not to be used in autocomplete
+ (and revived on first use). New tags will just appear.
+ Parameters:
+ s tags: Comma-separated tags ("tag1, tag2, tag3, and so, on")
+ """
+ runtime.storage.update_autocomplete_tags(tags)
+
@dbus.service.method(HAMSTER_URI, out_signature='ss')
def GetCurrentActivity(self):
"""Returns the Activity currently being used, or blanks if Hamster is not tracking currently
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]