Re: Re: searching problem...



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: vyadav cdotd ernet in
To: Chris Wareham <chris wareham iosystems co uk>
CC: gtk-list gtk org
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:
>
>> vyadav cdotd ernet in 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
>> 
>> -- 
>> chris wareham iosystems co uk (work)
>> cwareham btinternet com (home)
>> 
>> _______________________________________________
>> gtk-list mailing list
>> gtk-list gnome org
>> http://mail.gnome.org/mailman/listinfo/gtk-list
>> 
>> 
>
>
>_______________________________________________
>gtk-list mailing list
>gtk-list gnome org
>http://mail.gnome.org/mailman/listinfo/gtk-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]