Re: A Little Help Needed.

Vinodh Dorai Rajan <vinny matsvin com> writes:

> Hi,
> 	First off , sorry this mail should actually go to gtk+ mailing list , 
> but since I am not yet subscribed to it and needed a quick help , I 
> decided to send it here. Besides I am writing a GNOME app.
> 	The problem is gtk_editable_get_chars. How do I know if the user has not 
> entered any text in the entrybox. I dont seem to be getting a NULL 
> pointer back. This is based on gtk+1.2.8-0_helix_1 on a rh6.2 box. strlen 
> also doesnt return 0 (obviously). There doesnt seem to be any doc on 
> getting the no of chars in an entry box. Can someone tellme how can I 
> detect null strings without touching the struct members.

You can either use gtk_entry_get_text to get the entire string, or you
can use gtk_editable_get_chars to get subsections of the string.  In
particular, you want to set start_pos to 0, and end_pos to -1 to
indicate the entire string.

Also, please note that while gtk_editable_get_chars duplicates the
(sub)string, gtk_entry_get_text does not.

> 	Aries will have a plugin arch to import and export and I plan to make it 
> a bonobo component and CORBA server so that it can straightaway give out 
> to: cc: bcc: entries for an email client thus integrating itself 
> completely with GNOME. Are there any standards in GNOME for integrating 
> an addressbook and an email client ?.

Try evolution:


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