* Returns: the newly created #ZakFormIniProvider object.
*/
ZakFormIniProvider
-*zak_form_ini_provider_new (GKeyFile *kfile, const gchar *group)
+*zak_form_ini_provider_new_from_gkeyfile (GKeyFile *kfile, const gchar *group)
{
ZakFormIniProvider *zak_form_ini_provider;
ZakFormIniProviderPrivate *priv;
return zak_form_ini_provider;
}
+/**
+ * zak_form_ini_provider_new_from_file:
+ * @filename:
+ * @group:
+ *
+ * Returns: the newly created #ZakFormIniProvider object.
+ */
+ZakFormIniProvider
+*zak_form_ini_provider_new_from_file (const gchar *filename, const gchar *group)
+{
+ GKeyFile *kfile;
+
+ ZakFormIniProvider *zak_form_ini_provider;
+
+ kfile = g_key_file_new ();
+ g_key_file_load_from_file (kfile, filename, G_KEY_FILE_NONE, NULL);
+ zak_form_ini_provider = zak_form_ini_provider_new_from_gkeyfile (kfile, group);
+
+ return zak_form_ini_provider;
+}
+
/* PRIVATE */
static void
zak_form_ini_provider_set_property (GObject *object,
if (gdt == NULL)
{
- ret = gda_value_new_null ();
+ ret = zak_utils_gvalue_new_string ("");
}
else
{
if (gdt == NULL)
{
- ret = gda_value_new_null ();
+ ret = zak_utils_gvalue_new_string ("");
}
else
{
if (gdt == NULL)
{
- ret = gda_value_new_null ();
+ ret = zak_utils_gvalue_new_string ("");
}
else
{