From 8b4ccf3eb10d0563344e123f7f2c773bba120a2f Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 14 Mar 2007 04:50:06 +0000 Subject: 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 --- (limited to 'services/clipboard/clipboardobject.py') 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 -- cgit v0.9.1