summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-stacking.c
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2014-01-04 13:25:21 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2014-01-04 13:25:21 +0900
commit3ebc18731fa3712e9f7b29758908bf19fec7df83 (patch)
treea8aa6907b8c4be867689d02331aab1288e68af7e /src/examples/evas/evas-stacking.c
parent9637c2b835c4b48b84a4509d57c1af19d1b8608f (diff)
Use key instead of keyname for considering setxkbmap
Diffstat (limited to 'src/examples/evas/evas-stacking.c')
-rw-r--r--src/examples/evas/evas-stacking.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/examples/evas/evas-stacking.c b/src/examples/evas/evas-stacking.c
index 9763227..18221cd 100644
--- a/src/examples/evas/evas-stacking.c
+++ b/src/examples/evas/evas-stacking.c
@@ -91,13 +91,13 @@ _on_keydown(void *data EINA_UNUSED,
91 Evas_Event_Key_Down *ev = einfo; 91 Evas_Event_Key_Down *ev = einfo;
92 const char *name = _name_get(d.rects[d.cur_rect]); 92 const char *name = _name_get(d.rects[d.cur_rect]);
93 93
94 if (strcmp(ev->keyname, "h") == 0) /* print help */ 94 if (strcmp(ev->key, "h") == 0) /* print help */
95 { 95 {
96 fprintf(stdout, commands); 96 fprintf(stdout, commands);
97 return; 97 return;
98 } 98 }
99 99
100 if (strcmp(ev->keyname, "s") == 0) /* get status of the 100 if (strcmp(ev->key, "s") == 0) /* get status of the
101 * rectangles WRT size 101 * rectangles WRT size
102 * hints */ 102 * hints */
103 { 103 {
@@ -126,7 +126,7 @@ _on_keydown(void *data EINA_UNUSED,
126 return; 126 return;
127 } 127 }
128 128
129 if (strcmp(ev->keyname, "l") == 0) /* change background rectangle's layer */ 129 if (strcmp(ev->key, "l") == 0) /* change background rectangle's layer */
130 { 130 {
131 d.cur_layer = (d.cur_layer + 1) % 3; 131 d.cur_layer = (d.cur_layer + 1) % 3;
132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]); 132 evas_object_layer_set(d.bg, d.layers[d.cur_layer]);
@@ -136,7 +136,7 @@ _on_keydown(void *data EINA_UNUSED,
136 return; 136 return;
137 } 137 }
138 138
139 if (strcmp(ev->keyname, "c") == 0) /* change rectangle to operate on */ 139 if (strcmp(ev->key, "c") == 0) /* change rectangle to operate on */
140 { 140 {
141 d.cur_rect = (d.cur_rect + 1) % 3; 141 d.cur_rect = (d.cur_rect + 1) % 3;
142 142
@@ -145,7 +145,7 @@ _on_keydown(void *data EINA_UNUSED,
145 return; 145 return;
146 } 146 }
147 147
148 if (strcmp(ev->keyname, "t") == 0) /* bring target to top */ 148 if (strcmp(ev->key, "t") == 0) /* bring target to top */
149 { 149 {
150 Evas_Object *neighbour; 150 Evas_Object *neighbour;
151 151
@@ -160,7 +160,7 @@ _on_keydown(void *data EINA_UNUSED,
160 return; 160 return;
161 } 161 }
162 162
163 if (strcmp(ev->keyname, "m") == 0) /* bring target to bottom */ 163 if (strcmp(ev->key, "m") == 0) /* bring target to bottom */
164 { 164 {
165 Evas_Object *neighbour; 165 Evas_Object *neighbour;
166 166
@@ -176,7 +176,7 @@ _on_keydown(void *data EINA_UNUSED,
176 return; 176 return;
177 } 177 }
178 178
179 if (strcmp(ev->keyname, "p") == 0) /* toggle pass events */ 179 if (strcmp(ev->key, "p") == 0) /* toggle pass events */
180 { 180 {
181 Eina_Bool pass = evas_object_pass_events_get(d.rects[d.cur_rect]); 181 Eina_Bool pass = evas_object_pass_events_get(d.rects[d.cur_rect]);
182 182
@@ -188,7 +188,7 @@ _on_keydown(void *data EINA_UNUSED,
188 return; 188 return;
189 } 189 }
190 190
191 if (strcmp(ev->keyname, "r") == 0) /* toggle repeat events */ 191 if (strcmp(ev->key, "r") == 0) /* toggle repeat events */
192 { 192 {
193 Eina_Bool repeat = evas_object_repeat_events_get(d.rects[d.cur_rect]); 193 Eina_Bool repeat = evas_object_repeat_events_get(d.rects[d.cur_rect]);
194 194
@@ -200,7 +200,7 @@ _on_keydown(void *data EINA_UNUSED,
200 return; 200 return;
201 } 201 }
202 202
203 if (strcmp(ev->keyname, "a") == 0) /* stack target above */ 203 if (strcmp(ev->key, "a") == 0) /* stack target above */
204 { 204 {
205 Evas_Object *neighbour = evas_object_above_get(d.rects[d.cur_rect]); 205 Evas_Object *neighbour = evas_object_above_get(d.rects[d.cur_rect]);
206 206
@@ -222,7 +222,7 @@ _on_keydown(void *data EINA_UNUSED,
222 return; 222 return;
223 } 223 }
224 224
225 if (strcmp(ev->keyname, "b") == 0) /* stack target below */ 225 if (strcmp(ev->key, "b") == 0) /* stack target below */
226 { 226 {
227 Evas_Object *neighbour = evas_object_below_get(d.rects[d.cur_rect]); 227 Evas_Object *neighbour = evas_object_below_get(d.rects[d.cur_rect]);
228 228