libeek: terminate args of eek_xkb_layout_set_names_full() with NULL instead of -1.

This commit is contained in:
Daiki Ueno
2010-08-13 08:11:00 +09:00
parent 9a5c0d9cdc
commit 7f52069e41

View File

@ -614,7 +614,7 @@ eek_xkb_layout_set_names (EekXkbLayout *layout, XkbComponentNamesRec *names)
/** /**
* eek_xkb_layout_set_names_full: * eek_xkb_layout_set_names_full:
* @layout: an #EekXkbLayout * @layout: an #EekXkbLayout
* @Varargs: pairs of component name and value, terminated by -1. * @Varargs: pairs of component name and value, terminated by NULL.
* *
* Set the XKB component names to @layout. This function is merely a * Set the XKB component names to @layout. This function is merely a
* wrapper around eek_xkb_layout_set_names() to avoid passing a * wrapper around eek_xkb_layout_set_names() to avoid passing a
@ -656,7 +656,7 @@ eek_xkb_layout_set_names_full_valist (EekXkbLayout *layout,
memset (&names, 0, sizeof names); memset (&names, 0, sizeof names);
name = va_arg (var_args, gchar *); name = va_arg (var_args, gchar *);
while (name != (gchar *)-1) { while (name) {
value = va_arg (var_args, gchar *); value = va_arg (var_args, gchar *);
if (g_strcmp0 (name, "keymap") == 0) if (g_strcmp0 (name, "keymap") == 0)
names.keymap = (char *)value; names.keymap = (char *)value;