From c8d47b0c8427e8feab06b2441f9cb7da12d8a868 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 28 Sep 2018 17:47:56 +0200 Subject: [PATCH] imwayland: Collect return value from ::delete-surrounding signal There's not much we can do about the signal not being handled, but we should fetch the return value anyway. --- modules/input/imwayland.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/input/imwayland.c b/modules/input/imwayland.c index c1b9a1c7ea..05e8c0c3d7 100644 --- a/modules/input/imwayland.c +++ b/modules/input/imwayland.c @@ -240,18 +240,18 @@ text_input_delete_surrounding_text_apply (GtkIMContextWaylandGlobal *global, gboolean valid) { GtkIMContextWayland *context; - + gboolean retval; gint len; struct surrounding_delete defaults = {0}; - + context = GTK_IM_CONTEXT_WAYLAND (global->current); - + len = context->pending_surrounding_delete.after_length + context->pending_surrounding_delete.before_length; if (len > 0 && valid) g_signal_emit_by_name (global->current, "delete-surrounding", -context->pending_surrounding_delete.before_length, - len); + len, &retval); context->pending_surrounding_delete = defaults; }