Re: Entry and keyboard



- or you could just use the 'activate' signal -
;)

----- Original Message ----- 
From: "Markus Fischer" <mfischer guru josefine at>
To: "Arno" <arno-unix ifrance com>
Cc: <gtk-list gnome org>
Sent: Saturday, August 25, 2001 4:03 PM
Subject: Re: Entry and keyboard


On Sat, Aug 25, 2001 at 04:32:35PM -0400, Arno wrote : 
> I have a gtk_entry and if I click on the button send it sends the text. I 
> would like that one supports on enter makes the same thing. Somebody could 
> help me? 

Connect a handler to the 'key_press_event'; this handler gets
passed an event object whose property keyval gives you the
pressed key. You can use this to call whatever your 'send'
function is.

- Markus

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





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