modules shouldnt ADD bindings all the time... leave that up to users.
authorCarsten Haitzler <raster@rasterman.com>
Sun, 13 May 2012 04:54:41 +0000 (04:54 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Sun, 13 May 2012 04:54:41 +0000 (04:54 +0000)
SVN revision: 70955

src/modules/gadman/e_mod_main.c

index 919b3d6..7cde5b4 100644 (file)
@@ -85,17 +85,6 @@ e_modapi_init(E_Module *m)
                                 "gadman_toggle", NULL, NULL, 0);
      }
 
-   /* Create a binding for the action (if not exists) */
-   if (!e_bindings_key_get("gadman_toggle"))
-     {
-        e_managers_keys_ungrab();
-        e_bindings_key_add(E_BINDING_CONTEXT_ANY, "g", E_BINDING_MODIFIER_CTRL|E_BINDING_MODIFIER_ALT,
-                           0, "gadman_toggle", NULL);
-
-        e_managers_keys_grab();
-        e_config_save_queue();
-     }
-
    gadman_update_bg();
 
    return Man;