[Xfce4-commits] [xfce/xfce4-appfinder] 01/01: Hidden option to disable entry completion (Bug #15827)

noreply at xfce.org noreply at xfce.org
Sat Dec 21 21:15:55 CET 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-appfinder.

commit 2d6b4bd0bad9a5b1019857cf924d812f48f1adb4
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Dec 21 17:14:55 2019 -0300

    Hidden option to disable entry completion (Bug #15827)
---
 src/appfinder-window.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index 6ef6eba..2d54c70 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -276,10 +276,12 @@ xfce_appfinder_window_init (XfceAppfinderWindow *window)
   gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (window->model));
   gtk_entry_completion_set_match_func (completion, xfce_appfinder_window_completion_match_func, window, NULL);
   gtk_entry_completion_set_text_column (completion, XFCE_APPFINDER_MODEL_COLUMN_COMMAND);
-  gtk_entry_completion_set_popup_completion (completion, TRUE);
   gtk_entry_completion_set_popup_single_match (completion, TRUE);
   gtk_entry_completion_set_inline_completion (completion, TRUE);
 
+  if (xfconf_channel_get_bool (window->channel, "/disable-completion", FALSE))
+    gtk_entry_completion_set_popup_completion (completion, FALSE);
+
   window->paned = pane = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
   gtk_box_pack_start (GTK_BOX (vbox), pane, TRUE, TRUE, 0);
   integer = xfconf_channel_get_int (window->channel, "/last/pane-position", DEFAULT_PANED_POSITION);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list