Re: how to clear a text box entry



Set the entry widget to an empty string.

   gtk_entry_set_text(GTK_ENTRY(entry_widget), "");

See:
 http://developer.gnome.org/doc/API/2.0/gtk/GtkEntry.html#gtk-entry-set-text

Regards,
Dov

On 5/16/06, June Rajkhowa <dis_is_eagle yahoo com> wrote:
hi...i am learning gtk2 and have faced a problem regarding text
entries...after entering text in a text box and pressing "enter" the text in
the text box should be cleared....what function should i use...thanx in
advance...june

 ________________________________
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+
countries) for 2¢/min or less.



_______________________________________________
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]