FcitxG.Watcher

g FcitxG.Watcher FcitxG.Watcher GObject.Object GObject.Object GObject.Object->FcitxG.Watcher

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_connection ()

get_service_name ()

is_service_available ()

set_watch_portal (watch)

unwatch ()

watch ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

availability-changed

Emit when connected to fcitx and created ic

Fields

Inherited:

GObject.Object (1)

Class Details

class FcitxG.Watcher(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

FcitxG.WatcherClass

A FcitxG.Watcher allow to create a input context via DBus

classmethod new()
Returns:

A newly allocated FcitxG.Watcher

Return type:

FcitxG.Watcher

New a FcitxG.Watcher

get_connection()
Returns:

Gio.DBusConnection for current connection

Return type:

Gio.DBusConnection

self: A FcitxG.Watcher Return the current Gio.DBusConnection

get_service_name()
Returns:

an available service name.

Return type:

str

is_service_available()
Return type:

bool

set_watch_portal(watch)
Parameters:

watch (bool) –

self: A FcitxG.Watcher watch: to monitor the portal service or not.

unwatch()

Unwatch for the fcitx serivce, should only be called after calling FcitxG.Watcher.watch.

watch()

Watch for the fcitx serivce.

Signal Details

FcitxG.Watcher.signals.availability_changed(watcher, available)
Signal Name:

availability-changed

Flags:

RUN_LAST

Parameters:
  • watcher (FcitxG.Watcher) – The object which received the signal

  • available (bool) – whether fcitx service is available.

Emit when connected to fcitx and created ic