From c3e5eb3514496b827ad49eb4d640e2528c49199b Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.me.uk>
Date: Tue, 27 Apr 2021 12:04:31 +0100
Subject: [PATCH] Get rid of property nicks and blurbs

---
 src/rugby-list-store.c      | 6 ++----
 src/rugby-possibility-row.c | 7 ++-----
 src/rugby-possibility.c     | 9 ++++-----
 3 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/src/rugby-list-store.c b/src/rugby-list-store.c
index fedcb1a..9e2533e 100644
--- a/src/rugby-list-store.c
+++ b/src/rugby-list-store.c
@@ -1,5 +1,5 @@
 /*
- * SPDX-FileCopyrightText: 2018-2020 Bruce Cowan <bruce@bcowan.me.uk>
+ * SPDX-FileCopyrightText: 2018-2021 Bruce Cowan <bruce@bcowan.me.uk>
  *
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
@@ -217,9 +217,7 @@ rugby_list_store_class_init (RugbyListStoreClass *klass)
     object_class->get_property = rugby_list_store_get_property;
     object_class->set_property = rugby_list_store_set_property;
 
-    properties[PROP_SCORE] = g_param_spec_int ("score",
-                                               "Score",
-                                               "Score of the match",
+    properties[PROP_SCORE] = g_param_spec_int ("score", "", "",
                                                0, 200, 0,
                                                G_PARAM_READWRITE);
 
diff --git a/src/rugby-possibility-row.c b/src/rugby-possibility-row.c
index 13c7d8a..452fb6c 100644
--- a/src/rugby-possibility-row.c
+++ b/src/rugby-possibility-row.c
@@ -22,8 +22,7 @@ G_DEFINE_TYPE (RugbyPossibilityRow, rugby_possibility_row, GTK_TYPE_LIST_BOX_ROW
 
 enum
 {
-    PROP_0,
-    PROP_POSSIBILITY,
+    PROP_POSSIBILITY = 1,
     N_PROPS
 };
 
@@ -216,9 +215,7 @@ rugby_possibility_row_class_init (RugbyPossibilityRowClass *klass)
     widget_class->snapshot = rugby_possibility_row_snapshot;
 
     properties[PROP_POSSIBILITY] =
-        g_param_spec_object ("possibility",
-                             "Possibility",
-                             "Possibility to be represented",
+        g_param_spec_object ("possibility", "", "",
                              RUGBY_TYPE_POSSIBILITY,
                              G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
diff --git a/src/rugby-possibility.c b/src/rugby-possibility.c
index 08d4ad3..768a78c 100644
--- a/src/rugby-possibility.c
+++ b/src/rugby-possibility.c
@@ -20,8 +20,7 @@ G_DEFINE_TYPE (RugbyPossibility, rugby_possibility, G_TYPE_OBJECT)
 
 enum
 {
-    PROP_0,
-    PROP_TRIES,
+    PROP_TRIES = 1,
     PROP_UTRIES,
     PROP_KICKS,
     N_PROPS
@@ -86,15 +85,15 @@ rugby_possibility_class_init (RugbyPossibilityClass *klass)
     object_class->set_property = rugby_possibility_set_property;
 
     properties[PROP_TRIES] =
-        g_param_spec_int ("tries", "Tries", "Converted tries",
+        g_param_spec_int ("tries", "", "",
                           0, 200, 0,
                           G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
     properties[PROP_UTRIES] =
-        g_param_spec_int ("utries", "Utries", "Unconverted tries",
+        g_param_spec_int ("utries", "", "",
                           0, 200, 0,
                           G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
     properties[PROP_KICKS] =
-        g_param_spec_int ("kicks", "Kicks", "Penalties and drop goals",
+        g_param_spec_int ("kicks", "", "",
                           0, 200, 0,
                           G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
 
-- 
GitLab