summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_toolbar.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-06-21 06:19:43 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-06-21 06:19:43 +0000
commitc3b0637802b2e735ad19947bcaba06bc2c26c4e6 (patch)
tree6329eefede76d2846dbcbd863713bc5ae9743d84 /src/bin/e_widget_toolbar.c
parent06c0c4d5f3e819fc149a82d5947b5cfa73a8e04a (diff)
e17: whitespaces--
SVN revision: 72561
Diffstat (limited to 'src/bin/e_widget_toolbar.c')
-rw-r--r--src/bin/e_widget_toolbar.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/bin/e_widget_toolbar.c b/src/bin/e_widget_toolbar.c
index 2ce49df..03cb4d8 100644
--- a/src/bin/e_widget_toolbar.c
+++ b/src/bin/e_widget_toolbar.c
@@ -60,17 +60,17 @@ e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h)
60 o = wd->o_base; 60 o = wd->o_base;
61 e_scrollframe_custom_theme_set(o, "base/theme/widgets", "e/widgets/toolbar"); 61 e_scrollframe_custom_theme_set(o, "base/theme/widgets", "e/widgets/toolbar");
62 e_scrollframe_single_dir_set(o, 1); 62 e_scrollframe_single_dir_set(o, 1);
63 e_scrollframe_policy_set(o, E_SCROLLFRAME_POLICY_AUTO, 63 e_scrollframe_policy_set(o, E_SCROLLFRAME_POLICY_AUTO,
64 E_SCROLLFRAME_POLICY_OFF); 64 E_SCROLLFRAME_POLICY_OFF);
65 e_scrollframe_thumbscroll_force(o, 1); 65 e_scrollframe_thumbscroll_force(o, 1);
66 evas_object_event_callback_add(o, EVAS_CALLBACK_RESIZE, 66 evas_object_event_callback_add(o, EVAS_CALLBACK_RESIZE,
67 _e_wid_cb_scrollframe_resize, obj); 67 _e_wid_cb_scrollframe_resize, obj);
68 evas_object_event_callback_add(e_scrollframe_edje_object_get(wd->o_base), 68 evas_object_event_callback_add(e_scrollframe_edje_object_get(wd->o_base),
69 EVAS_CALLBACK_MOUSE_DOWN, 69 EVAS_CALLBACK_MOUSE_DOWN,
70 _e_wid_focus_steal, obj); 70 _e_wid_focus_steal, obj);
71 evas_object_event_callback_add(obj, EVAS_CALLBACK_KEY_DOWN, 71 evas_object_event_callback_add(obj, EVAS_CALLBACK_KEY_DOWN,
72 _e_wid_cb_key_down, obj); 72 _e_wid_cb_key_down, obj);
73 73
74 edje_object_signal_callback_add(e_scrollframe_edje_object_get(o), 74 edje_object_signal_callback_add(e_scrollframe_edje_object_get(o),
75 "e,action,prev", "e", 75 "e,action,prev", "e",
76 _e_wid_signal_prev, obj); 76 _e_wid_signal_prev, obj);
@@ -88,7 +88,7 @@ e_widget_toolbar_add(Evas *evas, int icon_w, int icon_h)
88 e_widget_sub_object_add(obj, o); 88 e_widget_sub_object_add(obj, o);
89 evas_object_show(o); 89 evas_object_show(o);
90 90
91 edje_object_size_min_calc(e_scrollframe_edje_object_get(wd->o_base), 91 edje_object_size_min_calc(e_scrollframe_edje_object_get(wd->o_base),
92 &mw, &mh); 92 &mw, &mh);
93 e_widget_size_min_set(obj, mw, mh); 93 e_widget_size_min_set(obj, mw, mh);
94 94
@@ -242,22 +242,22 @@ e_widget_toolbar_focus_steal_set(Evas_Object *obj, Eina_Bool steal)
242 if (wd->focus_steal == steal) return; 242 if (wd->focus_steal == steal) return;
243 if (steal) 243 if (steal)
244 { 244 {
245 evas_object_event_callback_add(e_scrollframe_edje_object_get(wd->o_base), 245 evas_object_event_callback_add(e_scrollframe_edje_object_get(wd->o_base),
246 EVAS_CALLBACK_MOUSE_DOWN, 246 EVAS_CALLBACK_MOUSE_DOWN,
247 _e_wid_focus_steal, obj); 247 _e_wid_focus_steal, obj);
248 wd->focus_steal = EINA_TRUE; 248 wd->focus_steal = EINA_TRUE;
249 } 249 }
250 else 250 else
251 { 251 {
252 evas_object_event_callback_del(e_scrollframe_edje_object_get(wd->o_base), 252 evas_object_event_callback_del(e_scrollframe_edje_object_get(wd->o_base),
253 EVAS_CALLBACK_MOUSE_DOWN, 253 EVAS_CALLBACK_MOUSE_DOWN,
254 _e_wid_focus_steal); 254 _e_wid_focus_steal);
255 wd->focus_steal = EINA_FALSE; 255 wd->focus_steal = EINA_FALSE;
256 } 256 }
257} 257}
258 258
259EAPI void 259EAPI void
260e_widget_toolbar_clear(Evas_Object *obj) 260e_widget_toolbar_clear(Evas_Object *obj)
261{ 261{
262 E_Widget_Data *wd = NULL; 262 E_Widget_Data *wd = NULL;
263 Item *it = NULL; 263 Item *it = NULL;
@@ -272,8 +272,8 @@ e_widget_toolbar_clear(Evas_Object *obj)
272 } 272 }
273} 273}
274 274
275EAPI int 275EAPI int
276e_widget_toolbar_item_selected_get(Evas_Object *obj) 276e_widget_toolbar_item_selected_get(Evas_Object *obj)
277{ 277{
278 E_Widget_Data *wd = NULL; 278 E_Widget_Data *wd = NULL;
279 Eina_List *l = NULL; 279 Eina_List *l = NULL;
@@ -282,7 +282,7 @@ e_widget_toolbar_item_selected_get(Evas_Object *obj)
282 282
283 if (!obj) return 0; 283 if (!obj) return 0;
284 if (!(wd = e_widget_data_get(obj))) return 0; 284 if (!(wd = e_widget_data_get(obj))) return 0;
285 EINA_LIST_FOREACH(wd->items, l, it) 285 EINA_LIST_FOREACH(wd->items, l, it)
286 { 286 {
287 if (it->selected) return i; 287 if (it->selected) return i;
288 i++; 288 i++;
@@ -316,10 +316,10 @@ _e_wid_disable_hook(Evas_Object *obj)
316 if (!obj) return; 316 if (!obj) return;
317 if (!(wd = e_widget_data_get(obj))) return; 317 if (!(wd = e_widget_data_get(obj))) return;
318 if (e_widget_disabled_get(obj)) 318 if (e_widget_disabled_get(obj))
319 edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_base), 319 edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_base),
320 "e,state,disabled", "e"); 320 "e,state,disabled", "e");
321 else 321 else
322 edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_base), 322 edje_object_signal_emit(e_scrollframe_edje_object_get(wd->o_base),
323 "e,state,enabled", "e"); 323 "e,state,enabled", "e");
324} 324}
325 325
@@ -446,9 +446,9 @@ _e_wid_cb_key_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED_
446 } 446 }
447 } 447 }
448 } 448 }
449 else if ((!strcmp(ev->keyname, "Down")) || 449 else if ((!strcmp(ev->keyname, "Down")) ||
450 (!strcmp(ev->keyname, "KP_Down")) || 450 (!strcmp(ev->keyname, "KP_Down")) ||
451 (!strcmp(ev->keyname, "Right")) || 451 (!strcmp(ev->keyname, "Right")) ||
452 (!strcmp(ev->keyname, "KP_Right"))) 452 (!strcmp(ev->keyname, "KP_Right")))
453 { 453 {
454 EINA_LIST_FOREACH(wd->items, l, it) 454 EINA_LIST_FOREACH(wd->items, l, it)
@@ -461,7 +461,7 @@ _e_wid_cb_key_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED_
461 } 461 }
462 } 462 }
463 } 463 }
464 else if ((!strcmp(ev->keyname, "Home")) || 464 else if ((!strcmp(ev->keyname, "Home")) ||
465 (!strcmp(ev->keyname, "KP_Home"))) 465 (!strcmp(ev->keyname, "KP_Home")))
466 { 466 {
467 EINA_LIST_FOREACH(wd->items, l, it) 467 EINA_LIST_FOREACH(wd->items, l, it)
@@ -475,7 +475,7 @@ _e_wid_cb_key_down(void *data, Evas *evas __UNUSED__, Evas_Object *obj __UNUSED_
475 } 475 }
476 else if ((!strcmp(ev->keyname, "End")) || (!strcmp(ev->keyname, "KP_End"))) 476 else if ((!strcmp(ev->keyname, "End")) || (!strcmp(ev->keyname, "KP_End")))
477 { 477 {
478 EINA_LIST_FOREACH(wd->items, l, it) 478 EINA_LIST_FOREACH(wd->items, l, it)
479 { 479 {
480 if (it->selected) 480 if (it->selected)
481 { 481 {