Fix a warning.

This commit is contained in:
Tomeu Vizoso 2007-08-18 19:15:10 +02:00
parent bd2dd7e57c
commit 08cd44dbe2

View File

@ -163,19 +163,22 @@ class ClipboardMenu(Palette):
return return
jobject = self._copy_to_journal() jobject = self._copy_to_journal()
jobject.resume(self._activities[0]) jobject.resume(self._activities[0])
jobject.destroy()
def _open_submenu_item_activate_cb(self, menu_item, service_name): def _open_submenu_item_activate_cb(self, menu_item, service_name):
if self._percent < 100: if self._percent < 100:
return return
jobject = self._copy_to_journal() jobject = self._copy_to_journal()
jobject.resume(service_name) jobject.resume(service_name)
jobject.destroy()
def _remove_item_activate_cb(self, menu_item): def _remove_item_activate_cb(self, menu_item):
cb_service = clipboardservice.get_instance() cb_service = clipboardservice.get_instance()
cb_service.delete_object(self._object_id) cb_service.delete_object(self._object_id)
def _journal_item_activate_cb(self, menu_item): def _journal_item_activate_cb(self, menu_item):
self._copy_to_journal() jobject = self._copy_to_journal()
jobject.destroy()
def _copy_to_journal(self): def _copy_to_journal(self):
cb_service = clipboardservice.get_instance() cb_service = clipboardservice.get_instance()