diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c index fd96d5c..ee981fe 100644 --- a/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c +++ b/libraries/ecore/src/lib/ecore_x/xlib/ecore_x_atoms.c | |||
@@ -291,10 +291,12 @@ _ecore_x_atoms_init(void) | |||
291 | num = sizeof(items) / sizeof(Atom_Item); | 291 | num = sizeof(items) / sizeof(Atom_Item); |
292 | atoms = alloca(num * sizeof(Atom)); | 292 | atoms = alloca(num * sizeof(Atom)); |
293 | names = alloca(num * sizeof(char *)); | 293 | names = alloca(num * sizeof(char *)); |
294 | for (i = 0; i < num; i++) names[i] = (char *)items[i].name; | 294 | for (i = 0; i < num; i++) |
295 | names[i] = (char *)items[i].name; | ||
295 | XInternAtoms(_ecore_x_disp, names, num, False, atoms); | 296 | XInternAtoms(_ecore_x_disp, names, num, False, atoms); |
296 | for (i = 0; i < num; i++) *(items[i].atom) = atoms[i]; | 297 | for (i = 0; i < num; i++) |
297 | } /* _ecore_x_atoms_init */ | 298 | *(items[i].atom) = atoms[i]; |
299 | } | ||
298 | 300 | ||
299 | /** | 301 | /** |
300 | * Retrieves the atom value associated with the given name. | 302 | * Retrieves the atom value associated with the given name. |
@@ -309,11 +311,11 @@ ecore_x_atom_get(const char *name) | |||
309 | 311 | ||
310 | LOGFN(__FILE__, __LINE__, __FUNCTION__); | 312 | LOGFN(__FILE__, __LINE__, __FUNCTION__); |
311 | return XInternAtom(_ecore_x_disp, name, False); | 313 | return XInternAtom(_ecore_x_disp, name, False); |
312 | } /* ecore_x_atom_get */ | 314 | } |
313 | 315 | ||
314 | EAPI void | 316 | EAPI void |
315 | ecore_x_atoms_get(const char **names, | 317 | ecore_x_atoms_get(const char **names, |
316 | int num, | 318 | int num, |
317 | Ecore_X_Atom *atoms) | 319 | Ecore_X_Atom *atoms) |
318 | { | 320 | { |
319 | Atom *atoms_int; | 321 | Atom *atoms_int; |
@@ -327,7 +329,7 @@ ecore_x_atoms_get(const char **names, | |||
327 | XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int); | 329 | XInternAtoms(_ecore_x_disp, (char **)names, num, False, atoms_int); |
328 | for (i = 0; i < num; i++) | 330 | for (i = 0; i < num; i++) |
329 | atoms[i] = atoms_int[i]; | 331 | atoms[i] = atoms_int[i]; |
330 | } /* ecore_x_atoms_get */ | 332 | } |
331 | 333 | ||
332 | EAPI char * | 334 | EAPI char * |
333 | ecore_x_atom_name_get(Ecore_X_Atom atom) | 335 | ecore_x_atom_name_get(Ecore_X_Atom atom) |
@@ -348,5 +350,5 @@ ecore_x_atom_name_get(Ecore_X_Atom atom) | |||
348 | XFree(xname); | 350 | XFree(xname); |
349 | 351 | ||
350 | return name; | 352 | return name; |
351 | } /* ecore_x_atom_name_get */ | 353 | } |
352 | 354 | ||