# HG changeset patch # User Sadrul Habib Chowdhury # Date 1156007499 0 # Node ID bb38f32ab6aa6346d52e4d10f37b573165ad092e # Parent 2925098c9b9595521a276d8e5c595edb3c375418 [gaim-migrate @ 16888] GKeyFile is in glib-2.6 and above. committer: Tailor Script diff -r 2925098c9b95 -r bb38f32ab6aa console/libgnt/gntcolors.c --- a/console/libgnt/gntcolors.c Sat Aug 19 16:41:40 2006 +0000 +++ b/console/libgnt/gntcolors.c Sat Aug 19 17:11:39 2006 +0000 @@ -106,6 +106,7 @@ return color; } +#if GLIB_CHECK_VERSION(2,6,0) void gnt_colors_parse(GKeyFile *kfile) { GError *error = NULL; @@ -202,3 +203,4 @@ g_strfreev(keys); } +#endif /* GKeyFile */ diff -r 2925098c9b95 -r bb38f32ab6aa console/libgnt/gntcolors.h --- a/console/libgnt/gntcolors.h Sat Aug 19 16:41:40 2006 +0000 +++ b/console/libgnt/gntcolors.h Sat Aug 19 17:11:39 2006 +0000 @@ -36,8 +36,10 @@ void gnt_uninit_colors(); +#if GLIB_CHECK_VERSION(2,6,0) void gnt_colors_parse(GKeyFile *kfile); void gnt_color_pairs_parse(GKeyFile *kfile); +#endif #endif diff -r 2925098c9b95 -r bb38f32ab6aa console/libgnt/gntstyle.c --- a/console/libgnt/gntstyle.c Sat Aug 19 16:41:40 2006 +0000 +++ b/console/libgnt/gntstyle.c Sat Aug 19 17:11:39 2006 +0000 @@ -41,6 +41,7 @@ return bool_styles[style]; } +#if GLIB_CHECK_VERSION(2,6,0) static void read_general_style(GKeyFile *kfile) { @@ -70,6 +71,7 @@ } } } +#endif void gnt_style_read_configure_file(const char *filename) {