summaryrefslogtreecommitdiff
path: root/libview/ev-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'libview/ev-view.c')
-rw-r--r--libview/ev-view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 0c452237..0c3bb9f9 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7471,10 +7471,10 @@ compute_new_selection_text (EvView *view,
selection->rect.y2 = MAX (selection->rect.y2 - border.bottom, 0);
}
- list = g_list_append (list, selection);
+ list = g_list_prepend (list, selection);
}
- return list;
+ return g_list_reverse (list);
}
/* This function takes the newly calculated list, and figures out which regions
@@ -7674,10 +7674,10 @@ ev_view_select_all (EvView *view)
selection->rect.x2 = width;
selection->rect.y2 = height;
- selections = g_list_append (selections, selection);
+ selections = g_list_prepend (selections, selection);
}
- merge_selection_region (view, selections);
+ merge_selection_region (view, g_list_reverse (selections));
gtk_widget_queue_draw (GTK_WIDGET (view));
}