From f308e319f3170a2949624e211adf75002ee5d3f1 Mon Sep 17 00:00:00 2001 From: defanor Date: Sat, 24 Aug 2019 13:38:44 +0300 Subject: Introduce incremental text search It is quite rough and should be refined, but as with most of the other features, introducing it at this stage primarily to ensure that it will not require major changes. --- src/inlinebox.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/inlinebox.h') diff --git a/src/inlinebox.h b/src/inlinebox.h index 03e5ec8..24c11d3 100644 --- a/src/inlinebox.h +++ b/src/inlinebox.h @@ -101,6 +101,8 @@ struct _InlineBox GObject *focused_object; guint selection_start; guint selection_end; + guint match_start; + guint match_end; gboolean wrap; }; @@ -109,10 +111,12 @@ struct _InlineBoxClass GtkContainerClass parent_class; }; -GType inline_box_get_type(void) G_GNUC_CONST; -InlineBox *inline_box_new(void); -void inline_box_add_text(InlineBox *container, IBText *text); -void inline_box_break(InlineBox *container); +GType inline_box_get_type (void) G_GNUC_CONST; +InlineBox *inline_box_new (void); +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); G_END_DECLS -- cgit v1.2.3