forked from AuroraMiddleware/gtk
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:
parent
0ee7d8bc7c
commit
c823a4d673
@ -9794,7 +9794,7 @@ bubble_targets_received (GtkClipboard *clipboard,
|
|||||||
has_clipboard = gtk_selection_data_targets_include_text (data);
|
has_clipboard = gtk_selection_data_targets_include_text (data);
|
||||||
mode = gtk_entry_get_display_mode (entry);
|
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);
|
append_bubble_action (entry, toolbar, _("Select all"), "edit-select-all-symbolic", "select-all", !all_selected);
|
||||||
|
|
||||||
if (priv->editable && has_selection && mode == DISPLAY_NORMAL)
|
if (priv->editable && has_selection && mode == DISPLAY_NORMAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user