From 6d43f5b888c71650a841cc6315a52e9dfda41aa4 Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.me.uk>
Date: Fri, 7 Oct 2022 20:30:21 +0100
Subject: [PATCH] Property static strings

---
 src/rugby-list-store.c         | 2 +-
 src/rugby-possibility-widget.c | 2 +-
 src/rugby-possibility.c        | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/rugby-list-store.c b/src/rugby-list-store.c
index 62ab1e6..8842642 100644
--- a/src/rugby-list-store.c
+++ b/src/rugby-list-store.c
@@ -195,7 +195,7 @@ rugby_list_store_class_init (RugbyListStoreClass *klass)
 
     properties[PROP_SCORE] = g_param_spec_int ("score", "", "",
                                                0, 200, 0,
-                                               G_PARAM_READWRITE);
+                                               G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
     g_object_class_install_properties (object_class,
                                        N_PROPS,
diff --git a/src/rugby-possibility-widget.c b/src/rugby-possibility-widget.c
index 784d708..ca6255a 100644
--- a/src/rugby-possibility-widget.c
+++ b/src/rugby-possibility-widget.c
@@ -177,7 +177,7 @@ rugby_possibility_widget_class_init (RugbyPossibilityWidgetClass *klass)
     properties[PROP_POSSIBILITY] =
         g_param_spec_object ("possibility", "", "",
                              RUGBY_TYPE_POSSIBILITY,
-                             G_PARAM_READWRITE);
+                             G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
     g_object_class_install_properties (object_class,
                                        N_PROPS,
diff --git a/src/rugby-possibility.c b/src/rugby-possibility.c
index 7bedabe..3356461 100644
--- a/src/rugby-possibility.c
+++ b/src/rugby-possibility.c
@@ -87,15 +87,15 @@ rugby_possibility_class_init (RugbyPossibilityClass *klass)
     properties[PROP_TRIES] =
         g_param_spec_int ("tries", "", "",
                           0, 200, 0,
-                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
     properties[PROP_UTRIES] =
         g_param_spec_int ("utries", "", "",
                           0, 200, 0,
-                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
     properties[PROP_KICKS] =
         g_param_spec_int ("kicks", "", "",
                           0, 200, 0,
-                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE);
+                          G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
 
     g_object_class_install_properties (object_class,
                                        N_PROPS,
-- 
GitLab