document. Prevents warning from scroll_to_cell.
+2005-02-04 Martin Kretzschmar <martink@gnome.org>
+
+ * shell/ev-sidebar-thumbnails.c
+ (ev_sidebar_thumbnails_select_page): do nothing unless we have a
+ document. Prevents warning from scroll_to_cell.
+
2005-02-02 Kjartan Maraas <kmaraas@gnome.org>
* configure.ac: Add «nb» to ALL_LINGUAS too.
GtkTreePath *path;
GtkTreeSelection *selection;
+ /* if the EvSidebar's document can't provide thumbnails */
+ if (sidebar->priv->document == NULL)
+ return;
+
path = gtk_tree_path_new_from_indices (page - 1, -1);
selection = gtk_tree_view_get_selection
(GTK_TREE_VIEW (sidebar->priv->tree_view));