From 6e1d5302edd54b07072f54dd7e99b46d41b2447a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 25 Sep 2023 15:13:44 -0400 Subject: [PATCH] docs: Move the GSignalGroup SECTION Move the contents to the struct docs. Helps: #3037 --- gobject/gsignalgroup.c | 21 ++++++++++----------- gobject/gsignalgroup.h | 8 -------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/gobject/gsignalgroup.c b/gobject/gsignalgroup.c index e773fc040..1afe91f89 100644 --- a/gobject/gsignalgroup.c +++ b/gobject/gsignalgroup.c @@ -28,13 +28,12 @@ #include "gvaluetypes.h" /** - * SECTION:gsignalgroup - * @Title: GSignalGroup - * @Short_description: Manage a collection of signals on a GObject + * GSignalGroup: * - * #GSignalGroup manages to simplify the process of connecting - * many signals to a #GObject as a group. As such there is no API - * to disconnect a signal from the group. + * `GSignalGroup` manages a collection of signals on a `GObject`. + * + * `GSignalGroup` simplifies the process of connecting many signals to a `GObject` + * as a group. As such there is no API to disconnect a signal from the group. * * In particular, this allows you to: * @@ -43,12 +42,12 @@ * - Block and unblock signals as a group * - Ensuring that blocked state transfers across target instances. * - * One place you might want to use such a structure is with #GtkTextView and - * #GtkTextBuffer. Often times, you'll need to connect to many signals on - * #GtkTextBuffer from a #GtkTextView subclass. This allows you to create a + * One place you might want to use such a structure is with `GtkTextView` and + * `GtkTextBuffer`. Often times, you'll need to connect to many signals on + * `GtkTextBuffer` from a `GtkTextView` subclass. This allows you to create a * signal group during instance construction, simply bind the - * #GtkTextView:buffer property to #GSignalGroup:target and connect - * all the signals you need. When the #GtkTextView:buffer property changes + * `GtkTextView:buffer` property to `GSignalGroup:target` and connect + * all the signals you need. When the `GtkTextView:buffer` property changes * all of the signals will be transitioned correctly. * * Since: 2.72 diff --git a/gobject/gsignalgroup.h b/gobject/gsignalgroup.h index 6aa151ca4..38fd2e032 100644 --- a/gobject/gsignalgroup.h +++ b/gobject/gsignalgroup.h @@ -36,14 +36,6 @@ G_BEGIN_DECLS #define G_IS_SIGNAL_GROUP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), G_TYPE_SIGNAL_GROUP)) #define G_TYPE_SIGNAL_GROUP (g_signal_group_get_type()) -/** - * GSignalGroup: - * - * #GSignalGroup is an opaque structure whose members - * cannot be accessed directly. - * - * Since: 2.72 - */ typedef struct _GSignalGroup GSignalGroup; GOBJECT_AVAILABLE_IN_2_72