[gedit-list] What is the correct way of saving a file with a plugin?



Hello,
the code I want to use to save a file ist like this:

docs = self._window.get_unsaved_documents()
for document in docs:
  document.save("preserve-backup")
return


After the code is executed, I get the following error message:

** (gedit:7617): CRITICAL **: document_saving: assertion `tab->priv->state == GEDIT_TAB_STATE_SAVING' failed

** (gedit:7617): CRITICAL **: document_saved: assertion `tab->priv->state == GEDIT_TAB_STATE_SAVING' failed

Das anybody know what I am doing wrong?

Thanks in advance.

Macco
--
Comming soon: FussballNZ - Das Fussballnetzwerk (http://www.fussballnz.de)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]