[gtk/wip/carlosg/imwayland-for-master: 7/12] imwayland: Collect return value from ::delete-surrounding signal
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/carlosg/imwayland-for-master: 7/12] imwayland: Collect return value from ::delete-surrounding signal
- Date: Tue, 18 Dec 2018 19:40:10 +0000 (UTC)
commit 8912dc226c642adf5a506a2dd7467739aaba8d5a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Sep 28 17:47:56 2018 +0200
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.
gtk/gtkimcontextwayland.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkimcontextwayland.c b/gtk/gtkimcontextwayland.c
index 50add11bfd..891d948c8a 100644
--- a/gtk/gtkimcontextwayland.c
+++ b/gtk/gtkimcontextwayland.c
@@ -224,18 +224,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]