diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-06-20 12:15:43 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-06-20 13:02:42 +0800 |
commit | 7d98f48c246dd3024f4f093ca4249c993286ee36 (patch) | |
tree | bc7cc11a1bd434852de2739bf8d17364efa3c145 /mail/em-folder-selection-button.c | |
parent | cd29d53b07609ac39be3efa646baa59f9d1731ed (diff) | |
download | gsoc2013-evolution-7d98f48c246dd3024f4f093ca4249c993286ee36.tar.gz gsoc2013-evolution-7d98f48c246dd3024f4f093ca4249c993286ee36.tar.zst gsoc2013-evolution-7d98f48c246dd3024f4f093ca4249c993286ee36.zip |
EMFolderTree cleanups.
Diffstat (limited to 'mail/em-folder-selection-button.c')
-rw-r--r-- | mail/em-folder-selection-button.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/em-folder-selection-button.c b/mail/em-folder-selection-button.c index 933393ae80..cff76adcee 100644 --- a/mail/em-folder-selection-button.c +++ b/mail/em-folder-selection-button.c @@ -251,12 +251,20 @@ folder_selection_button_clicked (GtkButton *button) EMFolderSelectionButtonPrivate *priv; EMFolderTree *emft; GtkWidget *dialog; + GtkTreeSelection *selection; + GtkSelectionMode mode; priv = EM_FOLDER_SELECTION_BUTTON_GET_PRIVATE (button); emft = (EMFolderTree *) em_folder_tree_new_with_model (priv->model); - em_folder_tree_set_multiselect (emft, priv->multiple_select); + selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (emft)); + if (priv->multiple_select) + mode = GTK_SELECTION_MULTIPLE; + else + mode = GTK_SELECTION_SINGLE; + gtk_tree_selection_set_mode (selection, mode); + em_folder_tree_set_excluded ( emft, EMFT_EXCLUDE_NOSELECT | EMFT_EXCLUDE_VIRTUAL | EMFT_EXCLUDE_VTRASH); |