mirror of
https://github.com/labwc/labwc.git
synced 2026-04-18 06:46:46 -04:00
menu: fix codestyle warnings
This commit is contained in:
parent
72f7a446a6
commit
7575623db8
2 changed files with 10 additions and 6 deletions
|
|
@ -420,7 +420,8 @@ handle_change_vt_key(struct keyboard *keyboard,
|
|||
}
|
||||
|
||||
static char
|
||||
keysym_to_char(uint32_t keysym) {
|
||||
keysym_to_char(uint32_t keysym)
|
||||
{
|
||||
if (keysym >= 0x0020 && keysym <= 0x00FF) {
|
||||
return (char)keysym;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1495,8 +1495,10 @@ menu_item_select_by_accelerator(char accelerator)
|
|||
next_selection = item;
|
||||
matched = true;
|
||||
} else if (matched && item->accelerator == accelerator) {
|
||||
/* Another menuentry with such accelerator found,
|
||||
cycle selection instead of executing */
|
||||
/*
|
||||
* Another menuentry with such accelerator found,
|
||||
* cycle selection instead of executing
|
||||
*/
|
||||
needs_exec = false;
|
||||
break;
|
||||
}
|
||||
|
|
@ -1505,8 +1507,10 @@ menu_item_select_by_accelerator(char accelerator)
|
|||
if (next_selection) {
|
||||
menu_process_item_selection(next_selection);
|
||||
if (needs_exec && next_selection->submenu) {
|
||||
/* Submenu was opened, select the first menuitem
|
||||
without executing */
|
||||
/*
|
||||
* Submenu was opened, select the first menuitem
|
||||
* without executing
|
||||
*/
|
||||
needs_exec = false;
|
||||
menu_submenu_enter();
|
||||
}
|
||||
|
|
@ -1514,7 +1518,6 @@ menu_item_select_by_accelerator(char accelerator)
|
|||
return needs_exec;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
menu_call_selected_actions(void)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue