diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-05-03 04:32:19 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-05-03 04:32:19 +0800 |
commit | 874390a8376202f138266bdd641e810db93a3136 (patch) | |
tree | 1e19721ead0b36bade4cc011313b0c70b5c71a5d /widgets/table/e-tree-selection-model.c | |
parent | cad5e25f863f3bf643a2c7a7b4a77be0bc9db130 (diff) | |
download | gsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.tar.gz gsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.tar.zst gsoc2013-evolution-874390a8376202f138266bdd641e810db93a3136.zip |
Added this function that lets you specify the translation domain.
2002-05-02 Christopher James Lahey <clahey@ximian.com>
* gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h
(e_popup_menu_create_with_domain): Added this function that lets
you specify the translation domain.
From gal/e-table/ChangeLog:
2002-05-02 Christopher James Lahey <clahey@ximian.com>
* e-table-click-to-add.c (finish_editing): Add horizontal dividers
here too.
* e-table-config.c (create_global_store): Translate column headers
here.
* e-table-header-item.c (ethi_header_context_menu): Use
e_popup_menu_create_with_domain here.
* e-table-header-utils.c (e_table_header_draw_button): Translate
from utf8 here before drawing.
* e-table-memory-store.c, e-table-memory-store.h
(e_table_memory_store_insert_adopt_array): Changed the name of
this function from e_table_memory_store_insert_adopt.
(e_table_memory_store_insert_adopt): Added this function which
takes a ... list.
* e-table-utils.c (et_col_spec_to_col): Translate column titles to
utf8 here.
svn path=/trunk/; revision=16668
Diffstat (limited to 'widgets/table/e-tree-selection-model.c')
-rw-r--r-- | widgets/table/e-tree-selection-model.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/widgets/table/e-tree-selection-model.c b/widgets/table/e-tree-selection-model.c index c7799313f4..4e1b626259 100644 --- a/widgets/table/e-tree-selection-model.c +++ b/widgets/table/e-tree-selection-model.c @@ -887,13 +887,14 @@ etsm_selected_count_recurse (ETreeSelectionModel *etsm, etsm_selected_count_all_recurse(etsm, path, count); return; } - if (!selection_node->any_children_selected) - return; if (selection_node->selected) { (*count) ++; } + if (!selection_node->any_children_selected) + return; + if (selection_node->children) { ETreePath child = e_tree_model_node_get_first_child(E_TREE_MODEL(etsm->priv->model), path); int i; @@ -955,10 +956,8 @@ etsm_select_all (ESelectionModel *selection) etsm->priv->root->any_children_selected = TRUE; e_tree_selection_model_node_fill_children(etsm, root, etsm->priv->root); - etsm->priv->root->all_children_selected_array = e_bit_array_new(etsm->priv->root->num_children); - etsm->priv->root->any_children_selected_array = e_bit_array_new(etsm->priv->root->num_children); - e_bit_array_select_all(etsm->priv->root->all_children_selected_array); - e_bit_array_select_all(etsm->priv->root->any_children_selected_array); + etsm->priv->root->all_children_selected_array = NULL; + etsm->priv->root->any_children_selected_array = NULL; if (etsm->priv->cursor_col == -1) etsm->priv->cursor_col = 0; |