summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-26 11:35:21 +0100
committerraveit65 <[email protected]>2021-01-07 18:10:25 +0100
commit36b03963a80a849be8de0bd65edd8fd9b1698881 (patch)
tree0b5aaf50025eb2668fb40b27efbd31a06652378f
parent7c58d22450c00649e0ff96cf10b26bcdccbc67e6 (diff)
downloadmate-panel-36b03963a80a849be8de0bd65edd8fd9b1698881.tar.bz2
mate-panel-36b03963a80a849be8de0bd65edd8fd9b1698881.tar.xz
panel-menu-items: declaration of 'item' shadows a previous local
-rw-r--r--mate-panel/panel-menu-items.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c
index a196b0be..025eb0e4 100644
--- a/mate-panel/panel-menu-items.c
+++ b/mate-panel/panel-menu-items.c
@@ -903,19 +903,19 @@ panel_place_menu_item_append_local_gio (PanelPlaceMenuItem *place_item,
if (g_slist_length (items) <= g_settings_get_uint (place_item->priv->menubar_settings, PANEL_MENU_BAR_MAX_ITEMS_OR_SUBMENU)) {
add_menu = menu;
} else {
- GtkWidget *item;
+ GtkWidget *menu_item;
- item = gtk_image_menu_item_new ();
- setup_menuitem_with_icon (item, panel_menu_icon_get_size (),
- NULL,
- PANEL_ICON_REMOVABLE_MEDIA,
- _("Removable Media"));
+ menu_item = gtk_image_menu_item_new ();
+ setup_menuitem_with_icon (menu_item, panel_menu_icon_get_size (),
+ NULL,
+ PANEL_ICON_REMOVABLE_MEDIA,
+ _("Removable Media"));
- gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
- gtk_widget_show (item);
+ gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
+ gtk_widget_show (menu_item);
add_menu = create_empty_menu ();
- gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), add_menu);
+ gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu_item), add_menu);
}
for (sl = items; sl; sl = sl->next) {