[evince/outline_search_improvements: 28/28] sidebar-links: disable GtkTreeView's builtin search




commit 27fa27ed5ad79f160e57ca3b4c0e0f165d6d782b
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Sat Jun 25 16:05:16 2022 +0100

    sidebar-links: disable GtkTreeView's builtin search
    
    Evince has its own Outline search which is better
    suited than the one builtin in GtkTreeView, so let's
    disable the one in GtkTreeView to avoid confusion.

 shell/ev-sidebar-links.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/shell/ev-sidebar-links.c b/shell/ev-sidebar-links.c
index 7224af1a4..c10df47a9 100644
--- a/shell/ev-sidebar-links.c
+++ b/shell/ev-sidebar-links.c
@@ -1074,6 +1074,7 @@ ev_sidebar_links_construct (EvSidebarLinks *ev_sidebar_links)
        gtk_tree_selection_set_mode (selection, GTK_SELECTION_NONE);
        gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (priv->tree_view), FALSE);
        gtk_tree_view_set_tooltip_column (GTK_TREE_VIEW (priv->tree_view), 0);
+       gtk_tree_view_set_enable_search (GTK_TREE_VIEW (priv->tree_view), FALSE);
        gtk_container_add (GTK_CONTAINER (swindow), priv->tree_view);
 
        gtk_box_pack_start (GTK_BOX (ev_sidebar_links), swindow, TRUE, TRUE, 0);


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