Re: GtkEditable forcing of scrolling
- From: Havoc Pennington <hp redhat com>
- To: "Dugas, Alan" <alan dugas analog com>
- Cc: gtk-app-devel-list gnome org, gtk-list gnome org
- Subject: Re: GtkEditable forcing of scrolling
- Date: 20 Aug 2000 10:51:47 -0400
"Dugas, Alan" <alan.dugas@analog.com> writes:
> I am trying to implement a string search function. I would like
> this function to snap to, as opposed to scrolling to, the text that
> it matches. However, the only method I've come up with relies on
> gtk_editable_set_position() followed by
> gtk_adjustment_value_changed() to move to the text matched (see code
> snippet below). It seems to me that a third argument to
> gtk_editable_set_position() should be available to let the
> programmer decide if it's more appropriate to snap to, or scroll to,
> the new position. Does this make sense to anybody or am I going
> about this wrong? Any and all suggestions to implementing a method
> of snapping to a new position in a text widget would be greatly
> appreciated. Thanks in advance.
>
I don't understand what you mean by "snap to" vs. "scrolling to". Can
you explain what "snap to" means?
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]