[gtk/gtk-3-24: 1/2] entry: Always show 'select-all' button on touch popup



commit c823a4d673042215629a2e98a801b1e2feb0b65a
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu May 7 17:30:22 2020 +0530

    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.

 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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]