Import assistant: Disable the search function of treeviews
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 7 Jun 2017 18:57:13 +0000 (20:57 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 7 Jun 2017 18:57:13 +0000 (20:57 +0200)
src/ui/gui/psppire-import-assistant.c

index dfd64dc214c3a3f51427f76d584cf9c28abb0608..ab959211c0a399b52cbfb85df3c06e4499cba34b 100644 (file)
@@ -846,6 +846,7 @@ first_line_page_create (PsppireImportAssistant *ia)
   if (ia->first_line_tree_view == NULL)
     {
       ia->first_line_tree_view = gtk_tree_view_new ();
+      g_object_set (ia->first_line_tree_view, "enable-search", FALSE, NULL);
 
       gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (ia->first_line_tree_view), TRUE);
 
@@ -1166,6 +1167,7 @@ separators_page_create (PsppireImportAssistant *ia)
     {
       GtkWidget *scroller = get_widget_assert (ia->builder, "fields-scroller");
       ia->fields_tree_view = gtk_tree_view_new ();
+      g_object_set (ia->fields_tree_view, "enable-search", FALSE, NULL);
       gtk_container_add (GTK_CONTAINER (scroller), GTK_WIDGET (ia->fields_tree_view));
       gtk_widget_show_all (scroller);
     }