summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:05:02 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:05:02 +0000
commit82cfec36d51ccd6a89fa673663e1403d5b754135 (patch)
tree842300042c3d2cba055de707aa921a4d540798f6 /legacy
parent5852948858047f41005f266a213d8d101005100f (diff)
deprecate elm_genlist_clear and elm_gengrid_clear: use elm_gen_clear instead
SVN revision: 64276
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/bin/test_eio.c2
-rw-r--r--legacy/elementary/src/bin/test_genlist.c2
-rw-r--r--legacy/elementary/src/lib/Elementary.h.in4
-rw-r--r--legacy/elementary/src/lib/elc_fileselector.c8
-rw-r--r--legacy/elementary/src/lib/elm_gengrid.c2
-rw-r--r--legacy/elementary/src/lib/elm_genlist.c2
-rw-r--r--legacy/elementary/src/lib/elm_store.c6
7 files changed, 13 insertions, 13 deletions
diff --git a/legacy/elementary/src/bin/test_eio.c b/legacy/elementary/src/bin/test_eio.c
index 27aa9fc158..f235ac29a1 100644
--- a/legacy/elementary/src/bin/test_eio.c
+++ b/legacy/elementary/src/bin/test_eio.c
@@ -111,7 +111,7 @@ _gl_del(void *data __UNUSED__, Evas_Object *obj __UNUSED__)
111static void 111static void
112_test_eio_clear(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__) 112_test_eio_clear(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
113{ 113{
114 elm_genlist_clear(data); 114 elm_gen_clear(data);
115} 115}
116 116
117void 117void
diff --git a/legacy/elementary/src/bin/test_genlist.c b/legacy/elementary/src/bin/test_genlist.c
index 08df265c67..dad6770984 100644
--- a/legacy/elementary/src/bin/test_genlist.c
+++ b/legacy/elementary/src/bin/test_genlist.c
@@ -179,7 +179,7 @@ static void
179my_gl_clear(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__) 179my_gl_clear(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
180{ 180{
181 Evas_Object *gl = data; 181 Evas_Object *gl = data;
182 elm_genlist_clear(gl); 182 elm_gen_clear(gl);
183} 183}
184 184
185static void 185static void
diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in
index 8d514c81c2..9fc99715f1 100644
--- a/legacy/elementary/src/lib/Elementary.h.in
+++ b/legacy/elementary/src/lib/Elementary.h.in
@@ -9294,7 +9294,7 @@ extern "C" {
9294 * 9294 *
9295 * @ingroup Gengrid 9295 * @ingroup Gengrid
9296 */ 9296 */
9297 EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); 9297 EINA_DEPRECATED EAPI void elm_gengrid_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
9298 9298
9299 /** 9299 /**
9300 * Get the selected item in a given gengrid widget 9300 * Get the selected item in a given gengrid widget
@@ -18191,7 +18191,7 @@ extern "C" {
18191 * 18191 *
18192 * @ingroup Genlist 18192 * @ingroup Genlist
18193 */ 18193 */
18194 EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1); 18194 EINA_DEPRECATED EAPI void elm_genlist_clear(Evas_Object *obj) EINA_ARG_NONNULL(1);
18195 /** 18195 /**
18196 * Enable or disable multi-selection in the genlist 18196 * Enable or disable multi-selection in the genlist
18197 * 18197 *
diff --git a/legacy/elementary/src/lib/elc_fileselector.c b/legacy/elementary/src/lib/elc_fileselector.c
index 10f4bee6e3..4551748edc 100644
--- a/legacy/elementary/src/lib/elc_fileselector.c
+++ b/legacy/elementary/src/lib/elc_fileselector.c
@@ -630,8 +630,8 @@ _signal_first(Widget_Request *wr)
630 evas_object_smart_callback_call(wr->obj, SIG_DIRECTORY_OPEN, (void *)wr->path); 630 evas_object_smart_callback_call(wr->obj, SIG_DIRECTORY_OPEN, (void *)wr->path);
631 if (!wr->parent) 631 if (!wr->parent)
632 { 632 {
633 elm_genlist_clear(wr->wd->files_list); 633 elm_gen_clear(wr->wd->files_list);
634 elm_gengrid_clear(wr->wd->files_grid); 634 elm_gen_clear(wr->wd->files_grid);
635 eina_stringshare_replace(&wr->wd->path, wr->path); 635 eina_stringshare_replace(&wr->wd->path, wr->path);
636 _do_anchors(wr->obj, wr->path); 636 _do_anchors(wr->obj, wr->path);
637 } 637 }
@@ -727,8 +727,8 @@ _populate(Evas_Object *obj,
727 evas_object_smart_callback_call(obj, SIG_DIRECTORY_OPEN, (void *)path); 727 evas_object_smart_callback_call(obj, SIG_DIRECTORY_OPEN, (void *)path);
728 if (!parent) 728 if (!parent)
729 { 729 {
730 elm_genlist_clear(wd->files_list); 730 elm_gen_clear(wd->files_list);
731 elm_gengrid_clear(wd->files_grid); 731 elm_gen_clear(wd->files_grid);
732 eina_stringshare_replace(&wd->path, path); 732 eina_stringshare_replace(&wd->path, path);
733 _do_anchors(obj, path); 733 _do_anchors(obj, path);
734 } 734 }
diff --git a/legacy/elementary/src/lib/elm_gengrid.c b/legacy/elementary/src/lib/elm_gengrid.c
index 1c445e2598..4a3127be1e 100644
--- a/legacy/elementary/src/lib/elm_gengrid.c
+++ b/legacy/elementary/src/lib/elm_gengrid.c
@@ -592,7 +592,7 @@ _del_pre_hook(Evas_Object *obj)
592{ 592{
593 Widget_Data *wd = elm_widget_data_get(obj); 593 Widget_Data *wd = elm_widget_data_get(obj);
594 if (!wd) return; 594 if (!wd) return;
595 elm_gengrid_clear(obj); 595 elm_gen_clear(obj);
596 evas_object_del(wd->pan_smart); 596 evas_object_del(wd->pan_smart);
597 wd->pan_smart = NULL; 597 wd->pan_smart = NULL;
598} 598}
diff --git a/legacy/elementary/src/lib/elm_genlist.c b/legacy/elementary/src/lib/elm_genlist.c
index 73cada9a69..afd2ff864c 100644
--- a/legacy/elementary/src/lib/elm_genlist.c
+++ b/legacy/elementary/src/lib/elm_genlist.c
@@ -550,7 +550,7 @@ _del_pre_hook(Evas_Object *obj)
550{ 550{
551 Widget_Data *wd = elm_widget_data_get(obj); 551 Widget_Data *wd = elm_widget_data_get(obj);
552 if (!wd) return; 552 if (!wd) return;
553 elm_genlist_clear(obj); 553 elm_gen_clear(obj);
554 evas_object_del(wd->pan_smart); 554 evas_object_del(wd->pan_smart);
555 wd->pan_smart = NULL; 555 wd->pan_smart = NULL;
556} 556}
diff --git a/legacy/elementary/src/lib/elm_store.c b/legacy/elementary/src/lib/elm_store.c
index 8807e9042f..a9adff3c16 100644
--- a/legacy/elementary/src/lib/elm_store.c
+++ b/legacy/elementary/src/lib/elm_store.c
@@ -583,7 +583,7 @@ elm_store_free(Elm_Store *st)
583 evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); 583 evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st);
584 evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized); 584 evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized);
585 evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized); 585 evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized);
586 elm_genlist_clear(st->genlist); 586 elm_gen_clear(st->genlist);
587 st->genlist = NULL; 587 st->genlist = NULL;
588 } 588 }
589 if (st->free) st->free(st); 589 if (st->free) st->free(st);
@@ -600,14 +600,14 @@ elm_store_target_genlist_set(Elm_Store *st, Evas_Object *obj)
600 evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); 600 evas_object_event_callback_del_full(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st);
601 evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized); 601 evas_object_smart_callback_del(st->genlist, "realized", _store_genlist_item_realized);
602 evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized); 602 evas_object_smart_callback_del(st->genlist, "unrealized", _store_genlist_item_unrealized);
603 elm_genlist_clear(st->genlist); 603 elm_gen_clear(st->genlist);
604 } 604 }
605 st->genlist = obj; 605 st->genlist = obj;
606 if (!st->genlist) return; 606 if (!st->genlist) return;
607 evas_object_smart_callback_add(st->genlist, "realized", _store_genlist_item_realized, st); 607 evas_object_smart_callback_add(st->genlist, "realized", _store_genlist_item_realized, st);
608 evas_object_smart_callback_add(st->genlist, "unrealized", _store_genlist_item_unrealized, st); 608 evas_object_smart_callback_add(st->genlist, "unrealized", _store_genlist_item_unrealized, st);
609 evas_object_event_callback_add(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st); 609 evas_object_event_callback_add(st->genlist, EVAS_CALLBACK_DEL, _store_genlist_del, st);
610 elm_genlist_clear(st->genlist); 610 elm_gen_clear(st->genlist);
611} 611}
612 612
613EAPI void 613EAPI void