From 63f6feaa0ec1e3bf9927c7392324738753fa48d0 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Wed, 5 Jan 2011 05:29:52 +0100 Subject: Add new objects to the start of LdDiagram's list. This way it doesn't have to go through the whole linked list to find a place for the objects. --- src/ld-canvas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld-canvas.c b/src/ld-canvas.c index 4a5064b..5995c57 100644 --- a/src/ld-canvas.c +++ b/src/ld-canvas.c @@ -886,7 +886,7 @@ on_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) move_object_to_widget_coords (self, data->object, event->x, event->y); if (self->priv->diagram) - ld_diagram_insert_object (self->priv->diagram, data->object, -1); + ld_diagram_insert_object (self->priv->diagram, data->object, 0); /* XXX: "cancel" causes confusion. */ ld_canvas_real_cancel_operation (self); -- cgit v1.2.3-70-g09d2