EDataBook.SystemLocaleWatcher

g EDataBook.SystemLocaleWatcher EDataBook.SystemLocaleWatcher GObject.Object GObject.Object GObject.Object->EDataBook.SystemLocaleWatcher

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new ()
  dup_locale ()

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
locale str r  

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class EDataBook.SystemLocaleWatcher(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:EDataBook.SystemLocaleWatcherClass

Contains only private data that should be read and manipulated using the functions below.

classmethod new()
Returns:a new EDataBook.SystemLocaleWatcher
Return type:EDataBook.SystemLocaleWatcher

Creates a new EDataBook.SystemLocaleWatcher 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.

New in version 3.30.

dup_locale()
Returns:the system locale, as detected by the self
Return type:str or None

Returns the current locale, as detected by the self. The string is duplicated for thread safety. It can be None, when the locale was not detected yet.

Free it with GLib.free(), when no longer needed.

New in version 3.30.

Property Details

EDataBook.SystemLocaleWatcher.props.locale
Name:locale
Type:str
Default Value:None
Flags:READABLE

Current locale, as detected. It can be None, when the locale was not detected yet.

New in version 3.30.