[gnome-settings-daemon] keybindings: Update for egg key parsing changes



commit b6b1318bed4767544bcb9f35761cef828864557f
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 2 14:32:26 2011 +0100

    keybindings: Update for egg key parsing changes

 plugins/keybindings/gsd-keybindings-manager.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/plugins/keybindings/gsd-keybindings-manager.c b/plugins/keybindings/gsd-keybindings-manager.c
index 761d184..80d4e35 100644
--- a/plugins/keybindings/gsd-keybindings-manager.c
+++ b/plugins/keybindings/gsd-keybindings-manager.c
@@ -115,7 +115,7 @@ entry_get_string (GConfEntry *entry)
 static gboolean
 parse_binding (Binding *binding)
 {
-        gboolean success;
+        EggParseError ret;
 
         g_return_val_if_fail (binding != NULL, FALSE);
 
@@ -130,13 +130,13 @@ parse_binding (Binding *binding)
                 return FALSE;
         }
 
-        success = egg_accelerator_parse_virtual (binding->binding_str,
-                                                 &binding->key.keysym,
-                                                 &binding->key.keycodes,
-                                                 &binding->key.state);
+        ret = egg_accelerator_parse_virtual (binding->binding_str,
+                                             &binding->key.keysym,
+                                             &binding->key.keycodes,
+                                             &binding->key.state);
 
-        if (!success)
-            g_warning (_("Key binding (%s) is invalid"), binding->gconf_key);
+        if (ret != EGG_PARSE_ERROR_NONE)
+            g_warning (_("Key binding (%s) is invalid (%d)"), binding->gconf_key, ret);
 
         return success;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]