summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:18:48 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2011-10-21 23:18:48 +0000
commit4ce2a15b7702b5ba1c9ed888d7737bca1cf11b6d (patch)
treeb1717f6fb1bd00689349282b0d162899e8410f90 /legacy
parentb1485628702ef7a10e7ca415ed8ef3c498bca4b8 (diff)
implement elm_gen_item_selected_get
SVN revision: 64278
Diffstat (limited to 'legacy')
-rw-r--r--legacy/elementary/src/lib/Elementary.h.in1
-rw-r--r--legacy/elementary/src/lib/elm_gen.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/Elementary.h.in b/legacy/elementary/src/lib/Elementary.h.in
index 2d6b9bb716..2ebbd33d79 100644
--- a/legacy/elementary/src/lib/Elementary.h.in
+++ b/legacy/elementary/src/lib/Elementary.h.in
@@ -7922,6 +7922,7 @@ extern "C" {
7922 }; 7922 };
7923 EAPI void elm_gen_clear(Evas_Object *obj); 7923 EAPI void elm_gen_clear(Evas_Object *obj);
7924 EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected); 7924 EAPI void elm_gen_item_selected_set(Elm_Gen_Item *it, Eina_Bool selected);
7925 EAPI Eina_Bool elm_gen_item_selected_get(const Elm_Gen_Item *it);
7925 7926
7926 /** 7927 /**
7927 * @defgroup Gengrid Gengrid (Generic grid) 7928 * @defgroup Gengrid Gengrid (Generic grid)
diff --git a/legacy/elementary/src/lib/elm_gen.c b/legacy/elementary/src/lib/elm_gen.c
index 6fe7652415..c6ff7f5315 100644
--- a/legacy/elementary/src/lib/elm_gen.c
+++ b/legacy/elementary/src/lib/elm_gen.c
@@ -517,3 +517,10 @@ elm_gen_clear(Evas_Object *obj)
517 evas_event_thaw(evas_object_evas_get(wd->obj)); 517 evas_event_thaw(evas_object_evas_get(wd->obj));
518 evas_event_thaw_eval(evas_object_evas_get(wd->obj)); 518 evas_event_thaw_eval(evas_object_evas_get(wd->obj));
519} 519}
520
521EAPI Eina_Bool
522elm_gen_item_selected_get(const Elm_Gen_Item *it)
523{
524 ELM_WIDGET_ITEM_WIDTYPE_CHECK_OR_RETURN(it, EINA_FALSE);
525 return it->selected;
526}