diff options
author | defanor <defanor@uberspace.net> | 2019-08-25 09:30:35 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2019-08-25 09:30:35 +0300 |
commit | 153125149d217d866d6347f76f65345db46257c2 (patch) | |
tree | 80e50043aa5a01093f5c8dab114a66b3afa6f825 /src/inlinebox.h | |
parent | f308e319f3170a2949624e211adf75002ee5d3f1 (diff) |
Merge search and selection
This reduces code and state duplication, though it may be useful to
refactor them further, possibly using a model similar to Emacs marks.
Diffstat (limited to 'src/inlinebox.h')
-rw-r--r-- | src/inlinebox.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/inlinebox.h b/src/inlinebox.h index 24c11d3..e3009f2 100644 --- a/src/inlinebox.h +++ b/src/inlinebox.h @@ -101,8 +101,6 @@ struct _InlineBox GObject *focused_object; guint selection_start; guint selection_end; - guint match_start; - guint match_end; gboolean wrap; }; @@ -117,6 +115,7 @@ void inline_box_add_text (InlineBox *container, IBText *text); void inline_box_break (InlineBox *container); gchar *inline_box_get_text (InlineBox *ib); gint inline_box_search (InlineBox *ib, guint start, gint end, const gchar *str); +guint inline_box_get_text_length (InlineBox *ib); G_END_DECLS |