Hi.. you have to use GtkTextIter class for it and one of it function is gboolean gtk_text_iter_forward_search(const GtkTextIter *iter,const gchar *str,GtkTextSearchFlags flags,GtkTextIter *match_start,GtkTextIter *match_end, const GtkTextIter *limit); Rest you can get it from GtkTextIter documentation. Bye Amit!!
---- Original message ---- From: [EMAIL PROTECTED] To: Chris Wareham <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Sent: 23-JUL-02 Subject: Re: searching problem... > > >hi.... > > > i made a text box in a window...i have written some text into >it..then i want to find a perticular word in to that text.. >which command i can use on command line... > > or > what can be function for it in itself text box... > > reply soon.. > regards, > vinita > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >On Mon, 22 Jul 2002, Chris Wareham wrote: > >> [EMAIL PROTECTED] wrote: >> > hi all, >> > I want to search a perticular word in a text ... >> > how can i do it in gtk/gnome....and which widget can i use for it??? >> > >> >> Use the text widgets to display your data: >> >> http://developer.gnome.org/doc/API/2.0/gtk/textwidgetobjects.html >> >> There are lots of useful functions for interacting with the data, >> so I recommend a thorough read to see what's available. >> >> Alternatively, to search a C string for another string, see strstr(3). >> If you haven't got the manpage on your system then see the following >> link: >> >> http://www.netbsd.org/cgi-bin/man-cgi?strstr+3+NetBSD-current >> >> If you don't know what man pages are, then see the following link: >> >> http://www.fi.netbsd.org/cgi-bin/man-cgi?man+1+NetBSD-current >> >> Chris >> >> -- >> [EMAIL PROTECTED] (work) >> [EMAIL PROTECTED] (home) >> >> _______________________________________________ >> gtk-list mailing list >> [EMAIL PROTECTED] >> http://mail.gnome.org/mailman/listinfo/gtk-list >> >> > > >_______________________________________________ >gtk-list mailing list >[EMAIL PROTECTED] >http://mail.gnome.org/mailman/listinfo/gtk-list _______________________________________________ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list
