From 153125149d217d866d6347f76f65345db46257c2 Mon Sep 17 00:00:00 2001 From: defanor Date: Sun, 25 Aug 2019 09:30:35 +0300 Subject: 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. --- src/inlinebox.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/inlinebox.h') 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 -- cgit v1.2.3