summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-01-24 12:56:44 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2015-10-05 12:54:39 +0200
commite60d888dc5ffaff3eaae470fb723ff868e2e769c (patch)
tree5f57ced6164a21a4a9765d30c05f674939fd9d11
parentaf5c83ab1298c00329850f2d1084648b702bbc94 (diff)
settingswidget: Added new api call to get focused item
-rw-r--r--src/lib/elc_settingspane.c11
-rw-r--r--src/lib/elm_settingspane.eo8
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/elc_settingspane.c b/src/lib/elc_settingspane.c
index 8d73b7cf4..cfa85b37f 100644
--- a/src/lib/elc_settingspane.c
+++ b/src/lib/elc_settingspane.c
@@ -1291,6 +1291,17 @@ _history_menu_show_cb(void *data EINA_UNUSED, Evas_Object *obj, const char *emis
1291 _history_menu_show(obj, x, y); 1291 _history_menu_show(obj, x, y);
1292} 1292}
1293 1293
1294EOLIAN static Elm_Settingspane_Item*
1295_elm_settingspane_focused_get(Eo *obj, Elm_Settingspane_Data *pd EINA_UNUSED)
1296{
1297 Elm_Settingspane_Item *current = _history_stack_current(obj);
1298
1299 if (current == pd->zero) /* we dont want to return our internal item */
1300 return NULL;
1301 else
1302 return current;
1303}
1304
1294EOLIAN static void 1305EOLIAN static void
1295_elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd) 1306_elm_settingspane_evas_object_smart_add(Eo *obj, Elm_Settingspane_Data *pd)
1296{ 1307{
diff --git a/src/lib/elm_settingspane.eo b/src/lib/elm_settingspane.eo
index ce8761dee..fd4ee2a7d 100644
--- a/src/lib/elm_settingspane.eo
+++ b/src/lib/elm_settingspane.eo
@@ -4,6 +4,14 @@ class Elm_Settingspane(Elm_Layout)
4 properties { 4 properties {
5 } 5 }
6 methods { 6 methods {
7 focused_get{
8 /*@
9 Returns the currently focused item
10
11 Returns the item which is currently displayed.
12 */
13 return: Elm_Settingspane_Item* ;
14 }
7 item_get { 15 item_get {
8 /*@ 16 /*@
9 Return the Item from this path 17 Return the Item from this path