PhoshNotificationFrame

PhoshNotificationFrame — A frame containing one or more notifications

Functions

Properties

GStrv action-filter-keys Read / Write / Construct Only
gboolean show-body Read / Write / Construct Only

Signals

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── GtkBin
                    ╰── GtkEventBox
                        ╰── PhoshNotificationFrame

Implemented Interfaces

PhoshNotificationFrame implements AtkImplementorIface and GtkBuildable.

Description

Functions

phosh_notification_frame_new ()

GtkWidget *
phosh_notification_frame_new (gboolean show_body,
                              const char * const *action_filters);

phosh_notification_frame_bind_notification ()

void
phosh_notification_frame_bind_notification
                               (PhoshNotificationFrame *self,
                                PhoshNotification *notification);

Helper function for frames that only need to contain a single notification

Wraps phosh_notification_frame_bind_model() by placing notification in a PhoshNotificationSource

Parameters

self

the PhoshNotificationFrame

 

notification

a PhoshNotification

 

phosh_notification_frame_bind_model ()

void
phosh_notification_frame_bind_model (PhoshNotificationFrame *self,
                                     GListModel *model);

phosh_notification_frame_get_action_filter_keys ()

const char * const *
phosh_notification_frame_get_action_filter_keys
                               (PhoshNotificationFrame *self);

Types and Values

PHOSH_TYPE_NOTIFICATION_FRAME

#define PHOSH_TYPE_NOTIFICATION_FRAME (phosh_notification_frame_get_type ())

PhoshNotificationFrame

typedef struct _PhoshNotificationFrame PhoshNotificationFrame;

Property Details

The “action-filter-keys” property

  “action-filter-keys”       GStrv

The keys will be used to look up filter values in the applications desktop file. Actions starting with those values will be used on the lock screen.

Owner: PhoshNotificationFrame

Flags: Read / Write / Construct Only


The “show-body” property

  “show-body”                gboolean

Whether notificaions in this frame should show the notification body

Owner: PhoshNotificationFrame

Flags: Read / Write / Construct Only

Default value: TRUE

Signal Details

The “empty” signal

void
user_function (PhoshNotificationFrame *phoshnotificationframe,
               gpointer                user_data)

Flags: Run Last