| Top |
ESystemLocaleWatcher *
e_system_locale_watcher_new (void);
Creates a new ESystemLocaleWatcher instance, which listens for D-Bus notification on locale changes. It uses system bus, unless an environment variable "EDS_TESTING" is defined, in which case it uses the session bus instead.
Since: 3.30
gchar *
e_system_locale_watcher_dup_locale (ESystemLocaleWatcher *watcher);
Returns the current locale, as detected by the watcher
. The string
is duplicated for thread safety. It can be NULL, when the locale
was not detected yet.
Free it with g_free(), when no longer needed.
Since: 3.30