summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-10-01 11:27:58 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-10-01 11:39:38 +0200
commitd10f0ee3b92433cec6e01f47448ba25db82d6ac4 (patch)
tree39d3cd6efbceff09dd46ed810e33c15993d10857
parent0839dbc6113fcf9a02cec129facea0fc50823e93 (diff)
docs: do not crash gengrid widget preview
item class is not initialized to 0. This can crash gengrid later on. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D10261
-rw-r--r--doc/widgets/widget_preview_gengrid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/widgets/widget_preview_gengrid.c b/doc/widgets/widget_preview_gengrid.c
index 14f00b3..fd8c4e0 100644
--- a/doc/widgets/widget_preview_gengrid.c
+++ b/doc/widgets/widget_preview_gengrid.c
@@ -38,7 +38,7 @@ evas_object_size_hint_weight_set(gengrid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
38elm_win_resize_object_add(win, gengrid); 38elm_win_resize_object_add(win, gengrid);
39evas_object_show(gengrid); 39evas_object_show(gengrid);
40 40
41Elm_Gengrid_Item_Class gic; 41Elm_Gengrid_Item_Class gic = { 0 };
42gic.item_style = "default"; 42gic.item_style = "default";
43gic.func.text_get = _grid_text_get; 43gic.func.text_get = _grid_text_get;
44gic.func.content_get = _grid_content_get; 44gic.func.content_get = _grid_content_get;