entry: Always show 'select-all' button on touch popup

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.
This commit is contained in:
Mohammed Sadiq 2020-05-07 17:30:22 +05:30
parent 0ee7d8bc7c
commit c823a4d673

View File

@ -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)