Basics
Guides
API Reference
Basics
Guides
API Reference
[39:7] extends: object
GtkLockButton is a widget to obtain and revoke authorizations needed to
operate the controls.
GPermission object. Concrete implementations of GPermission may use
PolicyKit or some other authorization framework. To obtain a PolicyKit-based
GPermission, use polkit_permission_new(). If the user is not currently
allowed to perform the action, but can obtain the permission, the widget
looks like this:
LockButton (permission = null)
Creates a new lock button which reflects the @permission.
permission is a GPermission.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asButton ()
Wraps this handle as
Button.
A Button object.asAccessible ()
Wraps this handle as
Accessible.
A Accessible object.asActionable ()
Wraps this handle as
Actionable.
A Actionable object.asBuildable ()
Wraps this handle as
Buildable.
A Buildable object.asConstraintTarget ()
Wraps this handle as
ConstraintTarget.
A ConstraintTarget object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setPermission (object Value)
The `GPermission object controlling this button.
Value is the new property value.None.setTextlock (string Value)
The text to display when prompting the user to lock.
Value is the new property value.None.setTextunlock (string Value)
The text to display when prompting the user to unlock.
Value is the new property value.None.setTooltiplock (string Value)
The tooltip to display when prompting the user to lock.
Value is the new property value.None.setTooltipnotauthorized (string Value)
The tooltip to display when the user cannot obtain authorization.
Value is the new property value.None.setTooltipunlock (string Value)
The tooltip to display when prompting the user to unlock.
Value is the new property value.None.get_permission ()
Obtains the
GPermissionobject that controls @button.
set_permission (object permission)
Sets the
GPermissionobject that controls @button.
permission is a GPermission object.None.[280:14] static extends: object
Generated metadata helpers for LockButton class surfaces.
properties ()
Returns property metadata for
LockButton.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.