console/libgnt/gntstyle.c

changeset 14066
3a97522e09ee
child 14072
4e64a4f18686
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/console/libgnt/gntstyle.c	Fri Jul 28 04:47:19 2006 +0000
@@ -0,0 +1,21 @@
+#include "gntstyle.h"
+#include "gntcolors.h"
+
+void gnt_style_read_configure_file(const char *filename)
+{
+#if GLIB_CHECK_VERSION(2,6,0)
+	GKeyFile *kfile = g_key_file_new();
+	GError *error = NULL;
+
+	if (!g_key_file_load_from_file(kfile, filename, G_KEY_FILE_NONE, &error))
+	{
+		/* XXX: Print the error or something */
+		g_error_free(error);
+		return;
+	}
+	gnt_colors_parse(kfile);
+
+	g_key_file_free(kfile);
+#endif
+}
+

mercurial