textview: Always show select-all button in touch popup
"Select all" action is possible regardless of the text selection state or if the text is editable or not.
This commit is contained in:
parent
a8363a9887
commit
7886c645c4
@ -9745,8 +9745,7 @@ bubble_targets_received (GtkClipboard *clipboard,
|
||||
can_insert = gtk_text_iter_can_insert (&iter, priv->editable);
|
||||
has_clipboard = gtk_selection_data_targets_include_text (data);
|
||||
|
||||
if (range_contains_editable_text (&sel_start, &sel_end, priv->editable) && has_selection)
|
||||
append_bubble_action (text_view, toolbar, _("Select all"), "edit-select-all-symbolic", "select-all", !all_selected);
|
||||
append_bubble_action (text_view, toolbar, _("Select all"), "edit-select-all-symbolic", "select-all", !all_selected);
|
||||
|
||||
if (range_contains_editable_text (&sel_start, &sel_end, priv->editable) && has_selection)
|
||||
append_bubble_action (text_view, toolbar, _("Cut"), "edit-cut-symbolic", "cut-clipboard", TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user