summaryrefslogtreecommitdiff
path: root/gdk/gdkkeys.c
Commit message (Collapse)AuthorAgeFilesLines
* gdk: Tweaks to keyname handlingMatthias Clasen2022-09-241-1/+72
| | | | | Rename the private header to follow our naming conventions, and drop the extra gdkkeys.c file.
* gdk: Drop an unused functionMatthias Clasen2022-07-161-16/+0
|
* Remove all nicks and blurbs from param specsSophie Herold2022-05-111-3/+1
| | | | | | | | Those property features don't seem to be in use anywhere. They are redundant since the docs cover the same information and more. They also created unnecessary translation work. Closes #4904
* gdk: Clean up docs syntaxMatthias Clasen2021-05-221-34/+34
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* introspection: Stop using allow-noneMatthias Clasen2021-05-201-4/+4
| | | | | allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.
* Documentation fixesMatthias Clasen2021-05-201-11/+9
| | | | | Mostly fixing up indentation of continuation lines, and other small cleanups.
* gdk: Some more tweaks of the docsMatthias Clasen2021-03-111-2/+6
|
* docs: Move detached sections into their own content fileEmmanuele Bassi2021-03-111-111/+0
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-2/+2
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-5/+5
|
* Fix minor typosYuri Chornoivan2020-06-181-3/+3
|
* keymap: Remove leftover codeMatthias Clasen2020-05-061-4/+0
| | | | | | | | | When I removed the 0-termination for the entries for each keyval, I remove the code initializing the key, but accidentally left the code that adds it to the array, so gdk_keymap_get_cached_entries_for_keyval returns one extra, uninitialized value at the end of the array. Stop doing that.
* keymap: Cache key infoMatthias Clasen2020-04-301-9/+99
| | | | | | | | | | | | | | | We currently calling gdk_display_map_keyval up to once per key event per shortcut trigger, and that function does an expensive loop over the entire keymap and allocates an array. Avoid this by caching the entries in a single array, and have a lookup table for finding the entries for a keyval. To do this, change the GdkKeymap.get_entries_for_keyval signature, and change the ::keys-changed signal to be RUN_FIRST, since we want to clear the cache in the class handler before running signal handlers. These changes are possible now, since keymaps are no longer public API.
* Reshuffle keymap docsMatthias Clasen2020-04-061-39/+84
| | | | | Since GdkKeymap api is on longer public, move relevant documentation to the long description.
* gdk: Remove gdk_keymap_get_modifier_maskMatthias Clasen2020-04-061-64/+0
| | | | This function is no longer public and no longer used.
* keymap: Remove virtual modifier mapping functionsMatthias Clasen2020-04-061-51/+0
| | | | | | | These are not used anymore. Drop the vfuncs and their implementations in the broadway, x11, wayland and win32 backends as well.
* Rename GDK_MOD1_MASK to GDK_ALT_MASKMatthias Clasen2020-04-061-4/+4
| | | | | We've hardcoded Mod1 = Alt for a long time, there is no need to keep the confusing naming around anymore.
* events: reorganize gettersMatthias Clasen2020-02-211-4/+7
| | | | | | | | | | Restructure the getters for event fields to be more targeted at particular event types. Update all callers, and replace all direct event struct access with getters. As a side-effect, this drops some unused getters.
* gdk: Make gdk_keyval_name() return a const charBenjamin Otte2020-02-091-1/+1
| | | | The string is const, so return it like that.
* gdk: Handle small final sigma in gdk_keyval_convert_caseAlex Henrie2020-01-241-2/+3
|
* marshallers: ensure g_cclosure_marshal_VOID__VOIDv is usedChristian Hergert2019-05-291-3/+3
| | | | | | | If we set c_marshaller manually, then g_signal_newv() will not setup a va_marshaller for us. However, if we provide c_marshaller as NULL, it will setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
* gdk: Add some more docsMatthias Clasen2018-02-111-0/+2
| | | | Add another reference to the docs.
* gdk: Expand the docs a bitMatthias Clasen2018-02-101-2/+2
| | | | | | Add a reference to the getter to the GdkKeymap::direction-changed signal docs. sh: indent: command not found
* The big versioning cleanupMatthias Clasen2018-02-061-22/+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.
* docs: Annotate gdk_keymap_get_display()Emmanuele Bassi2018-02-011-0/+8
| | | | Avoid a warning from the introspection scanner.
* gdk: Stop referring to ::key-press/release-eventMatthias Clasen2018-01-241-5/+2
| | | | | These signals are going away, don't mention them in the docs.
* Add a display property to keymapsMatthias Clasen2018-01-141-2/+63
| | | | | This is a general pattern we want to follow for all objects in GDK. Also add a getter.
* Replace gdk_keymap_get_for_display by gdk_display_get_keymapMatthias Clasen2017-12-151-1/+1
| | | | | Replace all uses of the old function by the new one. No functional change.
* Drop gdk_keymap_get_default()Matthias Clasen2017-12-141-18/+4
| | | | | It is better to use the explicit keymap getter - the default display may not even use the current gdk backend.
* gdk: Intern signal namesMatthias Clasen2017-11-171-1/+1
| | | | We were forgetting this in a few places.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+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.
* Add some missing (nullable) annotationsRico Tzschichholz2016-09-221-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=771826
* Clarify docs a bitMatthias Clasen2016-04-151-1/+1
| | | | | The wording here was just awkward: TRUE is returned if... Note that FALSE is also returned if...
* Intern all signal names beforehandMatthias Clasen2015-09-121-3/+3
| | | | This avoids pointless allocations
* Bug 736125 - The default gtk accelerator mod mask does not include all ↵John Ralls2015-08-251-0/+4
| | | | default backend modifiers
* gdkkeys: Add support to _get_scroll_lock_state()Fabiano Fidêncio2015-04-271-0/+18
| | | | | | | GdkKeymap already has support for _get_num_lock_state() and _get_caps_lock_state(). Adding _get_scroll_lock_state() would be good for completness and some backends (Windows?) could take advantage of this.
* gdk: add many missing (nullable) return value annotationsEvan Nemerson2014-05-111-3/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=729834
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-4/+4
| | | | Instead of Return value:
* Docs: use // for comments in examplesMatthias Clasen2014-02-141-4/+4
| | | | | Without sgml mode, we can't escape /* as /* anymore, so just switch to // for comments in examples.
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-16/+12
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-3/+3
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-2/+2
| | | | https://wiki.gnome.org/Design/OS/Typography
* docs: use links instead of <xref>William Jon McCann2014-02-071-1/+1
|
* Use proper quotes in gdkWilliam Jon McCann2014-02-051-5/+5
|
* docs: don't use <para id="">William Jon McCann2014-02-041-2/+2
|
* docs: use ` instead of <literal>William Jon McCann2014-02-041-6/+6
|
* docs: use quotes instead of <firstterm>William Jon McCann2014-02-041-1/+1
|
* docs: use markdown instead of <filename> tagsWilliam Jon McCann2014-02-041-3/+3
|
* Docs: Don't use note elementsMatthias Clasen2014-02-021-6/+4
| | | | In most cases, the text itself makes the message clear enough.
* docs: Work around cpp complaining about comments in docs in the standard wayWilliam Jon McCann2014-01-291-8/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=723119