aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-03-22 15:23:46 -0500
committerTed Gould <ted@gould.cx>2011-03-22 15:23:46 -0500
commita7c1e6c502cdc834617c59d157a3b787a5e8b0c7 (patch)
tree9d1de629f4ded62bab4f9a11493d703d4900f34c /libdbusmenu-glib
parent8bab6b9d433d5cfd0d03c303e9d3e6bdc14a035d (diff)
downloadlibdbusmenu-a7c1e6c502cdc834617c59d157a3b787a5e8b0c7.tar.gz
libdbusmenu-a7c1e6c502cdc834617c59d157a3b787a5e8b0c7.tar.bz2
libdbusmenu-a7c1e6c502cdc834617c59d157a3b787a5e8b0c7.zip
Remove the link instead of the data
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 018508c..825f3cb 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -1382,7 +1382,7 @@ menuitem_get_properties_replace_cb (GVariant * properties, GError * error, gpoin
while (g_variant_iter_loop(&iter, "{sv}", &name, &value) && have_error == FALSE) {
for (tmp = current_props; tmp != NULL; tmp = g_list_next(tmp)) {
if (g_strcmp0((gchar *)tmp->data, name) == 0) {
- current_props = g_list_remove(current_props, tmp);
+ current_props = g_list_delete_link(current_props, tmp);
break;
}
}