g_application_activate
g_application_open
<SUBSECTION>
+g_application_send_notification
+g_application_withdraw_notification
+<SUBSECTION>
g_application_run
g_application_set_default
g_application_get_default
G_TYPE_SUBPROCESS_LAUNCHER
g_subprocess_launcher_get_type
</SECTION>
+
+<SECTION>
+<FILE>gnotification</FILE>
+<TITLE>GNotification</TITLE>
+GNotification
+g_notification_new
+<SUBSECTION>
+g_notification_set_title
+g_notification_set_body
+g_notification_set_icon
+g_notification_set_urgent
+<SUBSECTION>
+g_notification_set_default_action
+g_notification_set_default_action_and_target
+g_notification_set_default_action_and_target_value
+<SUBSECTION>
+g_notification_add_button
+g_notification_add_button_with_target
+g_notification_add_button_with_target_value
+<SUBSECTION Standard>
+G_IS_NOTIFICATION
+G_NOTIFICATION
+G_TYPE_NOTIFICATION
+G_TYPE_NOTIFICATION_BACKEND
+g_notification_get_type
+</SECTION>
#include "gicon.h"
#include "gaction.h"
+/**
+ * SECTION:gnotification
+ * @short_description: User Notifications (pop up messages)
+ *
+ * #GNotification is a mechanism for creating a notification to be shown
+ * to the user -- typically as a pop-up notification presented by the
+ * desktop environment shell.
+ *
+ * The key difference between #GNotification and other similar APIs is
+ * that, if supported by the desktop environment, notifications sent
+ * with #GNotification will persist after the application has exited,
+ * and even across system reboots.
+ *
+ * Since the user may click on a notification while the application is
+ * not running, applications using #GNotification should be able to be
+ * started as a D-Bus service, using #GApplication.
+ *
+ * User interaction with a notification (either the default action, or
+ * buttons) must be associated with actions on the application (ie:
+ * "app." actions). It is not possible to route user interaction
+ * through the notification itself, because the object will not exist if
+ * the application is autostarted as a result of a notification being
+ * clicked.
+ *
+ * A notification can be sent with g_application_send_notification().
+ *
+ * Since: 2.40
+ **/
+
+/**
+ * GNotification:
+ *
+ * This structure type is private and should only be accessed using the
+ * public APIs.
+ *
+ * Since: 2.40
+ **/
+
typedef GObjectClass GNotificationClass;
struct _GNotification
return notification;
}
-/**
+/*< private >
* g_notification_get_title:
* @notification: a #GNotification
*
/**
* g_notification_set_title:
* @notification: a #GNotification
- * title: the new title for @notification
+ * @title: the new title for @notification
*
* Sets the title of @notification to @title.
*
notification->title = g_strdup (title);
}
-/**
+/*< private >
* g_notification_get_body:
* @notification: a #GNotification
*
notification->body = g_strdup (body);
}
-/**
+/*< private >
* g_notification_get_icon:
* @notification: a #GNotification
*
notification->icon = g_object_ref (icon);
}
-/**
+/*< private >
* g_notification_get_urgent:
* @notification: a #GNotification
*