summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-09 13:31:56 +0200
committerZenWalker <[email protected]>2020-04-15 01:55:34 +0200
commit60c698e3785f0f2cd861e432036af44c2b934d4d (patch)
treef3200d49ae1712b90c5d63a463e7ea05d2e282cd
parent8f98359bb878af440409baa8dc64943756642929 (diff)
downloadmate-indicator-applet-60c698e3785f0f2cd861e432036af44c2b934d4d.tar.bz2
mate-indicator-applet-60c698e3785f0f2cd861e432036af44c2b934d4d.tar.xz
applet-main: declaration of ‘entry’ shadows a parameter
-rw-r--r--src/applet-main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/applet-main.c b/src/applet-main.c
index afdb296..d04a3b4 100644
--- a/src/applet-main.c
+++ b/src/applet-main.c
@@ -541,9 +541,9 @@ menu_show (IndicatorObject * io, IndicatorObjectEntry * entry,
if (entry == NULL) {
/* Close any open menus instead of opening one */
GList * entries = indicator_object_get_entries(io);
- GList * entry = NULL;
- for (entry = entries; entry != NULL; entry = g_list_next(entry)) {
- IndicatorObjectEntry * entrydata = (IndicatorObjectEntry *)entry->data;
+ GList * iterator = NULL;
+ for (iterator = entries; iterator != NULL; iterator = g_list_next(iterator)) {
+ IndicatorObjectEntry * entrydata = (IndicatorObjectEntry *)iterator->data;
gtk_menu_popdown(entrydata->menu);
}
g_list_free(entries);