diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c index b6f9afa58..a0163940e 100644 --- a/lib/widget/dialog.c +++ b/lib/widget/dialog.c @@ -63,7 +63,7 @@ int fast_refresh = 0; /* left click outside of dialog closes it */ int mouse_close_dialog = 0; -const global_keymap_t *dialog_map; +const global_keymap_t *dialog_map = NULL; /*** file scope macro definitions ****************************************************************/ diff --git a/lib/widget/input.c b/lib/widget/input.c index 6a21c32ca..790254b29 100644 --- a/lib/widget/input.c +++ b/lib/widget/input.c @@ -56,7 +56,7 @@ int quote = 0; -const global_keymap_t *input_map; +const global_keymap_t *input_map = NULL; /*** file scope macro definitions ****************************************************************/ diff --git a/lib/widget/listbox.c b/lib/widget/listbox.c index a2353ba2f..16b74da65 100644 --- a/lib/widget/listbox.c +++ b/lib/widget/listbox.c @@ -46,7 +46,7 @@ /*** global variables ****************************************************************************/ -const global_keymap_t *listbox_map; +const global_keymap_t *listbox_map = NULL; /*** file scope macro definitions ****************************************************************/ diff --git a/src/keybind-defaults.c b/src/keybind-defaults.c index a6ca5521c..4adfd8d27 100644 --- a/src/keybind-defaults.c +++ b/src/keybind-defaults.c @@ -26,6 +26,7 @@ #include #include "lib/global.h" +#include "lib/widget.h" /* dialog_map, input_map, listbox_map */ #include "keybind-defaults.h" @@ -52,9 +53,6 @@ GArray *diff_keymap = NULL; const global_keymap_t *main_map = NULL; const global_keymap_t *main_x_map = NULL; const global_keymap_t *panel_map = NULL; -const global_keymap_t *dialog_map = NULL; -const global_keymap_t *input_map = NULL; -const global_keymap_t *listbox_map = NULL; const global_keymap_t *tree_map = NULL; const global_keymap_t *help_map = NULL; diff --git a/src/keybind-defaults.h b/src/keybind-defaults.h index 038b910c8..7b569c67e 100644 --- a/src/keybind-defaults.h +++ b/src/keybind-defaults.h @@ -35,9 +35,6 @@ extern GArray *diff_keymap; extern const global_keymap_t *main_map; extern const global_keymap_t *main_x_map; extern const global_keymap_t *panel_map; -extern const global_keymap_t *dialog_map; -extern const global_keymap_t *input_map; -extern const global_keymap_t *listbox_map; extern const global_keymap_t *tree_map; extern const global_keymap_t *help_map;