Re: Signal when the content of a GtkEntry is changed



On August 16, 2005 11:13 am, Douglas Vechinski wrote:
I've had a similar/relate question that I've been curious
about for some time.  This emits a signal evertime the
contents is changed. Unfortunately, taking action everytime it
is changed may not be what is desired.  What may be desired is
when the changes are done.  Suppose the entry contained a
value like 9.8 and someone wants to change the value to 12.2. 
This might be done my backspacing, deleting all the characters
and then entering 12.2.  But the changed signal is emitted
after every character.  So that you would be acting on the
value 9., 9, " ", 1, 12, 12., and finally 12.2.  Some values
could be undesirable.  Plus the update could take a time to
perform.  Is there another type of signal that could be used
to know when it done.  My current method is to act upon an
activate signal which is sent when a <RETURN> is entered.  Is
there another more appropriate method?

I guess that basically really equates to the whole issue of 
validation of a field.  The best reference I have found so far 
is the Bugzilla record for 50276

http://bugzilla.gnome.org/show_bug.cgi?id=50276


On Tue, 2005-08-16 at 19:53 +0200, David Necas (Yeti) wrote:
On Tue, Aug 16, 2005 at 07:50:59PM +0200, Thym wrote:
I would like to know when the content of a GtkEntry is
changed. A signal certainly, but what's its name ?

http://developer.gnome.org/doc/API/2.0/gtk/GtkEditable.html#
GtkEditable-changed

Yeti

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

-- 
Bill Medland
mailto:billmedland mercuryspeed com
http://webhome.idirect.com/~kbmed




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