[gimp/wip/Jehan/layers-dockable-refresh] app: unselect all layers when a search pattern is wrong.
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/wip/Jehan/layers-dockable-refresh] app: unselect all layers when a search pattern is wrong.
- Date: Thu, 23 Dec 2021 01:38:36 +0000 (UTC)
commit 0cc45e8f0dd8cceef4b167deeee1365b4f4a3771
Author: Jehan <jehan girinstud io>
Date: Thu Dec 23 02:06:06 2021 +0100
app: unselect all layers when a search pattern is wrong.
app/widgets/gimplayertreeview.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/app/widgets/gimplayertreeview.c b/app/widgets/gimplayertreeview.c
index 8a1b32201d..2136c69d8d 100644
--- a/app/widgets/gimplayertreeview.c
+++ b/app/widgets/gimplayertreeview.c
@@ -1320,6 +1320,7 @@ gimp_layer_tree_view_search_key_release (GtkWidget *widget,
error->message);
gtk_widget_set_tooltip_text (view->priv->link_search_entry,
tooltip);
+ gimp_image_set_selected_layers (image, NULL);
gtk_entry_set_attributes (GTK_ENTRY (view->priv->link_search_entry),
attrs);
g_free (tooltip);
@@ -1331,6 +1332,7 @@ gimp_layer_tree_view_search_key_release (GtkWidget *widget,
else if (items == NULL)
{
/* Pattern does not match any results. */
+ gimp_image_set_selected_layers (image, NULL);
gimp_widget_blink (view->priv->link_search_entry);
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]