[Telepathy-commits] [telepathy-gabble/master] write-mgr-file: add support for 'as' defaults
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Mar 26 09:59:47 PDT 2009
---
src/write-mgr-file.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/write-mgr-file.c b/src/write-mgr-file.c
index 2bfc2d2..a5c9cd9 100644
--- a/src/write-mgr-file.c
+++ b/src/write-mgr-file.c
@@ -76,6 +76,16 @@ mgr_file_contents (const char *busname,
case G_TYPE_BOOLEAN:
g_key_file_set_boolean (f, section_name, default_name,
GPOINTER_TO_INT(row->def) ? 1 : 0);
+ break;
+ default:
+ /* can't be in the case because G_TYPE_STRV is actually a
+ * function */
+ if (row->gtype == G_TYPE_STRV)
+ {
+ g_key_file_set_string_list (f, section_name, default_name,
+ (const gchar **) row->def,
+ g_strv_length ((gchar **) row->def));
+ }
}
g_free (default_name);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list