diff options
author | rbuj <[email protected]> | 2021-03-10 11:51:43 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-15 19:27:23 +0100 |
commit | b462aeed6e57cf9361329233c361fb6f0d72897e (patch) | |
tree | 17d18d02fa6268146874d08aeed5dd640ebd74c1 /src/capplet/mate-notification-properties.c | |
parent | 61620f2279c7899c153791260dd203476462be60 (diff) | |
download | mate-notification-daemon-b462aeed6e57cf9361329233c361fb6f0d72897e.tar.bz2 mate-notification-daemon-b462aeed6e57cf9361329233c361fb6f0d72897e.tar.xz |
Remove shadow warnings [-Wshadow]
Diffstat (limited to 'src/capplet/mate-notification-properties.c')
-rw-r--r-- | src/capplet/mate-notification-properties.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/capplet/mate-notification-properties.c b/src/capplet/mate-notification-properties.c index 7d43455..8514ee9 100644 --- a/src/capplet/mate-notification-properties.c +++ b/src/capplet/mate-notification-properties.c @@ -70,7 +70,7 @@ static void notification_properties_position_notify(GSettings *settings, gchar * { GtkTreeModel* model; GtkTreeIter iter; - const char* location; + const char *location; gboolean valid; location = g_settings_get_string(dialog->gsettings, key); @@ -80,18 +80,17 @@ static void notification_properties_position_notify(GSettings *settings, gchar * for (valid = gtk_tree_model_get_iter_first(model, &iter); valid; valid = gtk_tree_model_iter_next(model, &iter)) { - gchar* key; + gchar *it_key; - gtk_tree_model_get(model, &iter, NOTIFY_POSITION_NAME, &key, -1); + gtk_tree_model_get(model, &iter, NOTIFY_POSITION_NAME, &it_key, -1); - if (g_str_equal(key, location)) + if (g_str_equal(it_key, location)) { gtk_combo_box_set_active_iter(GTK_COMBO_BOX(dialog->position_combo), &iter); - g_free(key); + g_free(it_key); break; } - - g_free(key); + g_free (it_key); } } |