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:
parent
704131e28d
commit
9042303784
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue