On Mon, 20 Feb 2012 22:40:50 +0100 Jiří Techet techet@gmail.com wrote:
On Mon, Feb 20, 2012 at 17:51, Dimitar Zhekov dimitar.zhekov@gmail.com wrote:
Since you are changing the project signals anyway, can you do me a favor and add an unconditional "project-before-save" signal in write_config, with the same arguments as "project-save"?
Currently we have document-before-save, and save-settings is before configuration saving (though that's not very helpful), but there's no "before" signal for the projects settings, and I need one for a plugin of mine.
Hi Dimitar,
what do you need the signal for? The project-save signal is actually emitted before g_key_file_to_data() is called so it is called before it's saved. I use this signal in my plugin too to add my own settings to the project file.
To (a) temporarily revert some file settings before a possible save- session-files and (b) ignore emit_signal, since session save does not depend on it.