Import assistant: Disable the search function of treeviews
[pspp] / src / ui / gui / psppire-import-assistant.c
index bd69629d84e803cc12e5519048e7d2e6dbb9c7d8..ab959211c0a399b52cbfb85df3c06e4499cba34b 100644 (file)
@@ -189,16 +189,17 @@ struct separator
 /* All the separators in the dialog box. */
 static const struct separator separators[] =
   {
-    {"space", ' '},
-    {"tab", '\t'},
-    {"bang", '!'},
-    {"colon", ':'},
-    {"comma", ','},
-    {"hyphen", '-'},
-    {"pipe", '|'},
+    {"space",     ' '},
+    {"tab",       '\t'},
+    {"bang",      '!'},
+    {"colon",     ':'},
+    {"comma",     ','},
+    {"hyphen",    '-'},
+    {"pipe",      '|'},
     {"semicolon", ';'},
-    {"slash", '/'},
+    {"slash",     '/'},
   };
+
 #define SEPARATOR_CNT (sizeof separators / sizeof *separators)
 
 struct separator_count_node
@@ -845,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);
 
@@ -1165,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);
     }