Skip to content
Snippets Groups Projects
Commit c3e5eb35 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Get rid of property nicks and blurbs

parent f0125edf
No related branches found
No related tags found
No related merge requests found
/*
* 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);
......
......@@ -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);
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment