shortcut-label: make it public

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

GtkShortcutLabel is a widget that displays a single shortcut accelerator or gesture in the user interface, and is currently used by the shortcuts window.

This widget, however, has public value as other applications also may want to expose their own shortcuts. For instance, it'll be useful for the Keyboard panel on Control Center and the new shortcut editor in Pitivi, among others.

This patch exposes GtkShortcutLabel as a public widget, and adds the necessary documentation.

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

7543cd8 shortcut-label: make it public
docs/reference/gtk/gtk3.types.in | 1 +
gtk/Makefile.am | 2 +-
gtk/gtk.h | 1 +
gtk/gtkshortcutlabel.c | 49 ++++++++++++++++++++++++++++++++++-
gtk/gtkshortcutlabel.h | 52 ++++++++++++++++++++++++++++++++++++++
gtk/gtkshortcutlabelprivate.h | 47 ----------------------------------
gtk/gtkshortcutsshortcut.c | 2 +-
7 files changed, 104 insertions(+), 50 deletions(-)

Upstream: git.gnome.org


  • Share