[Xfce4-commits] [xfce/xfce4-appfinder] 01/03: Reset tree view cursor when text entry is empty

noreply at xfce.org noreply at xfce.org
Sat Aug 18 23:58:44 CEST 2018


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 834405403aea9ec61caaee4da3c273d4a1953189
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Aug 18 16:11:45 2018 -0300

    Reset tree view cursor when text entry is empty
---
 src/appfinder-window.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/appfinder-window.c b/src/appfinder-window.c
index 3dd3e74..cf8af4b 100644
--- a/src/appfinder-window.c
+++ b/src/appfinder-window.c
@@ -1223,6 +1223,11 @@ xfce_appfinder_window_entry_changed_idle (gpointer data)
               /* if filter is empty, clear selection */
               selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (window->view));
               gtk_tree_selection_unselect_all (selection);
+
+              /* reset cursor */
+              path = gtk_tree_path_new_first ();
+              gtk_tree_view_set_cursor (GTK_TREE_VIEW (window->view), path, NULL, FALSE);
+              gtk_tree_path_free (path);
             }
           else if (gtk_tree_view_get_visible_range (GTK_TREE_VIEW (window->view), &path, NULL))
             {

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


More information about the Xfce4-commits mailing list