[gtk/gtk-3-24: 1/2] text-view: Fix select-all from touch bubble
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] text-view: Fix select-all from touch bubble
- Date: Mon, 13 Jul 2020 11:32:14 +0000 (UTC)
commit c5fe16caa63ad7a40d9e80d929170c1cd3557c6f
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Sat Jul 11 12:58:42 2020 +0530
text-view: Fix select-all from touch bubble
The 'select-all' signal requires a boolean argument to specify
whether to select all or none. So explicitly pass TRUE to select
all text instead of letting the demons choose one for us.
gtk/gtktextview.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index a1c0bfce83..ba7de83c76 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -9692,7 +9692,11 @@ activate_bubble_cb (GtkWidget *item,
signal = g_object_get_qdata (G_OBJECT (item), quark_gtk_signal);
gtk_widget_hide (text_view->priv->selection_bubble);
- g_signal_emit_by_name (text_view, signal);
+
+ if (strcmp (signal, "select-all") == 0)
+ g_signal_emit_by_name (text_view, "select-all", TRUE);
+ else
+ g_signal_emit_by_name (text_view, signal);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]