set_state() could be called when there are still no formats.

This commit is contained in:
Tomeu Vizoso
2007-06-07 12:07:25 +01:00
parent fde3159002
commit 340fcc271d
2 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -46,11 +46,11 @@ class ClipboardPanelWindow(FrameWindow):
self.connect("drag_data_get", self._clipboard_box.drag_data_get_cb)
def _owner_change_cb(self, clipboard, event):
logging.debug("owner_change_cb")
if self._clipboard_box.owns_clipboard():
return
logging.debug("owner_change_cb")
cb_service = clipboardservice.get_instance()
key = cb_service.add_object(name="")
cb_service.set_object_percent(key, percent = 100)