Pms.OskLayoutPrefs

g Adw.PreferencesGroup Adw.PreferencesGroup Pms.OskLayoutPrefs Pms.OskLayoutPrefs Adw.PreferencesGroup->Pms.OskLayoutPrefs GObject.GInterface GObject.GInterface Gtk.Accessible Gtk.Accessible GObject.GInterface->Gtk.Accessible Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.ConstraintTarget Gtk.ConstraintTarget GObject.GInterface->Gtk.ConstraintTarget GObject.InitiallyUnowned GObject.InitiallyUnowned Gtk.Widget Gtk.Widget GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Accessible->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.ConstraintTarget->Gtk.Widget Gtk.Widget->Adw.PreferencesGroup

Subclasses:

None

Methods

Inherited:

Adw.PreferencesGroup (13), Gtk.Widget (183), GObject.Object (37), Gtk.Accessible (18), Gtk.Buildable (1)

Structs:

Gtk.WidgetClass (18), GObject.ObjectClass (5)

class

new ()

add_for_locale (locale, flavor)

load_osk_layouts ()

load_osk_layouts_async (cancellable, callback, *user_data)

load_osk_layouts_finish (res)

Virtual Methods

Inherited:

Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (7), Gtk.Buildable (9)

Properties

Inherited:

Adw.PreferencesGroup (4), Gtk.Widget (35), Gtk.Accessible (1)

Signals

Inherited:

Gtk.Widget (13), GObject.Object (1)

Fields

Inherited:

Gtk.Widget (13), GObject.Object (1)

Class Details

class Pms.OskLayoutPrefs(**kwargs)
Bases:

Adw.PreferencesGroup

Abstract:

No

Structure:

Pms.OskLayoutPrefsClass

A preferences group managing OSK layouts.

Layouts added via this dialog are automatically added to the list of input sources available to the user.

classmethod new()
Return type:

Pms.OskLayoutPrefs

add_for_locale(locale, flavor)
Parameters:
  • locale (str) – The locale to add a layout for

  • flavor (str or None) – A flavor if s.th. like dvorak or colemak is preferred

Returns:

TRUE if a layout was added or the layout is already present.

Return type:

bool

Add a layout based on the given information to the currently active layouts.

load_osk_layouts()

Load the layouts the currently running OSK can handle. This is a blocking sync call. See [MsOskLayouts.load_osk_layouts_async] for an async version.

load_osk_layouts_async(cancellable, callback, *user_data)
Parameters:

Load the layouts the currently running OSK can handle. This is an async call. Use ms_osk_layout_prefs_load_osk_layouts_async to retrieve the result.

load_osk_layouts_finish(res)
Parameters:

res (Gio.AsyncResult)

Raises:

GLib.Error

Return type:

bool