diff options
author | Dan Williams <dcbw@redhat.com> | 2007-03-14 04:50:06 (GMT) |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2007-03-14 04:50:06 (GMT) |
commit | 8b4ccf3eb10d0563344e123f7f2c773bba120a2f (patch) | |
tree | 7941f4122ecbda4ace3299b147b898b41aafd758 /services/clipboard/clipboardobject.py | |
parent | bfe04c2073f696fd6dd7c6edb12f34d17433dfbe (diff) |
Cleanup clipboard D-Bus API
- The clipboard now determines each objects unique id and
returns it from add_object()
- The ID is opaque to the client and should not be used/accessed
other than with the clipboard service
- Add object type hints for dbus-python
- Sugar clipboard bindings for get_object() now return a dict rather
than a tuple
- ClipboardIcon now retrieves the real file path and uses that
to open the file
- Adapt sugar bits to clipboard changes
Diffstat (limited to 'services/clipboard/clipboardobject.py')
-rw-r--r-- | services/clipboard/clipboardobject.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/services/clipboard/clipboardobject.py b/services/clipboard/clipboardobject.py index 5fe18b7..af8ba5f 100644 --- a/services/clipboard/clipboardobject.py +++ b/services/clipboard/clipboardobject.py @@ -2,12 +2,12 @@ import typeregistry class ClipboardObject: - def __init__(self, id, name): - self._id = id + def __init__(self, object_path, name): + self._id = object_path self._name = name self._percent = 0 self._formats = {} - + def get_id(self): return self._id |