Handle "Enter" pressing at GtkEntry



Hello all,

What is the right way to catch "Enter" pressing at the end of the text input to GtkEntry. The obvious way is conecting the callback to the "activate" signal, but for some reason documentation says "Applications should not connect to it". The alternative method is just to catch key press event and check if the "Enter" key is pressed, but this looks less convenient comparing with catching the "activate" signal. Why is caonnecting user callback to "activate" signal bad?

Regards,
Yury.



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