summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-16 09:09:37 +0100
committerraveit65 <[email protected]>2021-03-29 14:59:30 +0200
commit348151fd0204a4ae0aa76bc3312cf045d7a6a2dd (patch)
treeba01dfa09a34ea3727835cd5763937e1ce32df9f /src/ui
parent0dee04e5b88d941bb727ffdc80d50966ca48d9f6 (diff)
downloadmarco-348151fd0204a4ae0aa76bc3312cf045d7a6a2dd.tar.bz2
marco-348151fd0204a4ae0aa76bc3312cf045d7a6a2dd.tar.xz
warning: declaration of a variable shadows a previous local
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/menu.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/menu.c b/src/ui/menu.c
index df40f1b6..34e4b5d9 100644
--- a/src/ui/menu.c
+++ b/src/ui/menu.c
@@ -351,9 +351,6 @@ meta_window_menu_new (MetaFrames *frames,
if (ops & menuitem.op || menuitem.op == 0)
{
GtkWidget *mi;
- MenuData *md;
- unsigned int key;
- MetaVirtualModifier mods;
mi = menu_item_new (&menuitem, -1);
@@ -455,6 +452,10 @@ meta_window_menu_new (MetaFrames *frames,
}
else if (menuitem.type != MENU_ITEM_SEPARATOR)
{
+ MenuData *md;
+ unsigned int key;
+ MetaVirtualModifier mods;
+
meta_core_get_menu_accelerator (menuitems[i].op, -1,
&key, &mods);