diff options
author | raveit65 <[email protected]> | 2024-01-28 02:53:56 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2024-02-04 18:37:58 +0100 |
commit | e663fbaeba760003b4088e567af0883534891e59 (patch) | |
tree | fd7b6805cc5d0e022f526e6343bb2539aa12f54e /mate-panel/panel-profile.c | |
parent | 6a9848eb8388807d13c38cdaceabfc143f6640aa (diff) | |
download | mate-panel-e663fbaeba760003b4088e567af0883534891e59.tar.bz2 mate-panel-e663fbaeba760003b4088e567af0883534891e59.tar.xz |
Revert "Reduce scope of variables"
This reverts commit 96c7ebc6dc9e8b8327db04a9570054ee78743353.
Diffstat (limited to 'mate-panel/panel-profile.c')
-rw-r--r-- | mate-panel/panel-profile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index e2b6841d..47d6d95b 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -1618,9 +1618,11 @@ panel_profile_load_list (GSettings *settings, PanelProfileLoadFunc load_handler, GCallback notify_handler) { + const gchar *key = key_from_type (type); gchar *changed_signal; gchar **list; + gint i; changed_signal = g_strdup_printf ("changed::%s", key); g_signal_connect (settings, changed_signal, G_CALLBACK (notify_handler), NULL); @@ -1628,7 +1630,7 @@ panel_profile_load_list (GSettings *settings, list = g_settings_get_strv (settings, key); - for (gint i = 0; list[i]; i++) { + for (i = 0; list[i]; i++) { load_handler (list[i]); } |