aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-26 16:15:39 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2006-04-26 16:15:39 +0800
commit243a8109575c26aecd9061163a5b813b357ec283 (patch)
tree6927c4271f7df9d6b0972749f69d98ba2295d3a5 /mail/em-folder-tree.c
parent57b27c587e386ae2c66a9088c2b1e46f4046b157 (diff)
downloadgsoc2013-evolution-243a8109575c26aecd9061163a5b813b357ec283.tar.gz
gsoc2013-evolution-243a8109575c26aecd9061163a5b813b357ec283.tar.zst
gsoc2013-evolution-243a8109575c26aecd9061163a5b813b357ec283.zip
Committing fix for 323402 from Vincent Noel
svn path=/trunk/; revision=31896
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index a85c98bd39..465642935c 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -475,6 +475,11 @@ folder_tree_new (EMFolderTree *emft, EMFolderTreeModel *model)
GtkTreeViewColumn *column;
GtkCellRenderer *renderer;
GtkWidget *tree;
+ gboolean side_bar_search;
+ GConfClient *gconf;
+
+ gconf = mail_config_get_gconf_client ();
+ side_bar_search = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/side_bar_search", NULL);
tree = gtk_tree_view_new_with_model ((GtkTreeModel *) model);
GTK_WIDGET_SET_FLAGS(tree, GTK_CAN_FOCUS);
@@ -487,6 +492,7 @@ folder_tree_new (EMFolderTree *emft, EMFolderTreeModel *model)
gtk_tree_view_column_set_cell_data_func (column, renderer, render_pixbuf, NULL, NULL);
renderer = gtk_cell_renderer_text_new ();
+ g_object_set (G_OBJECT (renderer), "ellipsize", PANGO_ELLIPSIZE_END, NULL);
gtk_tree_view_column_pack_start (column, renderer, TRUE);
gtk_tree_view_column_set_cell_data_func (column, renderer, render_display_name, NULL, NULL);
@@ -496,7 +502,8 @@ folder_tree_new (EMFolderTree *emft, EMFolderTreeModel *model)
gtk_tree_view_set_headers_visible ((GtkTreeView *) tree, FALSE);
gtk_tree_view_set_search_column((GtkTreeView *)tree, COL_STRING_DISPLAY_NAME);
-
+ gtk_tree_view_set_enable_search((GtkTreeView *)tree, side_bar_search);
+
return (GtkTreeView *) tree;
}