moved input_methods to QEmacsState
qe_register_binding takes ModeDef* and returns status cosmetic changes in QEDisplay API added int dpy_init(QEditScreen *s, QEDisplay *dpy, int w, int h); copies *dpy (or dummy_dpy if NULL) to QEditScreen and calls method simplified dpy_init methods and calls inlined 5 more methods moved dummy_dpy to display.c and simplified simplified to_hex simplified qe_colors array handling
This commit is contained in:
parent
de952df347
commit
28397f424f
14 changed files with 256 additions and 304 deletions
8
unihex.c
8
unihex.c
|
|
@ -187,10 +187,10 @@ static int unihex_init(void)
|
|||
qe_register_mode(&unihex_mode);
|
||||
|
||||
/* additional mode specific keys */
|
||||
qe_register_binding(KEY_CTRL_LEFT, "decrease-width", "unihex");
|
||||
qe_register_binding(KEY_CTRL_RIGHT, "increase-width", "unihex");
|
||||
qe_register_binding(KEY_TAB, "toggle-hex", "unihex");
|
||||
qe_register_binding(KEY_SHIFT_TAB, "toggle-hex", "unihex");
|
||||
qe_register_binding(KEY_CTRL_LEFT, "decrease-width", &unihex_mode);
|
||||
qe_register_binding(KEY_CTRL_RIGHT, "increase-width", &unihex_mode);
|
||||
qe_register_binding(KEY_TAB, "toggle-hex", &unihex_mode);
|
||||
qe_register_binding(KEY_SHIFT_TAB, "toggle-hex", &unihex_mode);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue