diff options
author | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2005-06-27 03:13:37 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2005-06-27 03:13:37 +0000 |
commit | 9c792cb86a8d0422a07a716a3b024f25d9bca1bb (patch) | |
tree | 3f7834846e35f7aff5ac6ecfa07bcde80fb8412b /src/tree.c | |
parent | 545a9f467a9ace72aceb34f11b25ac8df5601306 (diff) |
Changed list dialog Selection behavior
Diffstat (limited to 'src/tree.c')
-rw-r--r-- | src/tree.c | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -354,8 +354,17 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) gtk_tree_view_set_model (GTK_TREE_VIEW (tree_view), GTK_TREE_MODEL (model)); - gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)), - GTK_SELECTION_MULTIPLE); + if (!(tree_data->radiobox || tree_data->checkbox)) { + if (tree_data->multi) + gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)), + GTK_SELECTION_MULTIPLE); + else + gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)), + GTK_SELECTION_SINGLE); + } + else + gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)), + GTK_SELECTION_NONE); column_index = 0; |