author | rohinis |
Tue, 29 Nov 2011 17:32:55 +0000 | |
branch | s11express-2010-11 |
changeset 22234 | c23e64da3e06 |
parent 15054 | 240f8afbe6c8 |
permissions | -rw-r--r-- |
15054
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
1 |
/jds/bin/diff -uprN gnome-settings-daemon-2.25.90.old/plugins/keybindings/gsd-keybindings-manager.c gnome-settings-daemon-2.25.90/plugins/keybindings/gsd-keybindings-manager.c |
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
2 |
--- gnome-settings-daemon-2.25.90.old/plugins/keybindings/gsd-keybindings-manager.c 2009-02-10 19:20:10.932741000 +0000 |
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
3 |
+++ gnome-settings-daemon-2.25.90/plugins/keybindings/gsd-keybindings-manager.c 2009-02-10 19:21:03.400983000 +0000 |
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
4 |
@@ -269,25 +269,6 @@ same_key (const Key *key, const Key *oth |
14808 | 5 |
return FALSE; |
11506 | 6 |
} |
7 |
||
8 |
-static gboolean |
|
9 |
-key_already_used (GsdKeybindingsManager *manager, |
|
10 |
- Binding *binding) |
|
11 |
-{ |
|
12 |
- GSList *li; |
|
13 |
- |
|
14 |
- for (li = manager->priv->binding_list; li != NULL; li = li->next) { |
|
15 |
- Binding *tmp_binding = (Binding*) li->data; |
|
16 |
- |
|
14808 | 17 |
- if (tmp_binding != binding && |
18 |
- same_keycode (&tmp_binding->key, &binding->key) && |
|
11506 | 19 |
- tmp_binding->key.state == binding->key.state) { |
20 |
- return TRUE; |
|
21 |
- } |
|
22 |
- } |
|
23 |
- |
|
24 |
- return FALSE; |
|
25 |
-} |
|
26 |
- |
|
27 |
static void |
|
15054
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
28 |
binding_unregister_keys (GsdKeybindingsManager *manager) |
12548 | 29 |
{ |
15054
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
30 |
@@ -330,8 +311,6 @@ binding_register_keys (GsdKeybindingsMan |
14808 | 31 |
} |
11506 | 32 |
|
14808 | 33 |
if (!same_key (&binding->previous_key, &binding->key)) { |
11506 | 34 |
- /* Ungrab key if it changed and not clashing with previously set binding */ |
14808 | 35 |
- if (!key_already_used (manager, binding)) { |
36 |
gint i; |
|
37 |
||
38 |
need_flush = TRUE; |
|
15054
240f8afbe6c8
* base-specs/control-center.spec : Bump to 2.25.90
mattman
parents:
14808
diff
changeset
|
39 |
@@ -347,8 +326,6 @@ binding_register_keys (GsdKeybindingsMan |
14808 | 40 |
binding->previous_key.keycodes = g_new0 (guint, i); |
41 |
for (i = 0; binding->key.keycodes[i]; ++i) |
|
42 |
binding->previous_key.keycodes[i] = binding->key.keycodes[i]; |
|
11506 | 43 |
- } else |
12548 | 44 |
- g_warning ("Key binding (%s) is already in use", binding->binding_str); |
11506 | 45 |
} |
46 |
} |
|
14808 | 47 |