Skip to content

Commit

Permalink
Do not render thumbnails when sidebar thumbnail page is not visible at
Browse files Browse the repository at this point in the history
2007-03-10  Carlos Garcia Campos  <carlosgc@gnome.org>
	* shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb):
	Do not render thumbnails when sidebar thumbnail page is not visible
	at startup. Fixes bug #416447. 

svn path=/trunk/; revision=2372
  • Loading branch information
Carlos Garcia Campos authored and Carlos Garcia Campos committed Mar 10, 2007
1 parent a1eb405 commit 2333ab1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2007-03-10 Carlos Garcia Campos <carlosgc@gnome.org>

* shell/ev-sidebar-thumbnails.c: (adjustment_changed_cb):

Do not render thumbnails when sidebar thumbnail page is not visible
at startup. Fixes bug #416447.

2007-03-07 Christian Kirbach <Christian.Kirbach@googlemail.com>

* data/evince.desktop.in.in:
Expand Down
13 changes: 5 additions & 8 deletions shell/ev-sidebar-thumbnails.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,14 +354,11 @@ adjustment_changed_cb (EvSidebarThumbnails *sidebar_thumbnails)
return;
}

if (path == NULL)
path = gtk_tree_path_new_first ();
if (path2 == NULL)
path2 = gtk_tree_path_new_from_indices (priv->n_pages,
-1);
update_visible_range (sidebar_thumbnails,
gtk_tree_path_get_indices (path)[0],
gtk_tree_path_get_indices (path2)[0]);
if (path && path2) {
update_visible_range (sidebar_thumbnails,
gtk_tree_path_get_indices (path)[0],
gtk_tree_path_get_indices (path2)[0]);
}

gtk_tree_path_free (path);
gtk_tree_path_free (path2);
Expand Down

0 comments on commit 2333ab1

Please sign in to comment.