summaryrefslogtreecommitdiff
path: root/gtk/gtkshortcutsshortcut.c
Commit message (Collapse)AuthorAgeFilesLines
* shortcuts: Don't include gtk.hBenjamin Otte2018-02-081-2/+6
| | | | | Clean up all shortcuts includes to only include the necessary files while we're at it.
* The big versioning cleanupMatthias Clasen2018-02-061-2/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* gtk: Intern css namesMatthias Clasen2017-11-171-1/+1
| | | | This avoids a bunch of strdups at startup.
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-151-2/+2
| | | | | | | | Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
* image: Change gettersBenjamin Otte2017-11-151-6/+1
| | | | | | | | | | | Instead of returning the icon size with them, make gtk_image_get_icon_name() and gtk_image_get_gicon() only return the icon itself. As a benefit, we can turn them into regular getters that return values instead of requiring out parameters. Instead, provide gtk_image_get_icon_size() to query the icon size.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-1/+3
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* widget: Add baseline and out_clip parameters to size-allocateTimm Bäder2017-07-191-4/+6
| | | | | | | | | | | Since setting a clip is mandatory for almost all widgets, we can as well change the size-allocate signature to include a out_clip parameter, just like GtkCssGadget did. And since we now always propagate baselines, we might as well pass that one on to size-allocate. This way we can also make sure to transform the clip returned from size-allocate to parent-coordinates, i.e. the same coordinate space priv->allocation is in.
* widget: Remove show-all propertyTimm Bäder2017-01-201-7/+2
| | | | Doesn't make sense anymore now that gtk_widget_show_all is gone.
* shortcutsshortcut: Be a GtkWidgetTimm Bäder2017-01-201-25/+49
| | | | | Instead of subclassing GtkBox and overriding _add to not work, subclass GtkWidget and add a normal GtkBox as a child widget.
* Use Unicode in translatable stringsPiotr Drąg2016-12-191-2/+2
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772371
* gtk: Include the appropriate headersEmmanuele Bassi2016-10-171-1/+1
|
* GtkShortcutsShortcut: Support single finger swipe gesturesFelix Riemann2016-10-131-0/+16
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=772770
* shortcut-label: make it publicGeorges Basile Stavracas Neto2016-07-271-1/+1
| | | | | | | | | | | | | | | | 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: Follow changes of accelsMatthias Clasen2016-04-171-0/+64
| | | | | | | | | Add a way to associate a detailed action name with a shortcut. If the action name is set, update the accelerator whenever accels change on the window that the shortcuts window is associated with. https://bugzilla.gnome.org/show_bug.cgi?id=764975
* Various documentation fixesTimm Bäder2016-02-081-1/+1
| | | | | | Always have Since: annotations at the very bottom, use the correct ClassName::signal-name/ClassName:property-name syntax, fix a few typos in type names, wrong function names, non-existing type names, etc.
* shortcuts: Make sure that hidden shortcuts stay hiddenBastien Nocera2015-12-161-2/+8
| | | | | | | | | | When doing a gtk_widget_show_all() on the shortcuts window, accelerators for both RTL and LTR directions are being shown. Make sure that no-show-all is set by default on hidden shortcuts, and updated if the widget direction changes. https://bugzilla.gnome.org/show_bug.cgi?id=759541
* Add a css name to GtkShortcutsShortcutMatthias Clasen2015-12-041-0/+1
| | | | | This will be useful for tweaking the gesture image details, among other things.
* shortcuts: Extend the accelerator syntax moreMatthias Clasen2015-12-041-3/+7
| | | | | | Cover cases like left+right control, and render them nicely. The gtk3-demo builder shortcuts example shows the new possibilities.
* Load gesture images as symbolic iconsMatthias Clasen2015-11-231-6/+17
| | | | This makes them recolor in the dark theme, which looks better.
* shortcuts: Add set properties for optional thingsMatthias Clasen2015-11-221-59/+196
| | | | | | This makes it possible to switch between gesture and accelerator types and override the builtin icons and subtitles for predefined gestures.
* shortcuts: Add support for standard gesturesMatthias Clasen2015-11-221-19/+74
| | | | | | | Add an enum for gestures that GtkShortcutsShortcut knows how to show an image and subtitle for. https://bugzilla.gnome.org/show_bug.cgi?id=758187
* shortcuts shortcut: Take over gesture functionalityMatthias Clasen2015-11-221-27/+152
| | | | | | | | | It turns out that it is nicer in glade to have just a single widget that can show either a shortcut or a gesture, so make GtkShortcutsShortcut do it both. GtkShortcutsGesture is now redundant and will be removed before the next stable release.
* shortcuts: Avoid excessive property notificationMatthias Clasen2015-11-201-1/+3
| | | | | Notifying needlessly causes unnecessary work, and causes our testsuite to fail.
* shortcuts: Support direction-specific shortcutsMatthias Clasen2015-11-141-1/+56
| | | | | | | | | The prime example for direction-dependent shortcuts is using <Alt>Left or <Alt>Right to go back. Support this by adding a direction property to GtkShortcutsShortcut, and filtering by the current text direction. https://bugzilla.gnome.org/show_bug.cgi?id=757888
* help overlay: Allow key sequencesMatthias Clasen2015-11-141-5/+7
| | | | | | | 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
* GtkShortcutsShortcut: Add missing wordTimm Bäder2015-11-131-1/+1
|
* shortcuts: Some property hygieneMatthias Clasen2015-10-271-1/+1
| | | | | Bring property notification for some of the new shortcuts widgets up to the standards of our testsuite.
* shortcuts: Support ranges in the display of shortcutsMatthias Clasen2015-10-221-2/+7
| | | | | 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/+264
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