[gtk+/gtk-2-16] Bug 588943 – set correct selection before emitting cursor-changed when searching



commit 82df10f3903d79e472052f067b2cc78efcf3536d
Author: Paolo Borelli <porelli gnome org>
Date:   Sat Jul 18 13:14:07 2009 +0200

    Bug 588943 â?? set correct selection before emitting cursor-changed when searching
    
    Make sure the correct selection is set when emitting cursor-changed
    during an interactive search

 gtk/gtktreeview.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index e845302..ce9b1b2 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -14581,8 +14581,8 @@ gtk_tree_view_search_iter (GtkTreeModel     *model,
             {
               gtk_tree_view_scroll_to_cell (tree_view, path, NULL,
 					    TRUE, 0.5, 0.0);
-	      gtk_tree_view_real_set_cursor (tree_view, path, FALSE, TRUE);
               gtk_tree_selection_select_iter (selection, iter);
+              gtk_tree_view_real_set_cursor (tree_view, path, FALSE, TRUE);
 
 	      if (path)
 		gtk_tree_path_free (path);



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