app: hide container-editor busy box when clearing async-set binding
(cherry picked from commit e5e998e9c5)
This commit is contained in:
@ -560,6 +560,9 @@ gimp_container_editor_bind_to_async_set (GimpContainerEditor *editor,
|
|||||||
g_return_if_fail (async_set == NULL || GIMP_IS_ASYNC_SET (async_set));
|
g_return_if_fail (async_set == NULL || GIMP_IS_ASYNC_SET (async_set));
|
||||||
g_return_if_fail (async_set == NULL || message != NULL);
|
g_return_if_fail (async_set == NULL || message != NULL);
|
||||||
|
|
||||||
|
if (! async_set && ! editor->priv->async_set_binding)
|
||||||
|
return;
|
||||||
|
|
||||||
g_clear_object (&editor->priv->async_set_binding);
|
g_clear_object (&editor->priv->async_set_binding);
|
||||||
|
|
||||||
if (async_set)
|
if (async_set)
|
||||||
@ -572,4 +575,8 @@ gimp_container_editor_bind_to_async_set (GimpContainerEditor *editor,
|
|||||||
editor->priv->busy_box, "visible",
|
editor->priv->busy_box, "visible",
|
||||||
G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN);
|
G_BINDING_SYNC_CREATE | G_BINDING_INVERT_BOOLEAN);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
gtk_widget_hide (editor->priv->busy_box);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user