summaryrefslogtreecommitdiff
path: root/src/lib/elm_widget_ctxpopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_widget_ctxpopup.h')
-rw-r--r--src/lib/elm_widget_ctxpopup.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/lib/elm_widget_ctxpopup.h b/src/lib/elm_widget_ctxpopup.h
index 3f4eabc89..32045e489 100644
--- a/src/lib/elm_widget_ctxpopup.h
+++ b/src/lib/elm_widget_ctxpopup.h
@@ -2,7 +2,9 @@
2#define ELM_WIDGET_CTXPOPUP_H 2#define ELM_WIDGET_CTXPOPUP_H
3 3
4#include "elm_widget_layout.h" 4#include "elm_widget_layout.h"
5#include "elm_ctxpopup_item.eo.h"
5 6
7#include "elm_object_item_migration_temp.h"
6/** 8/**
7 * @addtogroup Widget 9 * @addtogroup Widget
8 * @{ 10 * @{
@@ -14,15 +16,15 @@
14 * widgets which are a ctxpopup with some more logic on top. 16 * widgets which are a ctxpopup with some more logic on top.
15 */ 17 */
16 18
17typedef struct _Elm_Ctxpopup_Item Elm_Ctxpopup_Item; 19typedef struct _Elm_Ctxpopup_Item_Data Elm_Ctxpopup_Item_Data;
18 20
19/** 21/**
20 * Base widget smart data extended with ctxpopup instance data. 22 * Base widget smart data extended with ctxpopup instance data.
21 */ 23 */
22typedef struct _Elm_Ctxpopup_Data Elm_Ctxpopup_Data; 24typedef struct _Elm_Ctxpopup_Data Elm_Ctxpopup_Data;
23struct _Elm_Ctxpopup_Item 25struct _Elm_Ctxpopup_Item_Data
24{ 26{
25 ELM_WIDGET_ITEM; 27 Elm_Widget_Item_Data *base;
26 28
27 Elm_Object_Item *list_item; 29 Elm_Object_Item *list_item;
28 30
@@ -85,4 +87,7 @@ struct _Elm_Ctxpopup_Data
85 if (EINA_UNLIKELY(!eo_isa((obj), ELM_CTXPOPUP_CLASS))) \ 87 if (EINA_UNLIKELY(!eo_isa((obj), ELM_CTXPOPUP_CLASS))) \
86 return 88 return
87 89
90#define ELM_CTXPOPUP_ITEM_DATA_GET(o, sd) \
91 Elm_Ctxpopup_Item_Data * sd = eo_data_scope_get(o, ELM_CTXPOPUP_ITEM_CLASS)
92
88#endif 93#endif