--- tme/host/gtk/gtk-keyboard.c 2018/04/24 16:39:15 1.1.1.1 +++ tme/host/gtk/gtk-keyboard.c 2018/04/24 16:40:39 1.1.1.2 @@ -1,4 +1,4 @@ -/* $Id: gtk-keyboard.c,v 1.1.1.1 2018/04/24 16:39:15 root Exp $ */ +/* $Id: gtk-keyboard.c,v 1.1.1.2 2018/04/24 16:40:39 root Exp $ */ /* host/gtk/gtk-keyboard.c - GTK keyboard support: */ @@ -34,7 +34,7 @@ */ #include -_TME_RCSID("$Id: gtk-keyboard.c,v 1.1.1.1 2018/04/24 16:39:15 root Exp $"); +_TME_RCSID("$Id: gtk-keyboard.c,v 1.1.1.2 2018/04/24 16:40:39 root Exp $"); /* includes: */ #include "gtk-display.h" @@ -368,6 +368,7 @@ _tme_gtk_keyboard_key_event(GtkWidget *w /* unlock the mutex: */ tme_mutex_unlock(&display->tme_gtk_display_mutex); + /* don't process this event any further: */ return (TRUE); } @@ -403,7 +404,7 @@ _tme_gtk_keyboard_lookup(struct tme_keyb _("cannot generate keysym '%s' directly%s"), keysym_bad->tme_gtk_keysym_bad_string, (keysym_bad->tme_keysym_bad_flags - != TME_KEYBOARD_LOOKUP_FLAG_OK_DIRECT + == TME_KEYBOARD_LOOKUP_FLAG_OK_DIRECT ? "" : _(", or through a macro")))); @@ -706,14 +707,14 @@ _tme_gtk_keyboard_attach(struct tme_gtk_ "enter_notify_event", GTK_SIGNAL_FUNC(_tme_gtk_display_enter_focus), NULL); - gtk_signal_connect(GTK_OBJECT(screen->tme_gtk_screen_event_box), - "key_press_event", - GTK_SIGNAL_FUNC(_tme_gtk_keyboard_key_event), - screen); - gtk_signal_connect(GTK_OBJECT(screen->tme_gtk_screen_event_box), - "key_release_event", - GTK_SIGNAL_FUNC(_tme_gtk_keyboard_key_event), - screen); + gtk_signal_connect_after(GTK_OBJECT(screen->tme_gtk_screen_event_box), + "key_press_event", + GTK_SIGNAL_FUNC(_tme_gtk_keyboard_key_event), + screen); + gtk_signal_connect_after(GTK_OBJECT(screen->tme_gtk_screen_event_box), + "key_release_event", + GTK_SIGNAL_FUNC(_tme_gtk_keyboard_key_event), + screen); /* the event box can focus, and have it grab the focus now: */ GTK_WIDGET_SET_FLAGS(screen->tme_gtk_screen_event_box, GTK_CAN_FOCUS);