summaryrefslogtreecommitdiff
path: root/gtk/gtklabel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-08-08 09:51:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-08-08 11:48:32 -0400
commit3faa7feb7c06868d69b9414460c69483c4a107df (patch)
treee2cbbf3ae6b3f1c30d901af33704c8ea5bd55ab9 /gtk/gtklabel.c
parentd099276b8948144c271d6154bfb9844065de709a (diff)
downloadgtk+-3faa7feb7c06868d69b9414460c69483c4a107df.tar.gz
label: Disable unavailable actions
Fixes: #3034
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r--gtk/gtklabel.c3
1 files changed, 3 insertions, 0 deletions
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);
}