From c823a4d673042215629a2e98a801b1e2feb0b65a Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Thu, 7 May 2020 17:30:22 +0530 Subject: [PATCH] entry: Always show 'select-all' button on touch popup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On touch, the popup shown shall contain the 'select-all' button only if a selection is in progress and if the entry is editable. Let the button be shown always if selectable so that it’s more helpful. --- gtk/gtkentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index db93ee1baa..b3424444a9 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -9794,7 +9794,7 @@ bubble_targets_received (GtkClipboard *clipboard, has_clipboard = gtk_selection_data_targets_include_text (data); mode = gtk_entry_get_display_mode (entry); - if (priv->editable && has_selection && mode == DISPLAY_NORMAL) + if (mode == DISPLAY_NORMAL) append_bubble_action (entry, toolbar, _("Select all"), "edit-select-all-symbolic", "select-all", !all_selected); if (priv->editable && has_selection && mode == DISPLAY_NORMAL)