]> www.fi.muni.cz Git - evince.git/commitdiff
Do not render thumbnails when sidebar thumbnail page is not visible at
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 10 Mar 2007 16:11:18 +0000 (16:11 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 10 Mar 2007 16:11:18 +0000 (16:11 +0000)
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

ChangeLog
shell/ev-sidebar-thumbnails.c

index 492c87e83c749f880e86cf0b77c759745e1f2b50..e885ce31804c38750b9c726cedac939ef7965134 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 325c1633ee147351ca95b2bf9b8b6286f47a7ebe..75b735d1b877d8cca75bb5b000f19ae63b6a355c 100644 (file)
@@ -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);