summaryrefslogtreecommitdiff
path: root/libnotify/notify.c
diff options
context:
space:
mode:
authorMaximiliano Sandoval R <msandova@gnome.org>2022-07-14 18:27:50 +0200
committerMaximiliano Sandoval R <msandova@gnome.org>2022-12-14 21:02:14 +0100
commit569d82feb50b012ef1930149cd6ef6668811df08 (patch)
tree49d3abd05f1f8fe66c36893ff34a44f6e8f89558 /libnotify/notify.c
parent54d153efb64b8cb97e8306bcf5a2299fb5bed5b5 (diff)
downloadlibnotify-569d82feb50b012ef1930149cd6ef6668811df08.tar.gz
docs: Port to gi-docgen
Fixes: https://gitlab.gnome.org/GNOME/libnotify/-/issues/26
Diffstat (limited to 'libnotify/notify.c')
-rw-r--r--libnotify/notify.c28
1 files changed, 13 insertions, 15 deletions
diff --git a/libnotify/notify.c b/libnotify/notify.c
index 362ba3d..ee98ba2 100644
--- a/libnotify/notify.c
+++ b/libnotify/notify.c
@@ -35,12 +35,6 @@
#include "internal.h"
#include "notify-marshal.h"
-/**
- * SECTION:notify
- * @Short_description: Notification API
- * @Title: notify
- */
-
static gboolean _initted = FALSE;
static char *_app_name = NULL;
static char *_snap_name = NULL;
@@ -432,7 +426,7 @@ _notify_uses_portal_notifications (void)
*
* Gets the application name registered.
*
- * Returns: The registered application name, passed to notify_init().
+ * Returns: The registered application name, passed to [func@init].
*/
const char *
notify_get_app_name (void)
@@ -443,7 +437,7 @@ notify_get_app_name (void)
/**
* notify_uninit:
*
- * Uninitialized libnotify.
+ * Uninitializes libnotify.
*
* This should be called when the program no longer needs libnotify for
* the rest of its lifecycle, typically just before exitting.
@@ -592,10 +586,12 @@ out:
/**
* notify_get_server_caps:
*
- * Synchronously queries the server for its capabilities and returns them in a #GList.
+ * Queries the server capabilities.
*
- * Returns: (transfer full) (element-type utf8): a #GList of server capability strings. Free
- * the list elements with g_free() and the list itself with g_list_free().
+ * Synchronously queries the server for its capabilities and returns them in a
+ * list.
+ *
+ * Returns: (transfer full) (element-type utf8): a list of server capability strings.
*/
GList *
notify_get_server_caps (void)
@@ -654,12 +650,14 @@ notify_get_server_caps (void)
* @ret_version: (out) (allow-none) (transfer full): a location to store the server version, or %NULL
* @ret_spec_version: (out) (allow-none) (transfer full): a location to store the version the service is compliant with, or %NULL
*
- * Synchronously queries the server for its information, specifically, the name, vendor,
- * server version, and the version of the notifications specification that it
- * is compliant with.
+ * Queries the server for information.
+ *
+ * Synchronously queries the server for its information, specifically, the name,
+ * vendor, server version, and the version of the notifications specification
+ * that it is compliant with.
*
* Returns: %TRUE if successful, and the variables passed will be set, %FALSE
- * on error. The returned strings must be freed with g_free
+ * on error. The returned strings must be freed with g_free
*/
gboolean
notify_get_server_info (char **ret_name,