Functions¶
|
|
|
|
|
|
|
|
|
Details¶
- GtkSessionLock.get_ext_session_lock_surface_v1(window)¶
- Parameters:
window (
Gtk.Window) – A lock surface.- Returns:
The underlying lock surface Wayland object
- Return type:
- GtkSessionLock.get_major_version()¶
- Returns:
the major version number of the GTK Session Lock library
- Return type:
- GtkSessionLock.get_micro_version()¶
- Returns:
the micro/patch version number of the GTK Session Lock library
- Return type:
- GtkSessionLock.get_minor_version()¶
- Returns:
the minor version number of the GTK Session Lock library
- Return type:
- GtkSessionLock.get_protocol_version()¶
- Returns:
version of the ext_session_lock_v1 protocol supported by the compositor or 0 if the protocol is not supported.
- Return type:
May block for a Wayland roundtrip the first time it’s called.
- GtkSessionLock.is_lock_window(window)¶
- Parameters:
window (
Gtk.Window) – AGtk.Windowthat may or may not have a lock surface.- Returns:
if window has been initialized as a lock surface.
- Return type:
- GtkSessionLock.is_supported()¶
- Returns:
Trueif the platform is Wayland and Wayland compositor supports the ext_session_lock_v1 protocol.- Return type:
May block for a Wayland roundtrip the first time it’s called.
- GtkSessionLock.prepare_lock()¶
- Returns:
A new #SessionLockLock.
- Return type:
Prepare a new #SessionLockLock. You should connect signals to it before calling its lock method.
- GtkSessionLock.unmap_lock_window(window)¶
- Parameters:
window (
Gtk.Window) –
If the given window is a lock window, unmap the surface. This must be called before the window is unmapped (e.g. hidden).
New in version 0.2.