summaryrefslogtreecommitdiff
path: root/src/capplet/mate-notification-properties.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-03-10 11:51:43 +0100
committerraveit65 <[email protected]>2021-03-15 19:27:23 +0100
commitb462aeed6e57cf9361329233c361fb6f0d72897e (patch)
tree17d18d02fa6268146874d08aeed5dd640ebd74c1 /src/capplet/mate-notification-properties.c
parent61620f2279c7899c153791260dd203476462be60 (diff)
downloadmate-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.c13
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);
}
}