Search / Replace
- From: Matthew <matthew mattshouse com>
- To: gtk-list redhat com
- Subject: Search / Replace
- Date: Sat, 29 Apr 2000 11:23:33 -0500
Before I start implimenting my own search/replace, I wanted to see if one
already exists in a generic form. Such as:
int
gtk_search_replace(
GtkText *text,
char *search,
char *replace,
int startpos)
{
gtk_editable_delete_text (GTK_EDITABLE (text),
startpos, startpos + strlen(search));
gtk_editable_insert_text (GTK_EDITABLE (text),
replace, strlen (replace), &startpos);
}
Not just the above, but with a window and such.
Matthew
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]