summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-04-24 10:52:31 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-24 11:12:23 +0200
commit47f9af12824059828d088700a3b5a557ba49dfdd (patch)
tree4f5aa3d0f4d76d31e66f83af4666720fcad14ccd /doc
parent3bd57c2c66af09b40aa60f17c09b07fadc78befb (diff)
docs: Fix genlist widget preview generation
Summary: This was making "ninja doc" segfault for me. If these function tables are not initialized they contain garbage, which leads to the worst kind of undefined behavior. Test Plan: Apply D8561 and try `ninja doc`. It was dumping core for me, and it does not do it anymore after this patch. Reviewers: bu5hm4n, zmike, cedric Reviewed By: bu5hm4n Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8697
Diffstat (limited to 'doc')
-rw-r--r--doc/widgets/widget_preview_genlist1.c2
-rw-r--r--doc/widgets/widget_preview_genlist2.c2
-rw-r--r--doc/widgets/widget_preview_genlist3.c2
-rw-r--r--doc/widgets/widget_preview_genlist4.c2
-rw-r--r--doc/widgets/widget_preview_genlist5.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/doc/widgets/widget_preview_genlist1.c b/doc/widgets/widget_preview_genlist1.c
index bf794fd9b4..59cadd2513 100644
--- a/doc/widgets/widget_preview_genlist1.c
+++ b/doc/widgets/widget_preview_genlist1.c
@@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33elm_win_resize_object_add(win, genlist); 33elm_win_resize_object_add(win, genlist);
34evas_object_show(genlist); 34evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic = { 0 };
37Elm_Object_Item *glit, *glit_top; 37Elm_Object_Item *glit, *glit_top;
38gic.item_style = "default"; 38gic.item_style = "default";
39gic.func.text_get = _text_get; 39gic.func.text_get = _text_get;
diff --git a/doc/widgets/widget_preview_genlist2.c b/doc/widgets/widget_preview_genlist2.c
index 4a86bfcacc..85544120c6 100644
--- a/doc/widgets/widget_preview_genlist2.c
+++ b/doc/widgets/widget_preview_genlist2.c
@@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33elm_win_resize_object_add(win, genlist); 33elm_win_resize_object_add(win, genlist);
34evas_object_show(genlist); 34evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic = { 0 };
37gic.item_style = "double_label"; 37gic.item_style = "double_label";
38gic.func.text_get = _text_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
diff --git a/doc/widgets/widget_preview_genlist3.c b/doc/widgets/widget_preview_genlist3.c
index 5f8798465e..41e240749b 100644
--- a/doc/widgets/widget_preview_genlist3.c
+++ b/doc/widgets/widget_preview_genlist3.c
@@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33elm_win_resize_object_add(win, genlist); 33elm_win_resize_object_add(win, genlist);
34evas_object_show(genlist); 34evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic = { 0 };
37gic.item_style = "icon_top_text_bottom"; 37gic.item_style = "icon_top_text_bottom";
38gic.func.text_get = _text_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
diff --git a/doc/widgets/widget_preview_genlist4.c b/doc/widgets/widget_preview_genlist4.c
index 95b101298e..df9acce6f0 100644
--- a/doc/widgets/widget_preview_genlist4.c
+++ b/doc/widgets/widget_preview_genlist4.c
@@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33elm_win_resize_object_add(win, genlist); 33elm_win_resize_object_add(win, genlist);
34evas_object_show(genlist); 34evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic = { 0 };
37gic.item_style = "group_index"; 37gic.item_style = "group_index";
38gic.func.text_get = _text_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;
diff --git a/doc/widgets/widget_preview_genlist5.c b/doc/widgets/widget_preview_genlist5.c
index d6ebcab984..f750f39536 100644
--- a/doc/widgets/widget_preview_genlist5.c
+++ b/doc/widgets/widget_preview_genlist5.c
@@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
33elm_win_resize_object_add(win, genlist); 33elm_win_resize_object_add(win, genlist);
34evas_object_show(genlist); 34evas_object_show(genlist);
35 35
36Elm_Genlist_Item_Class gic; 36Elm_Genlist_Item_Class gic = { 0 };
37gic.item_style = "default"; 37gic.item_style = "default";
38gic.func.text_get = _text_get; 38gic.func.text_get = _text_get;
39gic.func.content_get = _content_get; 39gic.func.content_get = _content_get;