From 9685154675d745fd17e8a45c96e59ef4702e1a18 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 26 May 2021 00:40:05 +0300 Subject: [PATCH 53/53] gtk3x: Drop handle_edit_key_release() It did nothing. See osdn #42389 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/editgui.c | 8 -------- client/gui-gtk-4.0/editgui.h | 1 - client/gui-gtk-4.0/gui_main.c | 4 ---- 3 files changed, 13 deletions(-) diff --git a/client/gui-gtk-4.0/editgui.c b/client/gui-gtk-4.0/editgui.c index 0ef1cdbdd0..a6990a290c 100644 --- a/client/gui-gtk-4.0/editgui.c +++ b/client/gui-gtk-4.0/editgui.c @@ -1803,14 +1803,6 @@ gboolean handle_edit_key_press(GdkEvent *ev) return TRUE; } -/************************************************************************//** - Key release handler. -****************************************************************************/ -gboolean handle_edit_key_release(GdkEventKey *ev) -{ - return FALSE; -} - /************************************************************************//** Get the pointer for the editbar embedded in the client's GUI. ****************************************************************************/ diff --git a/client/gui-gtk-4.0/editgui.h b/client/gui-gtk-4.0/editgui.h index f1489bb60e..2e41aa1d04 100644 --- a/client/gui-gtk-4.0/editgui.h +++ b/client/gui-gtk-4.0/editgui.h @@ -40,7 +40,6 @@ gboolean handle_edit_mouse_button_press(GdkEvent *ev); gboolean handle_edit_mouse_button_release(GdkEvent *ev); gboolean handle_edit_mouse_move(GdkEvent *ev); gboolean handle_edit_key_press(GdkEvent *ev); -gboolean handle_edit_key_release(GdkEventKey *ev); struct editinfobox { GtkWidget *widget; diff --git a/client/gui-gtk-4.0/gui_main.c b/client/gui-gtk-4.0/gui_main.c index 2475c146e0..5e3fad95df 100644 --- a/client/gui-gtk-4.0/gui_main.c +++ b/client/gui-gtk-4.0/gui_main.c @@ -612,10 +612,6 @@ static gboolean toplevel_key_release_handler(GtkWidget *w, GdkEventKey *ev, return FALSE; } - if (editor_is_active()) { - return handle_edit_key_release(ev); - } - return FALSE; } -- 2.30.2