polkitgtktypes

polkitgtktypes

Synopsis

                    PolkitLockButton;

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBox
                                 +----GtkHBox
                                       +----PolkitLockButton

Implemented Interfaces

PolkitLockButton implements GtkBuildable, AtkImplementorIface and GtkOrientable.

Properties

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

Signals

  "changed"                                        : Run Last

Description

Details

PolkitLockButton

typedef struct _PolkitLockButton PolkitLockButton;

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

Property Details

The "action-id" property

  "action-id"                gchar*                : Read / Write / Construct Only

The action identifier to use for the button.

Default value: NULL


The "can-obtain" property

  "can-obtain"               gboolean              : Read

Whether authorization can be obtained.

Default value: FALSE


The "is-authorized" property

  "is-authorized"            gboolean              : Read

Whether the process is authorized.

Default value: FALSE


The "is-visible" property

  "is-visible"               gboolean              : Read

Whether the widget is visible.

Default value: TRUE


The "text-lock" property

  "text-lock"                gchar*                : Read / Write / Construct

The text to display when prompting the user to lock.

Default value: "Click to prevent changes"


The "text-lock-down" property

  "text-lock-down"           gchar*                : Read / Write / Construct

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

Default value: "Click to lock down"


The "text-not-authorized" property

  "text-not-authorized"      gchar*                : Read / Write / Construct

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

Default value: "Not authorized to make changes"


The "text-unlock" property

  "text-unlock"              gchar*                : Read / Write / Construct

The text to display when prompting the user to unlock.

Default value: "Click to make changes"


The "tooltip-lock" property

  "tooltip-lock"             gchar*                : Read / Write / Construct

The tooltip to display when prompting the user to lock.

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


The "tooltip-lock-down" property

  "tooltip-lock-down"        gchar*                : Read / Write / Construct

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

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


The "tooltip-not-authorized" property

  "tooltip-not-authorized"   gchar*                : Read / Write / Construct

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

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


The "tooltip-unlock" property

  "tooltip-unlock"           gchar*                : Read / Write / Construct

The tooltip to display when prompting the user to unlock.

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

Signal Details

The "changed" signal

void                user_function                      (PolkitLockButton *button,
                                                        gpointer          user_data)      : Run Last

Emitted when something on button changes.

button :

A PolkitLockButton.

user_data :

user data set when the signal handler was connected.