close dialog with enter



i created a gtk_dialog with a gtk_entry and two buttons: ok and cancel
i want to close the dialog when the user press enter while the entry is focused like if the ok button were 
clicked. Do you know how to do this?
-- 
______________________________________________
Check out the latest SMS services @ http://www.linuxmail.org 
This allows you to send and receive SMS through your mailbox.


Powered by Outblaze



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