key_press_event



Hi!
I've a window with an entry and a button, I'd like that when I fill the
entry and I press "return" (for example) the button will be clicked.
I wrote:

gboolean on_entry_key_press_event (GtkWidget *widget,GdkEventKey
*event,gpointer user_data)
{
	gtk_butto_clicked (lookup_widget (GTK_WIDGET (widget), "buttonName"));
	return FALSE;
}

...but it doesn't work...

any idea?
Thanks
and kisses
Tamara





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