summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:10:56 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:10:56 +0000
commitb1485628702ef7a10e7ca415ed8ef3c498bca4b8 (patch)
tree56181785781d12afcadad9887f6d4ad00f74a923 /legacy
parent82cfec36d51ccd6a89fa673663e1403d5b754135 (diff)
deprecate elm_genlist_item_selected_set and elm_gengrid_item_selected_set: use elm_gen_item_selected_set instead
SVN revision: 64277
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_cursor.c2
-rw-r--r--legacy/elementary/src/bin/test_gengrid.c4
-rw-r--r--legacy/elementary/src/bin/test_genlist.c6
-rw-r--r--legacy/elementary/src/bin/test_tooltip.c2
-rw-r--r--legacy/elementary/src/lib/Elementary.h.in4
-rw-r--r--legacy/elementary/src/lib/elm_gengrid.c22
-rw-r--r--legacy/elementary/src/lib/elm_genlist.c20
7 files changed, 30 insertions, 30 deletions
diff --git a/legacy/elementary/src/bin/test_cursor.c b/legacy/elementary/src/bin/test_cursor.c
index e0987f7261..ef539c7a05 100644
--- a/legacy/elementary/src/bin/test_cursor.c
+++ b/legacy/elementary/src/bin/test_cursor.c
@@ -275,7 +275,7 @@ test_cursor2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
275 else 275 else
276 elm_gengrid_item_cursor_set(ti[i].item, ELM_CURSOR_CLOCK); 276 elm_gengrid_item_cursor_set(ti[i].item, ELM_CURSOR_CLOCK);
277 if (!(i % 5)) 277 if (!(i % 5))
278 elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE); 278 elm_gen_item_selected_set(ti[i].item, EINA_TRUE);
279 } 279 }
280 elm_box_pack_end(bx, grid); 280 elm_box_pack_end(bx, grid);
281 evas_object_show(grid); 281 evas_object_show(grid);
diff --git a/legacy/elementary/src/bin/test_gengrid.c b/legacy/elementary/src/bin/test_gengrid.c
index a988da79ee..a3705a1c1f 100644
--- a/legacy/elementary/src/bin/test_gengrid.c
+++ b/legacy/elementary/src/bin/test_gengrid.c
@@ -195,7 +195,7 @@ test_gengrid(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
195 ti[i].path = eina_stringshare_add(buf); 195 ti[i].path = eina_stringshare_add(buf);
196 ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), grid_sel, NULL); 196 ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), grid_sel, NULL);
197 if (!(i % 5)) 197 if (!(i % 5))
198 elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE); 198 elm_gen_item_selected_set(ti[i].item, EINA_TRUE);
199 } 199 }
200 200
201 evas_object_show(grid); 201 evas_object_show(grid);
@@ -443,7 +443,7 @@ test_gengrid3(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
443 else 443 else
444 ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), grid_sel, NULL); 444 ti[i].item = elm_gengrid_item_append(grid, &gic, &(ti[i]), grid_sel, NULL);
445 if (!(i % 5)) 445 if (!(i % 5))
446 elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE); 446 elm_gen_item_selected_set(ti[i].item, EINA_TRUE);
447 } 447 }
448 448
449 evas_object_show(grid); 449 evas_object_show(grid);
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index dad6770984..7224fa7004 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -287,7 +287,7 @@ my_gl_disable(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED
287 return; 287 return;
288 } 288 }
289 elm_genlist_item_disabled_set(gli, 1); 289 elm_genlist_item_disabled_set(gli, 1);
290 elm_genlist_item_selected_set(gli, 0); 290 elm_gen_item_selected_set(gli, 0);
291 elm_genlist_item_update(gli); 291 elm_genlist_item_update(gli);
292} 292}
293 293
@@ -313,7 +313,7 @@ my_gl_first(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__
313 Elm_Genlist_Item *gli = elm_genlist_first_item_get(gl); 313 Elm_Genlist_Item *gli = elm_genlist_first_item_get(gl);
314 if (!gli) return; 314 if (!gli) return;
315 elm_genlist_item_show(gli); 315 elm_genlist_item_show(gli);
316 elm_genlist_item_selected_set(gli, 1); 316 elm_gen_item_selected_set(gli, 1);
317} 317}
318 318
319static void 319static void
@@ -323,7 +323,7 @@ my_gl_last(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
323 Elm_Genlist_Item *gli = elm_genlist_last_item_get(gl); 323 Elm_Genlist_Item *gli = elm_genlist_last_item_get(gl);
324 if (!gli) return; 324 if (!gli) return;
325 elm_genlist_item_show(gli); 325 elm_genlist_item_show(gli);
326 elm_genlist_item_selected_set(gli, 1); 326 elm_gen_item_selected_set(gli, 1);
327} 327}
328 328
329static Eina_Bool 329static Eina_Bool
diff --git a/legacy/elementary/src/bin/test_tooltip.c b/legacy/elementary/src/bin/test_tooltip.c
index 70c7e905b0..2210fcf3b7 100644
--- a/legacy/elementary/src/bin/test_tooltip.c
+++ b/legacy/elementary/src/bin/test_tooltip.c
@@ -565,7 +565,7 @@ test_tooltip2(void *data __UNUSED__,
565 else 565 else
566 elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing Y"); 566 elm_gengrid_item_tooltip_text_set(ti[i].item, "Testing Y");
567 if (!(i % 5)) 567 if (!(i % 5))
568 elm_gengrid_item_selected_set(ti[i].item, EINA_TRUE); 568 elm_gen_item_selected_set(ti[i].item, EINA_TRUE);
569 } 569 }
570 570
571 elm_box_pack_end(bx, grid); 571 elm_box_pack_end(bx, grid);
diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in
index 9fc99715f1..2d6b9bb716 100644
--- a/legacy/elementary/src/lib/Elementary.h.in
+++ b/legacy/elementary/src/lib/Elementary.h.in
@@ -8939,7 +8939,7 @@ extern "C" {
8939 * 8939 *
8940 * @ingroup Gengrid 8940 * @ingroup Gengrid
8941 */ 8941 */
8942 EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1); 8942 EINA_DEPRECATED EAPI void elm_gengrid_item_selected_set(Elm_Gengrid_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
8943 8943
8944 /** 8944 /**
8945 * Get whether a given gengrid item is selected or not 8945 * Get whether a given gengrid item is selected or not
@@ -18852,7 +18852,7 @@ extern "C" {
18852 * 18852 *
18853 * @ingroup Genlist 18853 * @ingroup Genlist
18854 */ 18854 */
18855 EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1); 18855 EINA_DEPRECATED EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *item, Eina_Bool selected) EINA_ARG_NONNULL(1);
18856 /** 18856 /**
18857 * Get whether a given genlist item is selected or not 18857 * Get whether a given genlist item is selected or not
18858 * 18858 *
diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c
index 4a3127be1e..d39ddda303 100644
--- a/legacy/elementary/src/lib/elm_gengrid.c
+++ b/legacy/elementary/src/lib/elm_gengrid.c
@@ -351,7 +351,7 @@ _deselect_all_items(Widget_Data *wd)
351{ 351{
352 if (!wd->selected) return EINA_FALSE; 352 if (!wd->selected) return EINA_FALSE;
353 while (wd->selected) 353 while (wd->selected)
354 elm_gengrid_item_selected_set(wd->selected->data, EINA_FALSE); 354 elm_gen_item_selected_set(wd->selected->data, EINA_FALSE);
355 355
356 return EINA_TRUE; 356 return EINA_TRUE;
357} 357}
@@ -365,13 +365,13 @@ _item_multi_select_left(Widget_Data *wd)
365 if (!prev) return EINA_TRUE; 365 if (!prev) return EINA_TRUE;
366 if (elm_gengrid_item_selected_get(prev)) 366 if (elm_gengrid_item_selected_get(prev))
367 { 367 {
368 elm_gengrid_item_selected_set(wd->last_selected_item, EINA_FALSE); 368 elm_gen_item_selected_set(wd->last_selected_item, EINA_FALSE);
369 wd->last_selected_item = prev; 369 wd->last_selected_item = prev;
370 elm_gengrid_item_show(wd->last_selected_item); 370 elm_gengrid_item_show(wd->last_selected_item);
371 } 371 }
372 else 372 else
373 { 373 {
374 elm_gengrid_item_selected_set(prev, EINA_TRUE); 374 elm_gen_item_selected_set(prev, EINA_TRUE);
375 elm_gengrid_item_show(prev); 375 elm_gengrid_item_show(prev);
376 } 376 }
377 377
@@ -387,13 +387,13 @@ _item_multi_select_right(Widget_Data *wd)
387 if (!next) return EINA_TRUE; 387 if (!next) return EINA_TRUE;
388 if (elm_gengrid_item_selected_get(next)) 388 if (elm_gengrid_item_selected_get(next))
389 { 389 {
390 elm_gengrid_item_selected_set(wd->last_selected_item, EINA_FALSE); 390 elm_gen_item_selected_set(wd->last_selected_item, EINA_FALSE);
391 wd->last_selected_item = next; 391 wd->last_selected_item = next;
392 elm_gengrid_item_show(wd->last_selected_item); 392 elm_gengrid_item_show(wd->last_selected_item);
393 } 393 }
394 else 394 else
395 { 395 {
396 elm_gengrid_item_selected_set(next, EINA_TRUE); 396 elm_gen_item_selected_set(next, EINA_TRUE);
397 elm_gengrid_item_show(next); 397 elm_gengrid_item_show(next);
398 } 398 }
399 399
@@ -440,7 +440,7 @@ _item_single_select_up(Widget_Data *wd)
440 prev = ELM_GEN_ITEM_FROM_INLIST(wd->items->last); 440 prev = ELM_GEN_ITEM_FROM_INLIST(wd->items->last);
441 while ((prev) && (prev->delete_me)) 441 while ((prev) && (prev->delete_me))
442 prev = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(prev)->prev); 442 prev = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(prev)->prev);
443 elm_gengrid_item_selected_set(prev, EINA_TRUE); 443 elm_gen_item_selected_set(prev, EINA_TRUE);
444 elm_gengrid_item_show(prev); 444 elm_gengrid_item_show(prev);
445 return EINA_TRUE; 445 return EINA_TRUE;
446 } 446 }
@@ -457,7 +457,7 @@ _item_single_select_up(Widget_Data *wd)
457 457
458 _deselect_all_items(wd); 458 _deselect_all_items(wd);
459 459
460 elm_gengrid_item_selected_set(prev, EINA_TRUE); 460 elm_gen_item_selected_set(prev, EINA_TRUE);
461 elm_gengrid_item_show(prev); 461 elm_gengrid_item_show(prev);
462 return EINA_TRUE; 462 return EINA_TRUE;
463} 463}
@@ -474,7 +474,7 @@ _item_single_select_down(Widget_Data *wd)
474 next = ELM_GEN_ITEM_FROM_INLIST(wd->items); 474 next = ELM_GEN_ITEM_FROM_INLIST(wd->items);
475 while ((next) && (next->delete_me)) 475 while ((next) && (next->delete_me))
476 next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next); 476 next = ELM_GEN_ITEM_FROM_INLIST(EINA_INLIST_GET(next)->next);
477 elm_gengrid_item_selected_set(next, EINA_TRUE); 477 elm_gen_item_selected_set(next, EINA_TRUE);
478 elm_gengrid_item_show(next); 478 elm_gengrid_item_show(next);
479 return EINA_TRUE; 479 return EINA_TRUE;
480 } 480 }
@@ -491,7 +491,7 @@ _item_single_select_down(Widget_Data *wd)
491 491
492 _deselect_all_items(wd); 492 _deselect_all_items(wd);
493 493
494 elm_gengrid_item_selected_set(next, EINA_TRUE); 494 elm_gen_item_selected_set(next, EINA_TRUE);
495 elm_gengrid_item_show(next); 495 elm_gengrid_item_show(next);
496 return EINA_TRUE; 496 return EINA_TRUE;
497} 497}
@@ -512,7 +512,7 @@ _item_single_select_left(Widget_Data *wd)
512 512
513 _deselect_all_items(wd); 513 _deselect_all_items(wd);
514 514
515 elm_gengrid_item_selected_set(prev, EINA_TRUE); 515 elm_gen_item_selected_set(prev, EINA_TRUE);
516 elm_gengrid_item_show(prev); 516 elm_gengrid_item_show(prev);
517 return EINA_TRUE; 517 return EINA_TRUE;
518} 518}
@@ -533,7 +533,7 @@ _item_single_select_right(Widget_Data *wd)
533 533
534 _deselect_all_items(wd); 534 _deselect_all_items(wd);
535 535
536 elm_gengrid_item_selected_set(next, EINA_TRUE); 536 elm_gen_item_selected_set(next, EINA_TRUE);
537 elm_gengrid_item_show(next); 537 elm_gengrid_item_show(next);
538 return EINA_TRUE; 538 return EINA_TRUE;
539} 539}
diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c
index afd2ff864c..8f56c670bf 100644
--- a/legacy/elementary/src/lib/elm_genlist.c
+++ b/legacy/elementary/src/lib/elm_genlist.c
@@ -416,7 +416,7 @@ _deselect_all_items(Widget_Data *wd)
416{ 416{
417 if (!wd->selected) return EINA_FALSE; 417 if (!wd->selected) return EINA_FALSE;
418 while (wd->selected) 418 while (wd->selected)
419 elm_genlist_item_selected_set(wd->selected->data, EINA_FALSE); 419 elm_gen_item_selected_set(wd->selected->data, EINA_FALSE);
420 420
421 return EINA_TRUE; 421 return EINA_TRUE;
422} 422}
@@ -432,13 +432,13 @@ _item_multi_select_up(Widget_Data *wd)
432 432
433 if (elm_genlist_item_selected_get(prev)) 433 if (elm_genlist_item_selected_get(prev))
434 { 434 {
435 elm_genlist_item_selected_set(wd->last_selected_item, EINA_FALSE); 435 elm_gen_item_selected_set(wd->last_selected_item, EINA_FALSE);
436 wd->last_selected_item = prev; 436 wd->last_selected_item = prev;
437 elm_genlist_item_show(wd->last_selected_item); 437 elm_genlist_item_show(wd->last_selected_item);
438 } 438 }
439 else 439 else
440 { 440 {
441 elm_genlist_item_selected_set(prev, EINA_TRUE); 441 elm_gen_item_selected_set(prev, EINA_TRUE);
442 elm_genlist_item_show(prev); 442 elm_genlist_item_show(prev);
443 } 443 }
444 return EINA_TRUE; 444 return EINA_TRUE;
@@ -455,13 +455,13 @@ _item_multi_select_down(Widget_Data *wd)
455 455
456 if (elm_genlist_item_selected_get(next)) 456 if (elm_genlist_item_selected_get(next))
457 { 457 {
458 elm_genlist_item_selected_set(wd->last_selected_item, EINA_FALSE); 458 elm_gen_item_selected_set(wd->last_selected_item, EINA_FALSE);
459 wd->last_selected_item = next; 459 wd->last_selected_item = next;
460 elm_genlist_item_show(wd->last_selected_item); 460 elm_genlist_item_show(wd->last_selected_item);
461 } 461 }
462 else 462 else
463 { 463 {
464 elm_genlist_item_selected_set(next, EINA_TRUE); 464 elm_gen_item_selected_set(next, EINA_TRUE);
465 elm_genlist_item_show(next); 465 elm_genlist_item_show(next);
466 } 466 }
467 return EINA_TRUE; 467 return EINA_TRUE;
@@ -483,7 +483,7 @@ _item_single_select_up(Widget_Data *wd)
483 483
484 _deselect_all_items(wd); 484 _deselect_all_items(wd);
485 485
486 elm_genlist_item_selected_set(prev, EINA_TRUE); 486 elm_gen_item_selected_set(prev, EINA_TRUE);
487 elm_genlist_item_show(prev); 487 elm_genlist_item_show(prev);
488 return EINA_TRUE; 488 return EINA_TRUE;
489} 489}
@@ -504,7 +504,7 @@ _item_single_select_down(Widget_Data *wd)
504 504
505 _deselect_all_items(wd); 505 _deselect_all_items(wd);
506 506
507 elm_genlist_item_selected_set(next, EINA_TRUE); 507 elm_gen_item_selected_set(next, EINA_TRUE);
508 elm_genlist_item_show(next); 508 elm_genlist_item_show(next);
509 return EINA_TRUE; 509 return EINA_TRUE;
510} 510}
@@ -3934,7 +3934,7 @@ elm_genlist_item_disabled_set(Elm_Gen_Item *it,
3934 if (it->delete_me) return; 3934 if (it->delete_me) return;
3935 it->disabled = !!disabled; 3935 it->disabled = !!disabled;
3936 if (it->selected) 3936 if (it->selected)
3937 elm_genlist_item_selected_set(it, EINA_FALSE); 3937 elm_gen_item_selected_set(it, EINA_FALSE);
3938 if (it->realized) 3938 if (it->realized)
3939 { 3939 {
3940 if (it->disabled) 3940 if (it->disabled)
@@ -4667,13 +4667,13 @@ elm_genlist_item_mode_set(Elm_Gen_Item *it,
4667 { 4667 {
4668 EINA_LIST_FOREACH(wd->selected, l, it2) 4668 EINA_LIST_FOREACH(wd->selected, l, it2)
4669 if (it2->realized) 4669 if (it2->realized)
4670 elm_genlist_item_selected_set(it2, EINA_FALSE); 4670 elm_gen_item_selected_set(it2, EINA_FALSE);
4671 } 4671 }
4672 else 4672 else
4673 { 4673 {
4674 it2 = elm_genlist_selected_item_get(wd->obj); 4674 it2 = elm_genlist_selected_item_get(wd->obj);
4675 if ((it2) && (it2->realized)) 4675 if ((it2) && (it2->realized))
4676 elm_genlist_item_selected_set(it2, EINA_FALSE); 4676 elm_gen_item_selected_set(it2, EINA_FALSE);
4677 } 4677 }
4678 4678
4679 if (((wd->mode_type) && (strcmp(mode_type, wd->mode_type))) || 4679 if (((wd->mode_type) && (strcmp(mode_type, wd->mode_type))) ||