gtk+3: fix dependencies for new gnome/accessibility/at-spi2-core
[oi-userland.git] / components / desktop / mate / mate-control-center / patches / 02-keybinding-caps-lock.patch
blob57cf304a6d52448b4b79d4fe7d7e151664b7c9e2
1 --- mate-control-center-1.14.0/capplets/keybindings/eggcellrendererkeys.c.~1~ 2016-07-28 10:50:37.732200618 +0300
2 +++ mate-control-center-1.14.0/capplets/keybindings/eggcellrendererkeys.c 2016-07-28 10:52:13.168958635 +0300
3 @@ -422,7 +422,8 @@
4 GDK_BUTTON2_MASK |
5 GDK_BUTTON3_MASK |
6 GDK_BUTTON4_MASK |
7 - GDK_BUTTON5_MASK;
8 + GDK_BUTTON5_MASK |
9 + GDK_LOCK_MASK;
11 /* filter consumed/ignored modifiers */
12 if (keys->accel_mode == EGG_CELL_RENDERER_KEYS_MODE_GTK)
13 --- mate-control-center-1.14.0/capplets/keybindings/mate-keybinding-properties.c 2016-01-30 21:03:48.000000000 +0300
14 +++ mate-control-center-1.14.0/capplets/keybindings/mate-keybinding-properties.c 2016-07-28 10:55:28.885460086 +0300
15 @@ -26,6 +26,7 @@
16 #define MAX_CUSTOM_SHORTCUTS 1000
17 #define RESPONSE_ADD 0
18 #define RESPONSE_REMOVE 1
19 +#define ignore_modifiers ( GDK_LOCK_MASK )
21 typedef struct {
22 /* The untranslated name, combine with ->package to translate */
23 @@ -1092,6 +1093,8 @@
24 KEYENTRY_COLUMN, &element,
25 -1);
27 + new_key->mask = new_key->mask & ~(ignore_modifiers);
29 /* no conflict for : blanks, different modifiers, or ourselves */
30 if (element == NULL || new_key->mask != element->mask)