[gtksourceview/gtksourceview-4-8] mark: fix introspection for gtk_source_mark_new()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gtksourceview-4-8] mark: fix introspection for gtk_source_mark_new()
- Date: Wed, 21 Apr 2021 19:25:11 +0000 (UTC)
commit 5c724e2db7efb4998fcc7c659daafdbba9e832f2
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 21 12:24:39 2021 -0700
mark: fix introspection for gtk_source_mark_new()
Also clean some style up while we're here.
Fixes #184
gtksourceview/gtksourcemark.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/gtksourceview/gtksourcemark.c b/gtksourceview/gtksourcemark.c
index 447f03d1..ed0cfca7 100644
--- a/gtksourceview/gtksourcemark.c
+++ b/gtksourceview/gtksourcemark.c
@@ -155,11 +155,11 @@ gtk_source_mark_init (GtkSourceMark *mark)
/**
* gtk_source_mark_new:
- * @name: Name of the #GtkSourceMark, can be NULL when not using a name
+ * @name: (nullable): Name of the #GtkSourceMark or %NULL
* @category: is used to classify marks according to common characteristics
- * (e.g. all the marks representing a bookmark could belong to the "bookmark"
- * category, or all the marks representing a compilation error could belong to
- * "error" category).
+ * (e.g. all the marks representing a bookmark could belong to the "bookmark"
+ * category, or all the marks representing a compilation error could belong
+ * to "error" category).
*
* Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark().
* If name is NULL, the mark is anonymous; otherwise, the mark can be retrieved
@@ -173,15 +173,15 @@ gtk_source_mark_init (GtkSourceMark *mark)
*/
GtkSourceMark *
gtk_source_mark_new (const gchar *name,
- const gchar *category)
+ const gchar *category)
{
g_return_val_if_fail (category != NULL, NULL);
return GTK_SOURCE_MARK (g_object_new (GTK_SOURCE_TYPE_MARK,
- "category", category,
- "name", name,
- "left-gravity", TRUE,
- NULL));
+ "category", category,
+ "name", name,
+ "left-gravity", TRUE,
+ NULL));
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]