summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorartem.popov <artem.popov@samsung.com>2014-10-31 15:24:43 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-10-31 15:24:43 +0900
commit666bee0aec9ecbccf43bbc2fea736d7d6f965565 (patch)
treed7c6ba0ddbaee7cff265071104ec58b81cd3e611 /src/lib
parent3e8915443cab7989d2ba9e49ab0faa933dcf4bf1 (diff)
elm_widget: fix segfaults for _elm_widget_item_style_set/get
Summary: Changing of styles for widget items isn't realized yet. This fix should be presented to avoid segfaults when elm_object_item_style_set/get is calling @fix Reviewers: seoz, raster, cedric, Hermet Reviewed By: Hermet Subscribers: bluezery Differential Revision: https://phab.enlightenment.org/D1595
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elm_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index adf68dfd3..8409aaf92 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -4426,14 +4426,14 @@ _elm_widget_item_style_set(Elm_Widget_Item *item, const char *style)
4426{ 4426{
4427 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item); 4427 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item);
4428 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item); 4428 ELM_WIDGET_ITEM_RETURN_IF_ONDEL(item);
4429 item->style_set_func(item, style); 4429 if (item->style_set_func) item->style_set_func(item, style);
4430} 4430}
4431 4431
4432EAPI const char * 4432EAPI const char *
4433_elm_widget_item_style_get(Elm_Widget_Item *item) 4433_elm_widget_item_style_get(Elm_Widget_Item *item)
4434{ 4434{
4435 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL); 4435 ELM_WIDGET_ITEM_CHECK_OR_RETURN(item, NULL);
4436 return item->style_get_func(item); 4436 return item->style_get_func ? item->style_get_func(item) : NULL;
4437} 4437}
4438 4438
4439EAPI void 4439EAPI void