summaryrefslogtreecommitdiff
path: root/doc/widgets
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2011-12-01 06:15:08 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2011-12-01 06:15:08 +0000
commitefdec63ba4230afd2c6d4a1e84c88f810b605ce3 (patch)
treeaae75e7b4199be48e9e82ba032268624473fc6de /doc/widgets
parentd8e6d592419373d501a86a5075baedd5ced410e2 (diff)
elm gengrid/genlist: Changed 'label_get' to 'text_get' according to the
recent elementary api corrections. I changed item class's 'label_get' to 'text_get'. But 'label_get' is still supported by union structure. So 'label_get' will just give you deprecated warnings while compiling but it's recommended to fix your apps to 'text_get'. Sometimes when you initialize item class using braces, you will get 'missing braces around initializer' but ignore this. That warning will be gone after I remove 'label_get' backport. I will remove this 'label_get' backport after I finish below jobs. [TODO] 1. Fix all apps in trunk. 2. Change edc "labels" to "texts" as well. I haven't done this yet. SVN revision: 65751
Diffstat (limited to 'doc/widgets')
-rw-r--r--doc/widgets/widget_preview_gengrid.c4
-rw-r--r--doc/widgets/widget_preview_genlist1.c4
-rw-r--r--doc/widgets/widget_preview_genlist2.c4
-rw-r--r--doc/widgets/widget_preview_genlist3.c4
-rw-r--r--doc/widgets/widget_preview_genlist4.c4
-rw-r--r--doc/widgets/widget_preview_genlist5.c4
6 files changed, 12 insertions, 12 deletions
diff --git a/doc/widgets/widget_preview_gengrid.c b/doc/widgets/widget_preview_gengrid.c
index f2cda97db..b663b8833 100644
--- a/doc/widgets/widget_preview_gengrid.c
+++ b/doc/widgets/widget_preview_gengrid.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_grid_label_get(void *data __UNUSED__, 9_grid_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part __UNUSED__) 11 const char *part __UNUSED__)
12{ 12{
@@ -40,7 +40,7 @@ evas_object_show(gengrid);
40 40
41Elm_Gengrid_Item_Class gic; 41Elm_Gengrid_Item_Class gic;
42gic.item_style = "default"; 42gic.item_style = "default";
43gic.func.label_get = _grid_label_get; 43gic.func.text_get = _grid_text_get;
44gic.func.content_get = _grid_content_get; 44gic.func.content_get = _grid_content_get;
45gic.func.state_get = NULL; 45gic.func.state_get = NULL;
46gic.func.del = NULL; 46gic.func.del = NULL;
diff --git a/doc/widgets/widget_preview_genlist1.c b/doc/widgets/widget_preview_genlist1.c
index 67f70fa87..b79c97fd0 100644
--- a/doc/widgets/widget_preview_genlist1.c
+++ b/doc/widgets/widget_preview_genlist1.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_label_get(void *data __UNUSED__, 9_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part __UNUSED__) 11 const char *part __UNUSED__)
12{ 12{
@@ -36,7 +36,7 @@ evas_object_show(genlist);
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic;
37Elm_Genlist_Item *it, *top; 37Elm_Genlist_Item *it, *top;
38gic.item_style = "default"; 38gic.item_style = "default";
39gic.func.label_get = _label_get; 39gic.func.text_get = _text_get;
40gic.func.content_get = _content_get; 40gic.func.content_get = _content_get;
41gic.func.state_get = NULL; 41gic.func.state_get = NULL;
42gic.func.del = NULL; 42gic.func.del = NULL;
diff --git a/doc/widgets/widget_preview_genlist2.c b/doc/widgets/widget_preview_genlist2.c
index e33b5f5b2..89d89cc40 100644
--- a/doc/widgets/widget_preview_genlist2.c
+++ b/doc/widgets/widget_preview_genlist2.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_label_get(void *data __UNUSED__, 9_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part) 11 const char *part)
12{ 12{
@@ -35,7 +35,7 @@ evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic;
37gic.item_style = "double_label"; 37gic.item_style = "double_label";
38gic.func.label_get = _label_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
40gic.func.state_get = NULL; 40gic.func.state_get = NULL;
41gic.func.del = NULL; 41gic.func.del = NULL;
diff --git a/doc/widgets/widget_preview_genlist3.c b/doc/widgets/widget_preview_genlist3.c
index 7dd7efb67..919a1ec5e 100644
--- a/doc/widgets/widget_preview_genlist3.c
+++ b/doc/widgets/widget_preview_genlist3.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_label_get(void *data __UNUSED__, 9_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part) 11 const char *part)
12{ 12{
@@ -35,7 +35,7 @@ evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic;
37gic.item_style = "icon_top_text_bottom"; 37gic.item_style = "icon_top_text_bottom";
38gic.func.label_get = _label_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
40gic.func.state_get = NULL; 40gic.func.state_get = NULL;
41gic.func.del = NULL; 41gic.func.del = NULL;
diff --git a/doc/widgets/widget_preview_genlist4.c b/doc/widgets/widget_preview_genlist4.c
index efe4d8226..62259026c 100644
--- a/doc/widgets/widget_preview_genlist4.c
+++ b/doc/widgets/widget_preview_genlist4.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_label_get(void *data __UNUSED__, 9_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part) 11 const char *part)
12{ 12{
@@ -35,7 +35,7 @@ evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic;
37gic.item_style = "group_index"; 37gic.item_style = "group_index";
38gic.func.label_get = _label_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
40gic.func.state_get = NULL; 40gic.func.state_get = NULL;
41gic.func.del = NULL; 41gic.func.del = NULL;
diff --git a/doc/widgets/widget_preview_genlist5.c b/doc/widgets/widget_preview_genlist5.c
index 3a2f396f7..09cc493f8 100644
--- a/doc/widgets/widget_preview_genlist5.c
+++ b/doc/widgets/widget_preview_genlist5.c
@@ -6,7 +6,7 @@
6#endif 6#endif
7 7
8static char * 8static char *
9_label_get(void *data __UNUSED__, 9_text_get(void *data __UNUSED__,
10 Evas_Object *obj __UNUSED__, 10 Evas_Object *obj __UNUSED__,
11 const char *part) 11 const char *part)
12{ 12{
@@ -35,7 +35,7 @@ evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic;
37gic.item_style = "default"; 37gic.item_style = "default";
38gic.func.label_get = _label_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
40gic.func.state_get = NULL; 40gic.func.state_get = NULL;
41gic.func.del = NULL; 41gic.func.del = NULL;