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:
@ -448,7 +448,8 @@ gimp_container_editor_select_items (GimpContainerView *view,
|
|||||||
if (klass->select_item)
|
if (klass->select_item)
|
||||||
klass->select_item (editor, viewable);
|
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;
|
const gchar *signal_name;
|
||||||
GType children_type;
|
GType children_type;
|
||||||
|
@ -680,7 +680,6 @@ gimp_container_view_multi_selected (GimpContainerView *view,
|
|||||||
|
|
||||||
g_return_val_if_fail (GIMP_IS_CONTAINER_VIEW (view), FALSE);
|
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,
|
g_signal_emit (view, view_signals[SELECT_ITEMS], 0,
|
||||||
items, items_data, &success);
|
items, items_data, &success);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user