GtkSessionLock.Lock¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
The lock manager |
||
r/w |
The lock object |
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class GtkSessionLock.Lock(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- destroy()¶
Destory an inactive lock object. You should call this method only after receiving the finished signal.
- lock_lock()¶
Actually perform the locking operation. This should be run after connecting to this object’s signals.
The compositor will hide all surfaces except those created via the
GtkSessionLock.Lock.new_surfacemethod.
- new_surface(gtk_window, monitor)¶
- Parameters:
gtk_window (
Gtk.Window) –monitor (
Gdk.Monitor) –
This method must be called after
GtkSessionLock.Lock.lock_lock. If the session is locked successfully, the specified window will be shown on the given monitor. You must only ever call this method once for a given lock and monitor. The window will automatically be stretched to cover the entire screen.
- unlock_and_destroy()¶
Unlock an active session lock and dispose of it. It cannot be reused. You should generally call this method only after verifying a user’s identity.
Signal Details¶
- GtkSessionLock.Lock.signals.finished(lock)¶
- Signal Name:
finished- Flags:
- Parameters:
lock (
GtkSessionLock.Lock) – The object which received the signal
- GtkSessionLock.Lock.signals.locked(lock)¶
- Signal Name:
locked- Flags:
- Parameters:
lock (
GtkSessionLock.Lock) – The object which received the signal
Property Details¶
- GtkSessionLock.Lock.props.lock_manager¶
- Name:
lock-manager- Type:
- Default Value:
- Flags:
The lock manager