Branch: refs/heads/master Author: LiquidCake han132321@gmail.com Committer: LiquidCake han132321@gmail.com Date: Sun, 24 Nov 2024 16:56:43 UTC Commit: c32c92feaeb9724559e62251bb01d12be5afa59a https://github.com/geany/geany/commit/c32c92feaeb9724559e62251bb01d12be5afa5...
Log Message: ----------- persistent-temp-files-plugin: (persistent-untitled-documents) added function to API
Modified Paths: -------------- src/libmain.c src/main.h src/plugindata.h
Modified: src/libmain.c 12 lines changed, 12 insertions(+), 0 deletions(-) =================================================================== @@ -462,6 +462,18 @@ gboolean main_is_realized(void) }
+/** + * Checks whether Geany is 'closing all' documents right now. + * + * @return @c TRUE if the Geany is 'closing all' documents right now or @c FALSE otherwise. + **/ +GEANY_API_SYMBOL +gboolean geany_is_closing_all_documents(void) +{ + return main_status.closing_all; +} + + /** * Initialises the gettext translation system. * This is a convenience function to set up gettext for internationalisation support
Modified: src/main.h 2 lines changed, 2 insertions(+), 0 deletions(-) =================================================================== @@ -32,6 +32,8 @@ void main_locale_init(const gchar *locale_dir, const gchar *gettext_package);
gboolean main_is_realized(void);
+gboolean geany_is_closing_all_documents(void); +
#ifdef GEANY_PRIVATE
Modified: src/plugindata.h 2 lines changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -57,7 +57,7 @@ G_BEGIN_DECLS * @warning You should not test for values below 200 as previously * @c GEANY_API_VERSION was defined as an enum value, not a macro. */ -#define GEANY_API_VERSION 248 +#define GEANY_API_VERSION 249
/* hack to have a different ABI when built with different GTK major versions * because loading plugins linked to a different one leads to crashes.
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).