From 3faa7feb7c06868d69b9414460c69483c4a107df Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 8 Aug 2020 09:51:47 -0400 Subject: [PATCH] label: Disable unavailable actions Fixes: #3034 --- gtk/gtklabel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c index 9a4f010fc9..1e9f566346 100644 --- a/gtk/gtklabel.c +++ b/gtk/gtklabel.c @@ -5395,9 +5395,12 @@ gtk_label_update_actions (GtkLabel *self) link = gtk_label_get_focus_link (self, NULL); } + gtk_widget_action_set_enabled (widget, "clipboard.cut", FALSE); gtk_widget_action_set_enabled (widget, "clipboard.copy", has_selection); + gtk_widget_action_set_enabled (widget, "clipboard.paste", FALSE); gtk_widget_action_set_enabled (widget, "selection.select-all", gtk_label_get_selectable (self)); + gtk_widget_action_set_enabled (widget, "selection.delete", FALSE); gtk_widget_action_set_enabled (widget, "link.open", !has_selection && link); gtk_widget_action_set_enabled (widget, "link.copy", !has_selection && link); }