diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-08 09:51:47 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-08 11:48:32 -0400 |
commit | 3faa7feb7c06868d69b9414460c69483c4a107df (patch) | |
tree | e2cbbf3ae6b3f1c30d901af33704c8ea5bd55ab9 /gtk/gtklabel.c | |
parent | d099276b8948144c271d6154bfb9844065de709a (diff) | |
download | gtk+-3faa7feb7c06868d69b9414460c69483c4a107df.tar.gz |
label: Disable unavailable actions
Fixes: #3034
Diffstat (limited to 'gtk/gtklabel.c')
-rw-r--r-- | gtk/gtklabel.c | 3 |
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); } |