forked from enlightenment/efl
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
This commit is contained in:
parent
3bd57c2c66
commit
47f9af1282
|
@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, genlist);
|
elm_win_resize_object_add(win, genlist);
|
||||||
evas_object_show(genlist);
|
evas_object_show(genlist);
|
||||||
|
|
||||||
Elm_Genlist_Item_Class gic;
|
Elm_Genlist_Item_Class gic = { 0 };
|
||||||
Elm_Object_Item *glit, *glit_top;
|
Elm_Object_Item *glit, *glit_top;
|
||||||
gic.item_style = "default";
|
gic.item_style = "default";
|
||||||
gic.func.text_get = _text_get;
|
gic.func.text_get = _text_get;
|
||||||
|
|
|
@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, genlist);
|
elm_win_resize_object_add(win, genlist);
|
||||||
evas_object_show(genlist);
|
evas_object_show(genlist);
|
||||||
|
|
||||||
Elm_Genlist_Item_Class gic;
|
Elm_Genlist_Item_Class gic = { 0 };
|
||||||
gic.item_style = "double_label";
|
gic.item_style = "double_label";
|
||||||
gic.func.text_get = _text_get;
|
gic.func.text_get = _text_get;
|
||||||
gic.func.content_get = _content_get;
|
gic.func.content_get = _content_get;
|
||||||
|
|
|
@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, genlist);
|
elm_win_resize_object_add(win, genlist);
|
||||||
evas_object_show(genlist);
|
evas_object_show(genlist);
|
||||||
|
|
||||||
Elm_Genlist_Item_Class gic;
|
Elm_Genlist_Item_Class gic = { 0 };
|
||||||
gic.item_style = "icon_top_text_bottom";
|
gic.item_style = "icon_top_text_bottom";
|
||||||
gic.func.text_get = _text_get;
|
gic.func.text_get = _text_get;
|
||||||
gic.func.content_get = _content_get;
|
gic.func.content_get = _content_get;
|
||||||
|
|
|
@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, genlist);
|
elm_win_resize_object_add(win, genlist);
|
||||||
evas_object_show(genlist);
|
evas_object_show(genlist);
|
||||||
|
|
||||||
Elm_Genlist_Item_Class gic;
|
Elm_Genlist_Item_Class gic = { 0 };
|
||||||
gic.item_style = "group_index";
|
gic.item_style = "group_index";
|
||||||
gic.func.text_get = _text_get;
|
gic.func.text_get = _text_get;
|
||||||
gic.func.content_get = _content_get;
|
gic.func.content_get = _content_get;
|
||||||
|
|
|
@ -33,7 +33,7 @@ evas_object_size_hint_weight_set(genlist, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||||
elm_win_resize_object_add(win, genlist);
|
elm_win_resize_object_add(win, genlist);
|
||||||
evas_object_show(genlist);
|
evas_object_show(genlist);
|
||||||
|
|
||||||
Elm_Genlist_Item_Class gic;
|
Elm_Genlist_Item_Class gic = { 0 };
|
||||||
gic.item_style = "default";
|
gic.item_style = "default";
|
||||||
gic.func.text_get = _text_get;
|
gic.func.text_get = _text_get;
|
||||||
gic.func.content_get = _content_get;
|
gic.func.content_get = _content_get;
|
||||||
|
|
Loading…
Reference in New Issue