summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:29:51 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commitba3998544b9030f12b603f584197b132b1089c24 (patch)
tree1593df52635687cb5ab65cd9b2df504566a31181
parent282c7672f6c9d1940b57d1af803c8bd0dece59ac (diff)
elm/code: check for cursor layout existence before emitting signals to it
Summary: non-editable widgets do not have this object and will trigger errors @fix Depends on D8988 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8989
-rw-r--r--src/lib/elementary/elm_code_widget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c
index 8d824e415f..4a953e2130 100644
--- a/src/lib/elementary/elm_code_widget.c
+++ b/src/lib/elementary/elm_code_widget.c
@@ -713,7 +713,8 @@ _elm_code_widget_cursor_move(Elm_Code_Widget *widget, Elm_Code_Widget_Data *pd,
713 _elm_code_widget_refresh(widget, line_obj); 713 _elm_code_widget_refresh(widget, line_obj);
714 else 714 else
715 _elm_code_widget_fill_line(widget, pd, elm_code_file_line_get(pd->code->file, pd->cursor_line)); 715 _elm_code_widget_fill_line(widget, pd, elm_code_file_line_get(pd->code->file, pd->cursor_line));
716 elm_layout_signal_emit(pd->cursor_rect, "elm,action,show,cursor", "elm"); 716 if (pd->editable && pd->cursor_rect)
717 elm_layout_signal_emit(pd->cursor_rect, "elm,action,show,cursor", "elm");
717} 718}
718 719
719 720