Commit 6fefbfd1 authored by Milan Crha's avatar Milan Crha

I#278 - Ctrl+Shift+Arrow to expand/collapse whole subthread

Closes #278
parent aff63c3c
...@@ -1045,11 +1045,13 @@ item_key_press (ETableItem *eti, ...@@ -1045,11 +1045,13 @@ item_key_press (ETableItem *eti,
} }
if (row != -1) { if (row != -1) {
path = e_tree_table_adapter_node_at_row ( path = e_tree_table_adapter_node_at_row (tree->priv->etta, row);
tree->priv->etta, row); if (path) {
if (path) if ((key->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK))
e_tree_table_adapter_node_set_expanded ( e_tree_table_adapter_node_set_expanded_recurse (tree->priv->etta, path, TRUE);
tree->priv->etta, path, TRUE); else
e_tree_table_adapter_node_set_expanded (tree->priv->etta, path, TRUE);
}
} }
return_val = 1; return_val = 1;
break; break;
...@@ -1068,11 +1070,13 @@ item_key_press (ETableItem *eti, ...@@ -1068,11 +1070,13 @@ item_key_press (ETableItem *eti,
} }
if (row != -1) { if (row != -1) {
path = e_tree_table_adapter_node_at_row ( path = e_tree_table_adapter_node_at_row (tree->priv->etta, row);
tree->priv->etta, row); if (path) {
if (path) if ((key->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK)) == (GDK_CONTROL_MASK | GDK_SHIFT_MASK))
e_tree_table_adapter_node_set_expanded ( e_tree_table_adapter_node_set_expanded_recurse (tree->priv->etta, path, FALSE);
tree->priv->etta, path, FALSE); else
e_tree_table_adapter_node_set_expanded (tree->priv->etta, path, FALSE);
}
} }
return_val = 1; return_val = 1;
break; break;
......
  • Is that just a keybinding and no context menu item?

  • Right, only key binding. The designers do not like the long evolution menus, with which I kind of agree, thus do not expect those things being in the menu or context menu.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment