aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bin/e_ilist.c12
-rw-r--r--src/bin/e_ilist.h1
-rw-r--r--src/bin/e_widget_ilist.c9
-rw-r--r--src/bin/e_widget_ilist.h1
4 files changed, 23 insertions, 0 deletions
diff --git a/src/bin/e_ilist.c b/src/bin/e_ilist.c
index 60aca7099..85fccab1d 100644
--- a/src/bin/e_ilist.c
+++ b/src/bin/e_ilist.c
@@ -394,6 +394,18 @@ e_ilist_clear(Evas_Object *obj)
sd->selected = -1;
}
+EAPI int
+e_ilist_nth_is_header(Evas_Object *obj, int n)
+{
+ E_Smart_Item *si;
+
+ API_ENTRY return 0;
+ if (!sd->items) return 0;
+ si = evas_list_nth(sd->items, n);
+ if (si) return si->header;
+ return 0;
+}
+
/* local subsystem functions */
static void
_e_smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
diff --git a/src/bin/e_ilist.h b/src/bin/e_ilist.h
index 92f271c6f..415e0e838 100644
--- a/src/bin/e_ilist.h
+++ b/src/bin/e_ilist.h
@@ -27,6 +27,7 @@ EAPI Evas_Object *e_ilist_nth_icon_get (Evas_Object *obj, int n);
EAPI Evas_Object *e_ilist_selected_icon_get (Evas_Object *obj);
EAPI int e_ilist_count (Evas_Object *obj);
EAPI void e_ilist_clear (Evas_Object *obj);
+EAPI int e_ilist_nth_is_header (Evas_Object *obj, int n);
#endif
#endif
diff --git a/src/bin/e_widget_ilist.c b/src/bin/e_widget_ilist.c
index fccf54e6b..baec886ab 100644
--- a/src/bin/e_widget_ilist.c
+++ b/src/bin/e_widget_ilist.c
@@ -245,6 +245,15 @@ e_widget_ilist_clear(Evas_Object *obj)
*/
}
+EAPI int
+e_widget_ilist_nth_is_header(Evas_Object *obj, int n)
+{
+ E_Widget_Data *wd;
+
+ wd = e_widget_data_get(obj);
+ return e_ilist_nth_is_header(wd->o_ilist, n);
+}
+
static void
_e_wid_del_hook(Evas_Object *obj)
{
diff --git a/src/bin/e_widget_ilist.h b/src/bin/e_widget_ilist.h
index 728d560b8..436fa2eb9 100644
--- a/src/bin/e_widget_ilist.h
+++ b/src/bin/e_widget_ilist.h
@@ -23,6 +23,7 @@ EAPI Evas_Object *e_widget_ilist_nth_icon_get(Evas_Object *obj, int n);
EAPI Evas_Object *e_widget_ilist_selected_icon_get(Evas_Object *obj);
EAPI int e_widget_ilist_count(Evas_Object *obj);
EAPI void e_widget_ilist_clear(Evas_Object *obj);
+EAPI int e_widget_ilist_nth_is_header(Evas_Object *obj, int n);
#endif
#endif