[evolution-patches] Patch for Bug #54659 - Expand/collapse treeview rows on double-click



Hello,
The attached patch fixes bug #54659 (patch is also attached to bug).
This adds the behavior that if you double-click on an expandable row in
the tree view for the mail component, it will expand/collapse that row.
I used the code in Nautilus for this behavior as a guide.

Thanks,
Mason Kidd

--- mail/em-folder-tree.c-orig	2004-04-07 09:36:13.000000000 -0700
+++ mail/em-folder-tree.c	2004-04-10 09:48:54.727631820 -0700
@@ -1708,6 +1708,11 @@
 	GtkTreeIter iter;
 	char *path, *uri;
 
+	if (gtk_tree_view_row_expanded (priv->treeview, tree_path))
+		gtk_tree_view_collapse_row (priv->treeview, tree_path);
+	else
+		gtk_tree_view_expand_row (priv->treeview, tree_path, FALSE);
+				
 	if (!emft_select_func(NULL, model, tree_path, FALSE, emft))
 		return;
 


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