[gedit-list] What is the correct way of saving a file with a plugin?
- From: "Marco Laspe" <macco gmx net>
- To: gedit-list gnome org
- Subject: [gedit-list] What is the correct way of saving a file with a plugin?
- Date: Mon, 25 Feb 2008 19:38:16 +0100
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]