summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Focus improvementswip/jimmac/gtk-Gtk4_blue_focus_ringsfrederik.feichtmeier2020-04-082-11/+24
| | | | | - add tab and treeview - change focus variables: use alt_ prefix instead of coloured_ and descend focus_border_color from selected_bg_color
* Blue outlines / focus ringsfrederik.feichtmeier2020-04-083-39/+78
| | | | | | - introduce two new colors: $focus_border_color for focused / outlined elements and $_coloured_focus_border_color for focused / outlined elements with a colored background color, like suggested/destructive buttons or selected elements - set outline / focus color, offset and style accordingly for all widgets - adapt entry focus color
* Merge branch 'attribute-docs' into 'master'Matthias Clasen2020-04-071-0/+24
|\ | | | | | | | | entry: Document buildable support See merge request GNOME/gtk!1643
| * entry: Document buildable supportMatthias Clasen2020-04-061-0/+24
|/
* entry: Add <attributes> supportMatthias Clasen2020-04-061-0/+73
| | | | | | | Make entries support the same <attributes> syntax as labels. Closes: #1335
* Move label attribute parser codeMatthias Clasen2020-04-063-309/+323
| | | | | We want to reuse the parser for <attributes> in several widgets, so move it to a shared place.
* Merge branch 'cross-postinstall' into 'master'Matthias Clasen2020-04-061-5/+9
|\ | | | | | | | | meson: Don't execute post-install.py if cross compiling See merge request GNOME/gtk!1636
| * meson: Don't execute post-install.py if cross compilingMartin Storsjö2020-04-051-5/+9
| |
* | Merge branch 'fix-event-match' into 'master'Matthias Clasen2020-04-061-0/+3
|\ \ | | | | | | | | | | | | shortcuttrigger: Don't trigger on key releases See merge request GNOME/gtk!1642
| * | shortcuttrigger: Don't trigger on key releasesMatthias Clasen2020-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This broke when the event type check in gdk_key_event_matches was removed and replaced by a precondition that accepts both key press and release events. Add the check in gtk_keyval_trigger_trigger instead.
* | | Merge branch 'wip/chergert/fix-shortcut-param-order' into 'master'Matthias Clasen2020-04-061-2/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | widget: fix parameter ordering to match implementation Closes #2586 See merge request GNOME/gtk!1641
| * | widget: fix parameter ordering to match implementationChristian Hergert2020-04-061-2/+2
|/ / | | | | | | Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2586
* | Replace most uses of <Primary> with <Control>Matthias Clasen2020-04-068-52/+52
| | | | | | | | | | | | The only place where we are still using <Primary> is in tests, to ensure we keep parsing it. Otherwise, <Control> is now the preferred syntax.
* | Merge branch 'keymap-rework-2' into 'master'Matthias Clasen2020-04-0685-1567/+1279
|\ \ | | | | | | | | | | | | Keymap rework 2 See merge request GNOME/gtk!1635
| * | reftests: Comment out a test that fails only in ciMatthias Clasen2020-04-061-3/+5
| | | | | | | | | | | | | | | Fixing such only-in-ci failures is just too hard, unfortunately.
| * | Update migration guideMatthias Clasen2020-04-061-11/+62
| | | | | | | | | | | | | | | Rewrite the sections about keymaps and menus, and add hints about modifiers.
| * | accelgroup: Small documentation updatesMatthias Clasen2020-04-061-2/+5
| | | | | | | | | | | | | | | Mention GtkShortcutTrigger, and remove references to <Release>.
| * | Reshuffle keymap docsMatthias Clasen2020-04-061-39/+84
| | | | | | | | | | | | | | | Since GdkKeymap api is on longer public, move relevant documentation to the long description.
| * | Drop gtk_accelerator_set_default_mod_maskMatthias Clasen2020-04-063-40/+7
| | | | | | | | | | | | | | | | | | | | | Our new approach to modifiers works with a fixed set, there is really no need to customize the modifier masks if the backends are all supposed to deliver the same modifiers.
| * | gdk: Remove gdk_keymap_get_modifier_maskMatthias Clasen2020-04-065-157/+0
| | | | | | | | | | | | This function is no longer public and no longer used.
| * | Remove uses of modifier intents in gdkevents.cMatthias Clasen2020-04-061-26/+9
| | | | | | | | | | | | | | | | | | | | | This removes the use of the context menu and shift group intents in gdkevents.c. If it turns out to be important, we need to introduce vfuncs for gdk_event_triggers_context_menu and gdk_event_matches.
| * | display: Remove gdk_display_get_modifier_maskMatthias Clasen2020-04-062-11/+0
| | | | | | | | | | | | This is not used anymore.
| * | gtk: Drop gtk_widget_get_modifier_maskMatthias Clasen2020-04-063-26/+0
| | | | | | | | | | | | This is not used anymore.
| * | gtk: Stop using modifier intentsMatthias Clasen2020-04-0614-143/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewing the existing settings, the only backend with some differences in the modifier intent settings is OS X, and we would rather have that implemented by interpreting the existing modifiers in the appropriate way. X11 Wayland Win32 OS X primary ctrl ctrl ctrl mod2 mnemonic alt alt alt alt context menu - - - ctrl extend sel shift shift shift shift modify sel ctrl ctrl ctrl mod2 no text alt|ctrl alt|ctrl alt|ctrl mod2|ctrl shift group varies - - alt GTK now uses the following modifiers: primary ctrl mnemonic alt extend sel shift modify sel ctrl no text alt|ctrl The context menu and shift group intents were not used in GTK at all. Update tests to no longer expect <Primary> to roundtrip through the accelerator parsing and formatting code.
| * | keymap: Remove virtual modifier mapping functionsMatthias Clasen2020-04-066-221/+6
| | | | | | | | | | | | | | | | | | | | | These are not used anymore. Drop the vfuncs and their implementations in the broadway, x11, wayland and win32 backends as well.
| * | gdk: Make GdkKeymap a private apiMatthias Clasen2020-04-0619-120/+50
| | | | | | | | | | | | We have replacement apis in GdkDevice and GdkDisplay.
| * | imcontextsimple: Disable some win32-only codeMatthias Clasen2020-04-061-1/+2
| | | | | | | | | | | | | | | | | | This code needs to be redone differently, since keymaps are no longer going to be exposed. There should really not be this much ifdef-ed backend-specific code here anyway. Or any, really.
| * | gdk: Clean up GdkModifierTypeMatthias Clasen2020-04-062-47/+15
| | | | | | | | | | | | | | | Remove MOD2..MOD5. Backends are expected to just set the named modifiers.
| * | gdk: Redo key eventsMatthias Clasen2020-04-0619-297/+347
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add all of the keyboard translation results in the key event, so we can translate the keyboard state at the time the event is created, and avoid doing state translation at match time. We actually need to carry two sets of translation results, since we ignore CapsLock when matching accelerators, in gdk_event_matches(). At the same time, drop the scancode field - it is only ever set on win32, and is basically unused in GTK. Update all callers.
| * | gtk: Remove handling of virtual modifiersMatthias Clasen2020-04-063-40/+16
| | | | | | | | | | | | | | | | | | These are going away. We expect to just have named modifiers in modifier masks now, so we longer juggle 'real' and 'virtual' modifiers.
| * | events: Stop doing elaborate virtual modifier handlingMatthias Clasen2020-04-061-10/+1
| | | | | | | | | | | | | | | These are going away in the GdkModifierType cleanup. Just compare the modifiers we got.
| * | broadway: Stop using MOD2..MOD5Matthias Clasen2020-04-061-4/+0
| | | | | | | | | | | | These are going away in the GdkModifierType cleanup.
| * | win32: Stop using MODx modifiersMatthias Clasen2020-04-062-3/+4
| | | | | | | | | | | | | | | | | | The win32 backend is using GDK_MOD2_MASK for AltGr, so define GDK_MOD2_MASK locally to keep this working, but remove any mention of GDK_MOD3_MASK,...,GDK_MOD5_MASK.
| * | wayland: Stop setting MOD2..MOD5Matthias Clasen2020-04-061-16/+0
| | | | | | | | | | | | These are going away in the GdkModifierType cleanup.
| * | gdk: Remove reserved bit from GdkModifierTypeMatthias Clasen2020-04-061-21/+0
| | | | | | | | | | | | This really has no purpose and obscures the header.
| * | gtk: Stop using GDK_MODx_MASKMatthias Clasen2020-04-062-100/+0
| | | | | | | | | | | | | | | | | | These are never used in practice, and we never want to see them in the UI, so stop supporting them. This is in preparation for cleaning up GdkModifierType.
| * | Rename GDK_MOD1_MASK to GDK_ALT_MASKMatthias Clasen2020-04-0634-92/+92
| | | | | | | | | | | | | | | We've hardcoded Mod1 = Alt for a long time, there is no need to keep the confusing naming around anymore.
| * | tests: Stop using gtk_accelerator_set_default_mod_maskMatthias Clasen2020-04-061-7/+0
| | | | | | | | | | | | This is not doing anything useful here.
| * | testsuite: Stop using keymap apisMatthias Clasen2020-04-061-2/+1
| | |
| * | gtk: Use display apis for keymap mappingMatthias Clasen2020-04-062-9/+6
| | | | | | | | | | | | This removes the last uses of GdkKeymap from GTK.
| * | gtk: Stop using keymap apisMatthias Clasen2020-04-0612-82/+102
| | | | | | | | | | | | | | | Stop using most keymap apis in GTK. Only a few calls related to virtual modifiers are left.
| * | x11: Notify new device propertiesMatthias Clasen2020-04-061-4/+31
| | |
| * | wayland: Notify new device propertiesMatthias Clasen2020-04-061-2/+49
| | |
| * | Move keymap mapping functions to GdkDisplayMatthias Clasen2020-04-063-0/+89
| | | | | | | | | | | | | | | We want to stop exposing GdkKeymap, so this functionality needs a new home.
| * | Move GdkKeymapKey to gdktypes.hMatthias Clasen2020-04-052-27/+27
| | | | | | | | | | | | We are going to use this type in a different header.
| * | gdk: Move modifier mask api to GdkDisplayMatthias Clasen2020-04-052-0/+11
| | | | | | | | | | | | GdkKeymap is on the way out.
| * | gdk: Add keymap properties to GdkDeviceMatthias Clasen2020-04-052-0/+151
| | | | | | | | | | | | GdkKeymap is on the way out.
| * | passwordentry: Show caps lock warning moreMatthias Clasen2020-04-051-2/+5
| | | | | | | | | | | | | | | Show the caps lock warning regardless of whether we have the peek icon or not.
| * | Drop some no longer used codeMatthias Clasen2020-04-052-58/+0
| | |
| * | cell renderer accel: Use gdk_event_get_matchMatthias Clasen2020-04-051-46/+5
| | |