Commit ecc8fdbc authored by Cosimo Cecchi's avatar Cosimo Cecchi

canvas-container: remove duplicated code

parent 5e4e82cc
......@@ -7690,8 +7690,6 @@ nautilus_canvas_container_accessible_update_selection (AtkObject *accessible)
{
NautilusCanvasContainer *container;
NautilusCanvasContainerAccessiblePrivate *priv;
GList *l;
NautilusCanvasIcon *icon;
container = NAUTILUS_CANVAS_CONTAINER (gtk_accessible_get_widget (GTK_ACCESSIBLE (accessible)));
priv = GET_ACCESSIBLE_PRIV (accessible);
......@@ -7700,16 +7698,8 @@ nautilus_canvas_container_accessible_update_selection (AtkObject *accessible)
g_list_free (priv->selection);
priv->selection = NULL;
}
for (l = container->details->icons; l != NULL; l = l->next) {
icon = l->data;
if (icon->is_selected) {
priv->selection = g_list_prepend (priv->selection,
icon);
}
}
priv->selection = g_list_reverse (priv->selection);
priv->selection = nautilus_canvas_container_get_selection (container);
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment