shortcut-label: add 'disabled-text' property

Desktop / GNOME / GTK - Georges Basile Stavracas Neto [gmail.com] - 27 July 2016 14:30 UTC

When there's no useful shortcut accelerator set, GtkShortcutLabel doesn't show any useful information.

To work around that, add a new property to set the text to be displayed when there's no accelerator available.

https://bugzilla.gnome.org/show_bug.cgi?id=769205

ddee89f shortcut-label: add 'disabled-text' property
gtk/gtkshortcutlabel.c | 78 ++++++++++++++++++++++++++++++++++++++++++++++--
gtk/gtkshortcutlabel.h | 7 +++++
2 files changed, 83 insertions(+), 2 deletions(-)

Upstream: git.gnome.org


  • Share