[gnome-software] installed: Don't re-sort each time when switching to the page
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] installed: Don't re-sort each time when switching to the page
- Date: Sat, 8 Aug 2015 15:51:56 +0000 (UTC)
commit c9ce65e6980e32d8f2c95ca8bd462e0c352e9f90
Author: Kalev Lember <klember redhat com>
Date: Sat Aug 8 17:10:27 2015 +0200
installed: Don't re-sort each time when switching to the page
The listbox is already kept in sorted order and there's no need to
re-sort it again each time. Avoiding a re-sort on switch_to() makes it
considerably faster to switch to the installed page.
src/gs-shell-installed.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-shell-installed.c b/src/gs-shell-installed.c
index b1b7136..e6fa8cb 100644
--- a/src/gs-shell-installed.c
+++ b/src/gs-shell-installed.c
@@ -281,8 +281,6 @@ gs_shell_installed_switch_to (GsShellInstalled *shell_installed, gboolean scroll
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder, "button_select"));
gtk_widget_show (widget);
- gtk_list_box_invalidate_sort (GTK_LIST_BOX (priv->list_box_install));
-
if (scroll_up) {
GtkAdjustment *adj;
adj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW
(priv->scrolledwindow_install));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]