[nautilus] canvas-container: remove duplicated code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] canvas-container: remove duplicated code
- Date: Mon, 1 Sep 2014 22:36:16 +0000 (UTC)
commit ecc8fdbca6acb446ffa89a6fea31616b77a4224a
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat Aug 30 18:43:41 2014 -0700
canvas-container: remove duplicated code
libnautilus-private/nautilus-canvas-container.c | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/libnautilus-private/nautilus-canvas-container.c b/libnautilus-private/nautilus-canvas-container.c
index eb987a5..f9ffda2 100644
--- a/libnautilus-private/nautilus-canvas-container.c
+++ b/libnautilus-private/nautilus-canvas-container.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]