PhoshAppAuthPrompt

PhoshAppAuthPrompt — A system modal prompt to authorize applications

Functions

Properties

gchar * body Read / Write / Construct Only
gchar * deny-label Read / Write / Construct Only
gchar * grant-label Read / Write / Construct Only
GIcon * icon Read / Write / Construct Only
gboolean offer-remember Read / Write / Construct Only
gchar * subtitle Read / Write / Construct Only

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkWindow
                        ╰── PhoshLayerSurface
                            ╰── PhoshSystemModal
                                ╰── PhoshSystemModalDialog
                                    ╰── PhoshAppAuthPrompt

Implemented Interfaces

PhoshAppAuthPrompt implements AtkImplementorIface and GtkBuildable.

Description

The PhoshAppAuthPrompt is used to authorize applications. It's used by the PhoshLocationManager and will later on be used for org.freedesktop.impl.Access.

Functions

phosh_app_auth_prompt_new ()

GtkWidget *
phosh_app_auth_prompt_new (GIcon *icon,
                           const char *title,
                           const char *subtitle,
                           const char *body,
                           const char *grant_label,
                           const char *deny_label,
                           gboolean offer_remember);

phosh_app_auth_prompt_get_grant_access ()

gboolean
phosh_app_auth_prompt_get_grant_access
                               (GtkWidget *self);

phosh_app_auth_prompt_get_remember ()

gboolean
phosh_app_auth_prompt_get_remember (GtkWidget *self);

Types and Values

PHOSH_TYPE_APP_AUTH_PROMPT

#define PHOSH_TYPE_APP_AUTH_PROMPT (phosh_app_auth_prompt_get_type ())

PhoshAppAuthPrompt

typedef struct _PhoshAppAuthPrompt PhoshAppAuthPrompt;

Property Details

The “body” property

  “body”                     gchar *

The auth dialog body.

Flags: Read / Write / Construct Only

Default value: ""


The “deny-label” property

  “deny-label”               gchar *

The auth dialog's deny access button label.

Flags: Read / Write / Construct Only

Default value: ""


The “grant-label” property

  “grant-label”              gchar *

The auth dialog's grant access button label.

Flags: Read / Write / Construct Only

Default value: ""


The “icon” property

  “icon”                     GIcon *

The auth dialog icon.

Flags: Read / Write / Construct Only


The “offer-remember” property

  “offer-remember”           gboolean

Whether to offer to remember the auth decision result.

Flags: Read / Write / Construct Only

Default value: FALSE


The “subtitle” property

  “subtitle”                 gchar *

The auth dialog subtitle.

Flags: Read / Write / Construct Only

Default value: ""

Signal Details

The “closed” signal

void
user_function (PhoshAppAuthPrompt *phoshappauthprompt,
               gpointer            user_data)

Flags: Run Last