key press events and gtk_dialog_new_with_buttons()
- From: rgipps netspace net au
- To: gtk-app-devel-list gnome org
- Subject: key press events and gtk_dialog_new_with_buttons()
- Date: Tue, 10 Jan 2006 12:51:27 +1100
I have created a dialogue window using gtk_dialogue_new_with_buttons (see below)
and attached a callback function to the "response" event.
gtk_dialog_new_with_buttons("Y-Axis Scales",
NULL,
GTK_DIALOG_MODAL,
GTK_STOCK_CANCEL,
GTK_RESPONSE_CANCEL,
GTK_STOCK_OK,
GTK_RESPONSE_OK,
NULL);
If the Enter key is pressed I want the dialogue to act as if the OK button has
been clicked and if the Escape key is pressed to look like the Cancel button has
been clicked. What is the best way to go about doing this?
Richard.
------------------------------------------------------------
This email was sent from Netspace Webmail: http://www.netspace.net.au
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]