forked from enlightenment/enlightenment
make one of the xkb functions less stupid
SVN revision: 83526
This commit is contained in:
parent
1b6904e063
commit
98bb1620f7
|
@ -221,8 +221,12 @@ e_xkb_layout_set(const char *name)
|
|||
EAPI const char *
|
||||
e_xkb_layout_name_reduce(const char *name)
|
||||
{
|
||||
if ((name) && (strchr(name, '/'))) name = strchr(name, '/') + 1;
|
||||
return name;
|
||||
const char *s;
|
||||
|
||||
if (!name) return NULL;
|
||||
s = strchr(name, '/');
|
||||
if (s) s++;
|
||||
return s;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
|
Loading…
Reference in New Issue