diff options
author | rbuj <[email protected]> | 2020-04-09 13:31:56 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-04-15 01:55:34 +0200 |
commit | 60c698e3785f0f2cd861e432036af44c2b934d4d (patch) | |
tree | f3200d49ae1712b90c5d63a463e7ea05d2e282cd /src/applet-main.c | |
parent | 8f98359bb878af440409baa8dc64943756642929 (diff) | |
download | mate-indicator-applet-60c698e3785f0f2cd861e432036af44c2b934d4d.tar.bz2 mate-indicator-applet-60c698e3785f0f2cd861e432036af44c2b934d4d.tar.xz |
applet-main: declaration of ‘entry’ shadows a parameter
Diffstat (limited to 'src/applet-main.c')
-rw-r--r-- | src/applet-main.c | 6 |
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); |