comparison console/libgnt/gntstyle.c @ 14004:06f75fb84a78

[gaim-migrate @ 16589] Add a configure file (~/.gntrc) for gnt to configure its looks. This is available only for GLib 2.6 and above. Currently, it only allows changing the colors (r;g;b -- each in [0, 1000]) and color-groups. I have added gntrc.sample as an example. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 28 Jul 2006 04:47:19 +0000
parents
children 7573bd40a190
comparison
equal deleted inserted replaced
14003:44c5c6d80239 14004:06f75fb84a78
1 #include "gntstyle.h"
2 #include "gntcolors.h"
3
4 void gnt_style_read_configure_file(const char *filename)
5 {
6 #if GLIB_CHECK_VERSION(2,6,0)
7 GKeyFile *kfile = g_key_file_new();
8 GError *error = NULL;
9
10 if (!g_key_file_load_from_file(kfile, filename, G_KEY_FILE_NONE, &error))
11 {
12 /* XXX: Print the error or something */
13 g_error_free(error);
14 return;
15 }
16 gnt_colors_parse(kfile);
17
18 g_key_file_free(kfile);
19 #endif
20 }
21