polkitgtktypes

polkitgtktypes

Properties

gchar * action-id Read / Write / Construct Only
gboolean can-obtain Read
gboolean is-authorized Read
gboolean is-visible Read
gchar * text-lock Read / Write / Construct
gchar * text-lock-down Read / Write / Construct
gchar * text-not-authorized Read / Write / Construct
gchar * text-unlock Read / Write / Construct
gchar * tooltip-lock Read / Write / Construct
gchar * tooltip-lock-down Read / Write / Construct
gchar * tooltip-not-authorized Read / Write / Construct
gchar * tooltip-unlock Read / Write / Construct

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkObject
            ╰── GtkWidget
                ╰── GtkContainer
                    ╰── GtkBox
                        ╰── PolkitLockButton

Implemented Interfaces

PolkitLockButton implements AtkImplementorIface, GtkBuildable and GtkOrientable.

Description

Functions

Types and Values

PolkitLockButton

typedef struct _PolkitLockButton PolkitLockButton;

The PolkitLockButton structure contains only private data and should be accessed using the provided API.

Members

Property Details

The “action-id” property

  “action-id”                gchar *

The action identifier to use for the button.

Flags: Read / Write / Construct Only

Default value: NULL


The “can-obtain” property

  “can-obtain”               gboolean

Whether authorization can be obtained.

Flags: Read

Default value: FALSE


The “is-authorized” property

  “is-authorized”            gboolean

Whether the process is authorized.

Flags: Read

Default value: FALSE


The “is-visible” property

  “is-visible”               gboolean

Whether the widget is visible.

Flags: Read

Default value: TRUE


The “text-lock” property

  “text-lock”                gchar *

The text to display when prompting the user to lock.

Flags: Read / Write / Construct

Default value: "Click to prevent changes"


The “text-lock-down” property

  “text-lock-down”           gchar *

The text to display when prompting the user to lock down the action for all users.

Flags: Read / Write / Construct

Default value: "Click to lock down"


The “text-not-authorized” property

  “text-not-authorized”      gchar *

The text to display when the user cannot obtain authorization through authentication.

Flags: Read / Write / Construct

Default value: "Not authorized to make changes"


The “text-unlock” property

  “text-unlock”              gchar *

The text to display when prompting the user to unlock.

Flags: Read / Write / Construct

Default value: "Click to make changes"


The “tooltip-lock” property

  “tooltip-lock”             gchar *

The tooltip to display when prompting the user to lock.

Flags: Read / Write / Construct

Default value: "To prevent further changes, click the lock."


The “tooltip-lock-down” property

  “tooltip-lock-down”        gchar *

The tooltip to display when prompting the user to lock down the action for all users.

Flags: Read / Write / Construct

Default value: "To prevent users without administrative privileges from making changes, click the lock."


The “tooltip-not-authorized” property

  “tooltip-not-authorized”   gchar *

The tooltip to display when the user cannot obtain authorization through authentication.

Flags: Read / Write / Construct

Default value: "System policy prevents changes. Contact your system administator."


The “tooltip-unlock” property

  “tooltip-unlock”           gchar *

The tooltip to display when prompting the user to unlock.

Flags: Read / Write / Construct

Default value: "Authentication is needed to make changes."

Signal Details

The “changed” signal

void
user_function (PolkitLockButton *button,
               gpointer          user_data)

Emitted when something on button changes.

Parameters

button

A PolkitLockButton.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last