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



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
-- 
View this message in context: http://www.nabble.com/What-ist-the-correct-way-of-saving-a-file-with-a-plugin--tp15656457p15656457.html
Sent from the Gnome - Gedit mailing list archive at Nabble.com.



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