[rhythmbox] sourcelist: enable interactive searching (bug #628665)



commit 9741825d32b3ed6830ec7473417ddc9b602bf1cc
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Sep 8 20:27:05 2010 +1000

    sourcelist: enable interactive searching (bug #628665)
    
    This was disabled in 2004 for some reason, but I can't think why,
    so I'm re-enabling it.

 sources/rb-sourcelist.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sources/rb-sourcelist.c b/sources/rb-sourcelist.c
index 3a6b0f3..da73899 100644
--- a/sources/rb-sourcelist.c
+++ b/sources/rb-sourcelist.c
@@ -674,9 +674,10 @@ rb_sourcelist_init (RBSourceList *sourcelist)
 	g_object_set (sourcelist->priv->treeview,
 		      "headers-visible", FALSE,
 		      "reorderable", TRUE,
+		      "enable-search", TRUE,
+		      "search-column", RB_SOURCELIST_MODEL_COLUMN_NAME,
 		      NULL);
 
-	gtk_tree_view_set_enable_search (GTK_TREE_VIEW (sourcelist->priv->treeview), FALSE);
 	rb_sourcelist_model_set_dnd_targets (RB_SOURCELIST_MODEL (sourcelist->priv->filter_model),
 					     GTK_TREE_VIEW (sourcelist->priv->treeview));
 



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