Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-03-10 16:11:18 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2007-03-10 16:11:18 (GMT)
commit2333ab19285c722571e2f9c854e11fc0a2de374e (patch)
treeec19c6c3af8d67779d04222f3517d369b8d7e611
parenta1eb4057e64cc849ab5654acce2424672c32ad92 (diff)
Do not render thumbnails when sidebar thumbnail page is not visible at
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
-rw-r--r--ChangeLog7
-rw-r--r--shell/ev-sidebar-thumbnails.c13
2 files changed, 12 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 492c87e..e885ce3 100644
--- 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:
diff --git a/shell/ev-sidebar-thumbnails.c b/shell/ev-sidebar-thumbnails.c
index 325c163..75b735d 100644
--- a/shell/ev-sidebar-thumbnails.c
+++ b/shell/ev-sidebar-thumbnails.c
@@ -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);