Main program-related commands. More...
|Checks whether the main window has been realized. More...|
|void||main_locale_init (const gchar *locale_dir, const gchar *gettext_package)|
|Initialises the gettext translation system. More...|
|G_BEGIN_DECLS void||main_reload_configuration (void)|
|Reloads most of Geany's configuration files without restarting. More...|
Main program-related commands.
Handles program initialization and cleanup.
Checks whether the main window has been realized.
This is an easy indicator whether Geany is right now starting up (main window is not yet realized) or whether it has finished the startup process (main window is realized). This is because the main window is realized (i.e. actually drawn on the screen) at the end of the startup process.
"geany-startup-complete"signal to get notified about the completed startup process.
TRUEif the Geany main window has been realized or
|void main_locale_init||(||const gchar *||locale_dir,|
|const gchar *||package|
Initialises the gettext translation system.
This is a convenience function to set up gettext for internationalisation support in external plugins. You should call this function early in plugin_init(). If the macro HAVE_LOCALE_H is defined,
setlocale(LC_ALL, "") is called. The codeset for the message translations is set to UTF-8.
Note that this function only setups the gettext textdomain for you. You still have to adjust the build system of your plugin to get internationalisation support working properly.
|locale_dir||The location where the translation files should be searched. This is usually the |
|package||The package name, usually this is the |
|G_BEGIN_DECLS void main_reload_configuration||(||void||)|
Reloads most of Geany's configuration files without restarting.
Currently the following files are reloaded: all template files, also new file templates and the 'New (with template)' menus will be updated, Snippets (snippets.conf), filetype extensions (filetype_extensions.conf), and 'settings' and 'build_settings' sections of the filetype definition files.
Plugins may call this function if they changed any of these files (e.g. a configuration file editor plugin).