mirror of
https://github.com/labwc/labwc.git
synced 2026-04-17 06:46:28 -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
|
static char
|
||||||
keysym_to_char(uint32_t keysym) {
|
keysym_to_char(uint32_t keysym)
|
||||||
|
{
|
||||||
if (keysym >= 0x0020 && keysym <= 0x00FF) {
|
if (keysym >= 0x0020 && keysym <= 0x00FF) {
|
||||||
return (char)keysym;
|
return (char)keysym;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1495,8 +1495,10 @@ menu_item_select_by_accelerator(char accelerator)
|
||||||
next_selection = item;
|
next_selection = item;
|
||||||
matched = true;
|
matched = true;
|
||||||
} else if (matched && item->accelerator == accelerator) {
|
} 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;
|
needs_exec = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
@ -1505,8 +1507,10 @@ menu_item_select_by_accelerator(char accelerator)
|
||||||
if (next_selection) {
|
if (next_selection) {
|
||||||
menu_process_item_selection(next_selection);
|
menu_process_item_selection(next_selection);
|
||||||
if (needs_exec && next_selection->submenu) {
|
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;
|
needs_exec = false;
|
||||||
menu_submenu_enter();
|
menu_submenu_enter();
|
||||||
}
|
}
|
||||||
|
|
@ -1514,7 +1518,6 @@ menu_item_select_by_accelerator(char accelerator)
|
||||||
return needs_exec;
|
return needs_exec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
menu_call_selected_actions(void)
|
menu_call_selected_actions(void)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue