[gaim-migrate @ 16888]

Sat, 19 Aug 2006 17:11:39 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 19 Aug 2006 17:11:39 +0000
changeset 14272
e1efc981a1ec
parent 14271
d44d78fe12e0
child 14273
e4c0c1c14b66

[gaim-migrate @ 16888]
GKeyFile is in glib-2.6 and above.

console/libgnt/gntcolors.c file | annotate | diff | comparison | revisions
console/libgnt/gntcolors.h file | annotate | diff | comparison | revisions
console/libgnt/gntstyle.c file | annotate | diff | comparison | revisions
--- 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)
 {

mercurial