[gcompris/gcomprixogoo] Added a keyboard shortut. Now ctrl-w will close the activity like 'esc' does.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Added a keyboard shortut. Now ctrl-w will close the activity like 'esc' does.
- Date: Mon, 23 Nov 2009 20:45:19 +0000 (UTC)
commit 89a83f963596aa6b2b1145bc2251b7ab936b1d41
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Mon Nov 23 21:41:06 2009 +0100
Added a keyboard shortut. Now ctrl-w will close the activity like 'esc' does.
src/gcompris/gcompris.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c
index e5ae6a3..eb42e3a 100644
--- a/src/gcompris/gcompris.c
+++ b/src/gcompris/gcompris.c
@@ -314,6 +314,14 @@ board_widget_key_press_callback (GtkWidget *widget,
gc_exit();
return TRUE;
}
+ else if(event->state & GDK_CONTROL_MASK && ((event->keyval == GDK_w)
+ || (event->keyval == GDK_W))) {
+ gc_close_all_dialog();
+
+ if (gc_board_get_current()->previous_board != NULL)
+ gc_board_stop();
+ return TRUE;
+ }
else if(event->state & GDK_CONTROL_MASK && ((event->keyval == GDK_f)
|| (event->keyval == GDK_F))) {
/* Toggle fullscreen */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]