app: data tree views are in single selection mode.

I am pretty sure that this should be in single selection mode because we don't
even really have code to handle cases with multiple brushes or font selected.
Right now, we assume in many places that there is only one font or brush (or
other data) active at a given time.
Yet this code (or older versions of it) is old apparently and I realize that
even in 2.10, I can ctrl/shift click to select several data objects. This is the
weird part.

Anyway let's put this in single selection mode and see how it goes. If there
were actually use cases which I didn't know about, I'm sure we'll soon have
reports.
This commit is contained in:
Jehan 2023-10-26 20:58:07 +02:00
parent 40811be562
commit 4e9a077219
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ gimp_data_factory_view_constructed (GObject *object)
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_container_editor_set_selection_mode (editor, GTK_SELECTION_MULTIPLE);
gimp_container_editor_set_selection_mode (editor, GTK_SELECTION_SINGLE);
if (GIMP_IS_CONTAINER_TREE_VIEW (editor->view))
{