changeset 14210:bb38f32ab6aa

[gaim-migrate @ 16888] GKeyFile is in glib-2.6 and above. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 19 Aug 2006 17:11:39 +0000
parents 2925098c9b95
children 830a68fc9a54
files console/libgnt/gntcolors.c console/libgnt/gntcolors.h console/libgnt/gntstyle.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 */
--- 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
--- 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)
 {