summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutlabel.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary gtk_widget_show callsTimm Bäder2017-01-221-3/+0
|
* shortcuts: the accelerator should always be LTRChristian Hergert2016-10-101-0/+3
| | | | | | | Even on RTL languages, we want the shortcut to be LTR so that we always have <control> to the left of the accel keyval. https://bugzilla.gnome.org/show_bug.cgi?id=772695
* shortcut-label: add 'disabled-text' propertyGeorges Basile Stavracas Neto2016-07-271-2/+76
| | | | | | | | | | | 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
* shortcut-label: make it publicGeorges Basile Stavracas Neto2016-07-271-1/+48
| | | | | | | | | | | | | | | | 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
* shortcuts window: Fix handling of significant xml charsMatthias Clasen2016-06-191-0/+15
| | | | | | | We are using markup in the labels, so we need to escape things like < and >. https://bugzilla.gnome.org/show_bug.cgi?id=767795
* shortcutlabel: Use a label directlyTimm Bäder2016-01-141-10/+4
| | | | We can everything we need without the frame around it now.
* shortcut label: Tweak modifier key renderingMatthias Clasen2015-12-041-3/+13
| | | | | | The subscript was affecting the vertical alignment too much, so tweak the rendering of the L/R markers to avoid that. Also, mark these as translatable.
* shortcuts: Extend the accelerator syntax moreMatthias Clasen2015-12-041-4/+103
| | | | | | Cover cases like left+right control, and render them nicely. The gtk3-demo builder shortcuts example shows the new possibilities.
* help overlay: Allow key sequencesMatthias Clasen2015-11-141-41/+53
| | | | | | | Extend the syntax to allow sequences of keys or key combinations, e.g. t+t or <ctl>c+<ctl>x. https://bugzilla.gnome.org/show_bug.cgi?id=758051
* shortcuts label: Redo the keycap themingMatthias Clasen2015-10-281-0/+1
| | | | Use a style class directly on the frame. This is easier to reuse.
* shortcut: Improve formatting of rangesMatthias Clasen2015-10-231-1/+1
| | | | Use a centered ellipsis, to make it look nicer.
* shortcuts: Support ranges in the display of shortcutsMatthias Clasen2015-10-221-21/+60
| | | | | Repeating Alt-1 to Alt-9 as individual shortcuts looks really boring, so allow compressing such ranges by specifying <Alt>1...9.
* Add GtkShortcutsWindowMatthias Clasen2015-10-211-0/+314
This is a toplevel window that is tailored towards showing help for shortcuts in an application. The implementation closely follows this design: https://wiki.gnome.org/Design/OS/HelpOverlay This implementation is inspired by earlier work in gnome-builder, thanks to Christian Hergert. https://bugzilla.gnome.org/show_bug.cgi?id=756428