summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_code_widget_private.h
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2017-05-03 08:17:06 +0100
committerAndy Williams <andy@andywilliams.me>2017-05-03 08:17:06 +0100
commit3b9e69e8888b036f0c9875bd2d423d9a2dfc5592 (patch)
tree02b8159fb42be1c7018cec7b4b6d64e24516fe9e /src/lib/elementary/elm_code_widget_private.h
parent9b8efc4811a18be945368ef9383ce271746e1a8e (diff)
elm_code: Expose API for inserting text at cursor
widget operations use NULL terminated strings, backend does not. Refactor some selection code so all selection deletions trigger undo events (except where they should not).
Diffstat (limited to 'src/lib/elementary/elm_code_widget_private.h')
-rw-r--r--src/lib/elementary/elm_code_widget_private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_code_widget_private.h b/src/lib/elementary/elm_code_widget_private.h
index 9364eff9ee..ebedec3ad7 100644
--- a/src/lib/elementary/elm_code_widget_private.h
+++ b/src/lib/elementary/elm_code_widget_private.h
@@ -51,8 +51,7 @@ typedef struct
51 51
52void _elm_code_widget_cell_size_get(Elm_Code_Widget *widget, Evas_Coord *width, Evas_Coord *height); 52void _elm_code_widget_cell_size_get(Elm_Code_Widget *widget, Evas_Coord *width, Evas_Coord *height);
53 53
54void _elm_code_widget_text_at_cursor_insert(Elm_Code_Widget *widget, const char *text, int length); 54void _elm_code_widget_text_at_cursor_insert_no_undo(Elm_Code_Widget *widget, const char *text, unsigned int length);
55void _elm_code_widget_text_at_cursor_insert_no_undo(Elm_Code_Widget *widget, const char *text, int length);
56 55
57void _elm_code_widget_newline(Elm_Code_Widget *widget); 56void _elm_code_widget_newline(Elm_Code_Widget *widget);
58 57
@@ -66,6 +65,8 @@ void _elm_code_widget_tooltip_add(Evas_Object *widget);
66 65
67EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget); 66EAPI Elm_Code_Widget_Selection_Data *elm_code_widget_selection_normalized_get(Evas_Object *widget);
68 67
68void _elm_code_widget_selection_delete_no_undo(Elm_Code_Widget *widget);
69
69void _elm_code_widget_undo_change_add(Evas_Object *widget, Elm_Code_Widget_Change_Info *info); 70void _elm_code_widget_undo_change_add(Evas_Object *widget, Elm_Code_Widget_Change_Info *info);
70 71
71void _elm_code_widget_change_selection_add(Evas_Object *widget); 72void _elm_code_widget_change_selection_add(Evas_Object *widget);