aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_atoms.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2008-07-09 15:25:20 +0000
committerCarsten Haitzler <raster@rasterman.com>2008-07-09 15:25:20 +0000
commit3db4f3b65a6b2875cade83b2eb5894d1753a1a9a (patch)
tree826757e10d70af3f2a78d6a1f09da4c64f25eadd /src/bin/e_atoms.c
parent*** empty log message *** (diff)
downloadenlightenment-3db4f3b65a6b2875cade83b2eb5894d1753a1a9a.tar.gz
get hints in batches
SVN revision: 35040
Diffstat (limited to 'src/bin/e_atoms.c')
-rw-r--r--src/bin/e_atoms.c36
1 files changed, 25 insertions, 11 deletions
diff --git a/src/bin/e_atoms.c b/src/bin/e_atoms.c
index cf28a16b0..72207d22d 100644
--- a/src/bin/e_atoms.c
+++ b/src/bin/e_atoms.c
@@ -19,17 +19,31 @@ EAPI Ecore_X_Atom E_ATOM_WINDOW_STATE_CENTERED = 0;
EAPI int
e_atoms_init(void)
{
- E_ATOM_MANAGED = ecore_x_atom_get("__E_WINDOW_MANAGED");
- E_ATOM_CONTAINER = ecore_x_atom_get("__E_WINDOW_CONTAINER");
- E_ATOM_ZONE = ecore_x_atom_get("__E_WINDOW_ZONE");
- E_ATOM_DESK = ecore_x_atom_get("__E_WINDOW_DESK");
- E_ATOM_MAPPED = ecore_x_atom_get("__E_WINDOW_MAPPED");
- E_ATOM_SHADE_DIRECTION = ecore_x_atom_get("__E_WINDOW_SHADE_DIRECTION");
- E_ATOM_HIDDEN = ecore_x_atom_get("__E_WINDOW_HIDDEN");
- E_ATOM_BORDER_SIZE = ecore_x_atom_get("__E_WINDOW_BORDER_SIZE");
- E_ATOM_WINDOW_STATE = ecore_x_atom_get("__E_ATOM_WINDOW_STATE");
- E_ATOM_WINDOW_STATE_CENTERED = ecore_x_atom_get("__E_ATOM_WINDOW_STATE_CENTERED");
-
+ const char *atom_names[] = {
+ "__E_WINDOW_MANAGED",
+ "__E_WINDOW_CONTAINER",
+ "__E_WINDOW_ZONE",
+ "__E_WINDOW_DESK",
+ "__E_WINDOW_MAPPED",
+ "__E_WINDOW_SHADE_DIRECTION",
+ "__E_WINDOW_HIDDEN",
+ "__E_WINDOW_BORDER_SIZE",
+ "__E_ATOM_WINDOW_STATE",
+ "__E_ATOM_WINDOW_STATE_CENTERED"
+ };
+ Ecore_X_Atom atoms[10];
+
+ ecore_x_atoms_get(atom_names, 10, atoms);
+ E_ATOM_MANAGED = atoms[0];
+ E_ATOM_CONTAINER = atoms[1];
+ E_ATOM_ZONE = atoms[2];
+ E_ATOM_DESK = atoms[3];
+ E_ATOM_MAPPED = atoms[4];
+ E_ATOM_SHADE_DIRECTION = atoms[5];
+ E_ATOM_HIDDEN = atoms[6];
+ E_ATOM_BORDER_SIZE = atoms[7];
+ E_ATOM_WINDOW_STATE = atoms[8];
+ E_ATOM_WINDOW_STATE_CENTERED = atoms[9];
return 1;
}