diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-05 05:29:52 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2011-01-05 05:29:52 +0100 |
commit | 63f6feaa0ec1e3bf9927c7392324738753fa48d0 (patch) | |
tree | 1279dc1695b7768c85c0f840bfa35d1cdcd0bdc8 /src | |
parent | b08217f9993abf61704614dcea26e8e86a9838a7 (diff) | |
download | logdiag-63f6feaa0ec1e3bf9927c7392324738753fa48d0.tar.gz logdiag-63f6feaa0ec1e3bf9927c7392324738753fa48d0.tar.xz logdiag-63f6feaa0ec1e3bf9927c7392324738753fa48d0.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/ld-canvas.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |