app: fix "%d items selected" label when multi-selecting.

This got broken in commit 28f6b1b268 because you want to always throw
the signal. Yet the context must only be updated with a grid view in the
GimpContainerEditor. Now it should work correctly (hopefully!).
This commit is contained in:
Jehan
2021-11-10 23:12:21 +01:00
parent 60bf8cd87e
commit ca28934dfc
2 changed files with 4 additions and 4 deletions

View File

@ -448,7 +448,8 @@ gimp_container_editor_select_items (GimpContainerView *view,
if (klass->select_item)
klass->select_item (editor, viewable);
if (editor->priv->container)
if (editor->priv->container &&
editor->priv->view_type == GIMP_VIEW_TYPE_GRID)
{
const gchar *signal_name;
GType children_type;

View File

@ -680,9 +680,8 @@ gimp_container_view_multi_selected (GimpContainerView *view,
g_return_val_if_fail (GIMP_IS_CONTAINER_VIEW (view), FALSE);
if (! gimp_container_view_are_selected_items (view, items))
g_signal_emit (view, view_signals[SELECT_ITEMS], 0,
items, items_data, &success);
g_signal_emit (view, view_signals[SELECT_ITEMS], 0,
items, items_data, &success);
return success;
}