From 471c7f5f87721aba73b072710ec1b87e96b971c3 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Wed, 6 Jul 2016 12:21:18 +0200 Subject: [PATCH] Add some default values for the configuration --- wmud/wmud-configuration.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wmud/wmud-configuration.c b/wmud/wmud-configuration.c index f0c383c..d72b8dd 100644 --- a/wmud/wmud-configuration.c +++ b/wmud/wmud-configuration.c @@ -120,8 +120,13 @@ wmud_configuration_new(void) { WmudConfiguration *configuration = g_object_new( WMUD_TYPE_CONFIGURATION, NULL); + WmudConfigurationPrivate *priv = wmud_configuration_get_instance_private( + configuration); - // TODO: Update with built-in defaults + priv->maximum_group_size = g_new(gint, 1); + *(priv->maximum_group_size) = 5; + priv->reborn = g_new(gboolean, 1); + *(priv->reborn) = TRUE; return configuration; }