Re: GtkEntry Signal



--- Jin Chen <jinc companionlink com> wrote:
jrb redhat com ¼g¹D¡G

Jin Chen <jinc companionlink com> writes:

Hi,

I wrote an Entry Widget, and I need a signal
handler to do something
whenever I use  "Return Key"/"Mouse"/"Tab Key"
to leave. Could
you tell me what kind of signal I can use? I
know "activate" can do
the work if I press Return, but it doesn't work
for Mouse/Tab.

Try the "focus_out" signal.

-Jonathan

I tried like

gtk_signal_connect(GTK_OBJECTS(entry), "focus_out",
GTK_SIGNAL_FUNC(callback), (void *)(const char *)
string);

but id didn't work. Is there anything wrong?


You might want to remove the 'S' from "GTK_OBJECTS"
and then try it again ;)

--Ilan


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




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