Re: GtkEntry Signal



jrb redhat com 寫道:

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?

Jin





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