PhoshNotifyManager

PhoshNotifyManager — Provides the org.freedesktop.Notification DBus interface

Functions

Signals

void new-notification Run Last

Types and Values

Object Hierarchy

    GObject
    ╰── GDBusInterfaceSkeleton
        ╰── PhoshNotifyDbusNotificationsSkeleton
            ╰── PhoshNotifyManager

Implemented Interfaces

PhoshNotifyManager implements GDBusInterface and PhoshNotifyDbusNotifications.

Description

See https://developer.gnome.org/notification-spec/

Functions

phosh_notify_manager_get_default ()

PhoshNotifyManager *
phosh_notify_manager_get_default (void);

phosh_notify_manager_get_list ()

PhoshNotificationList *
phosh_notify_manager_get_list (PhoshNotifyManager *self);

Get the PhoshNotificationList of current notifications

Parameters

self

the PhoshNotifyManager

 

Returns

the PhoshNotificationList


phosh_notify_manager_get_show_banners ()

gboolean
phosh_notify_manager_get_show_banners (PhoshNotifyManager *self);

Are notififcation banners enabled

Parameters

self

the PhoshNotifyManager

 

Returns

TRUE if banners should be shown, otherwise FALSE

Types and Values

PHOSH_TYPE_NOTIFY_MANAGER

#define PHOSH_TYPE_NOTIFY_MANAGER             (phosh_notify_manager_get_type ())

PhoshNotifyManager

typedef struct _PhoshNotifyManager PhoshNotifyManager;

Signal Details

The “new-notification” signal

void
user_function (PhoshNotifyManager *self,
               PhoshNotification  *notification,
               gpointer            user_data)

Emitted when a new notification is received and a banner should (possibly) be shown

Parameters

self

the PhoshNotifyManager

 

notification

the new PhoshNotification

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last