Fix compile warning for syslangs declaration Wrap g_get_language_names in

2005-01-10  Rodney Dawes  <dobey@novell.com>

	* gnome-wp-xml.c (gnome_wp_xml_load_xml):
	Fix compile warning for syslangs declaration
	Wrap g_get_language_names in #if GLIB_CHECK_VERSION as it is 2.6 API
This commit is contained in:
Rodney Dawes 2005-01-10 15:46:00 +00:00 committed by Rodney Dawes
parent 704131e28d
commit 9042303784
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2005-01-10 Rodney Dawes <dobey@novell.com>
* gnome-wp-xml.c (gnome_wp_xml_load_xml):
Fix compile warning for syslangs declaration
Wrap g_get_language_names in #if GLIB_CHECK_VERSION as it is 2.6 API
2005-01-09 Rodney Dawes <dobey@novell.com>
* gnome-wp-capplet.[ch] (gnome_wp_update_preview): Add new callback

View file

@ -95,12 +95,14 @@ static void gnome_wp_xml_load_xml (GnomeWPCapplet * capplet,
xmlDoc * wplist;
xmlNode * root, * list, * wpa;
gchar * nodelang;
const gchar ** syslangs;
const gchar * const * syslangs;
GdkColor color1, color2;
GnomeWPItem * item;
gint i;
#if GLIB_CHECK_VERSION (2, 6, 0)
syslangs = g_get_language_names ();
#endif
wplist = xmlParseFile (filename);