GNOME Bugzilla – Bug 592776
keyboard mnemonics don't work
Last modified: 2009-08-24 17:06:20 UTC
Created attachment 141472 [details] [review] patch this is because the key_press handler eats all key events.
Comment on attachment 141472 [details] [review] patch Thanks!
commit 370caa5f5bd25f005e810405b5b122c2fb1e0328 Author: Matthias Clasen <mclasen@redhat.com> Date: Mon Aug 24 12:06:00 2009 -0500 gnomine: Fix keyboard mnemonics don't work #592776 diff --git a/gnomine/gnomine.c b/gnomine/gnomine.c index 639028d..cb0798f 100644 --- a/gnomine/gnomine.c +++ b/gnomine/gnomine.c @@ -647,7 +647,7 @@ window_state_callback (GtkWidget * widget, GdkEventWindowState * event) } -static void +static gboolean pause_key_callback(GtkWidget *widget, GdkEventKey *event, gpointer data ) { @@ -658,8 +658,11 @@ gpointer data ) resume_game_cb(NULL, NULL); // Resume the game else pause_callback(NULL, NULL, NULL); // Pause the game + + return TRUE; } - + + return FALSE; }