[anjuta: 46/46] file-manager: (Try to) disable inline search



commit 26347bd3a6448867730dda7dafe3ffabee9e9741
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Mar 5 10:27:10 2011 +0100

    file-manager: (Try to) disable inline search
    
    Usually users want to search in the editor when pressing Ctrl-F

 plugins/file-manager/file-view.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/file-manager/file-view.c b/plugins/file-manager/file-view.c
index cff943c..c83b37a 100644
--- a/plugins/file-manager/file-view.c
+++ b/plugins/file-manager/file-view.c
@@ -581,10 +581,6 @@ file_view_init (AnjutaFileView *object)
 		gtk_tree_view_get_selection (GTK_TREE_VIEW (object));
 	g_signal_connect (selection, "changed",
 					  G_CALLBACK (file_view_selection_changed), object);
-	
-	gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (object), FALSE);
-	
-	g_object_set (object, "has-tooltip", TRUE, NULL);
 
 	/* DND */
 	gtk_tree_view_enable_model_drag_source (GTK_TREE_VIEW(object),
@@ -710,5 +706,9 @@ file_view_class_init (AnjutaFileViewClass *klass)
 GtkWidget*
 file_view_new (void)
 {
-	return g_object_new (ANJUTA_TYPE_FILE_VIEW, NULL);
+	return g_object_new (ANJUTA_TYPE_FILE_VIEW, 
+	                     "headers-visible", FALSE,
+	                     "has-tooltip", TRUE,
+	                     "enable-search", FALSE,
+	                     NULL);
 }



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