Add some default values for the configuration

This commit is contained in:
Gergely Polonkai 2016-07-06 12:21:18 +02:00
parent 3ddf85f38b
commit 471c7f5f87

View File

@ -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;
}