summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_menu.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-19 13:46:56 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-20 11:56:45 +0200
commitda1b1f6649b4b3d3fea2f30c779ba320015197f4 (patch)
treebd911ccc21d27437d080744cb1c74927c864ad8b /src/lib/efreet/efreet_menu.c
parentd2c3b67a72e1b02092909df178193be13a8cb517 (diff)
efreet: Improve eina hash usage
eina_hash_del + eina_hash_add = eina_hash_set
Diffstat (limited to 'src/lib/efreet/efreet_menu.c')
-rw-r--r--src/lib/efreet/efreet_menu.c20
1 files changed, 4 insertions, 16 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index cb9b04126f..8b8a482c5c 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -403,37 +403,25 @@ efreet_menu_init(void)
403 403
404 for (i = 0; menu_cbs[i].key; i++) 404 for (i = 0; menu_cbs[i].key; i++)
405 { 405 {
406 eina_hash_del(efreet_menu_handle_cbs, 406 eina_hash_set(efreet_menu_handle_cbs,
407 menu_cbs[i].key,
408 NULL);
409 eina_hash_add(efreet_menu_handle_cbs,
410 menu_cbs[i].key, 407 menu_cbs[i].key,
411 menu_cbs[i].cb); 408 menu_cbs[i].cb);
412 } 409 }
413 for (i = 0; filter_cbs[i].key; i++) 410 for (i = 0; filter_cbs[i].key; i++)
414 { 411 {
415 eina_hash_del(efreet_menu_filter_cbs, 412 eina_hash_set(efreet_menu_filter_cbs,
416 filter_cbs[i].key,
417 NULL);
418 eina_hash_add(efreet_menu_filter_cbs,
419 filter_cbs[i].key, 413 filter_cbs[i].key,
420 filter_cbs[i].cb); 414 filter_cbs[i].cb);
421 } 415 }
422 for (i = 0; move_cbs[i].key; i++) 416 for (i = 0; move_cbs[i].key; i++)
423 { 417 {
424 eina_hash_del(efreet_menu_move_cbs, 418 eina_hash_set(efreet_menu_move_cbs,
425 move_cbs[i].key,
426 NULL);
427 eina_hash_add(efreet_menu_move_cbs,
428 move_cbs[i].key, 419 move_cbs[i].key,
429 move_cbs[i].cb); 420 move_cbs[i].cb);
430 } 421 }
431 for (i = 0; layout_cbs[i].key; i++) 422 for (i = 0; layout_cbs[i].key; i++)
432 { 423 {
433 eina_hash_del(efreet_menu_layout_cbs, 424 eina_hash_set(efreet_menu_layout_cbs,
434 layout_cbs[i].key,
435 NULL);
436 eina_hash_add(efreet_menu_layout_cbs,
437 layout_cbs[i].key, 425 layout_cbs[i].key,
438 layout_cbs[i].cb); 426 layout_cbs[i].cb);
439 } 427 }